fix(main): To-do point #4 done

4.) Instead of mod='ws_giftdropdown' say d='Admin.Modules.ws_giftdropdown'
This commit is contained in:
2026-06-22 12:57:05 +02:00
parent 45f14ca0bd
commit 4871860ac4
4 changed files with 8 additions and 10 deletions
-2
View File
@@ -55,6 +55,4 @@ Todo:
``` ```
4.) Instead of mod='ws_giftdropdown' say d='Admin.Modules.ws_giftdropdown'
5.) Make paper choice an entity 5.) Make paper choice an entity
+4 -4
View File
@@ -5,16 +5,16 @@
<div class="panel"> <div class="panel">
<div class="panel-heading"> <div class="panel-heading">
<i class="icon-gift"></i> <i class="icon-gift"></i>
{l s='Gift Paper Options' mod='ws_giftdropdown'} {l s='Gift Paper Options' d='Modules.Ws_giftdropdown.Admin'}
</div> </div>
<div class="panel-body"> <div class="panel-body">
<p class="help-block"> <p class="help-block">
{l s='Enter one paper style per line. These options will appear as radio buttons in the checkout when the customer selects gift wrapping.' mod='ws_giftdropdown'} {l s='Enter one paper style per line. These options will appear as radio buttons in the checkout when the customer selects gift wrapping.' d='Modules.Ws_giftdropdown.Admin'}
</p> </p>
<form method="post" action="{$form_action|escape:'htmlall':'UTF-8'}"> <form method="post" action="{$form_action|escape:'htmlall':'UTF-8'}">
<div class="form-group"> <div class="form-group">
<label for="gift_options" class="control-label"> <label for="gift_options" class="control-label">
{l s='Paper styles (one per line)' mod='ws_giftdropdown'} {l s='Paper styles (one per line)' d='Modules.Ws_giftdropdown.Admin'}
</label> </label>
<textarea <textarea
id="gift_options" id="gift_options"
@@ -27,7 +27,7 @@
<div class="panel-footer"> <div class="panel-footer">
<button type="submit" name="submitWsGiftDropdown" class="btn btn-default pull-right"> <button type="submit" name="submitWsGiftDropdown" class="btn btn-default pull-right">
<i class="process-icon-save"></i> <i class="process-icon-save"></i>
{l s='Save' mod='ws_giftdropdown'} {l s='Save' d='Modules.Ws_giftdropdown.Admin'}
</button> </button>
</div> </div>
</form> </form>
+2 -2
View File
@@ -1,11 +1,11 @@
<div class="panel" id="ws-gift-panel" data-paper-choice="{$gift_paper_choice|escape:'htmlall':'UTF-8'}"> <div class="panel" id="ws-gift-panel" data-paper-choice="{$gift_paper_choice|escape:'htmlall':'UTF-8'}">
<div class="panel-heading"> <div class="panel-heading">
<i class="icon-gift"></i> <i class="icon-gift"></i>
{l s='Gift wrapping' mod='ws_giftdropdown'} {l s='Gift wrapping' d='Modules.Ws_giftdropdown.Admin'}
</div> </div>
<div class="panel-body"> <div class="panel-body">
<dl class="list-unstyled"> <dl class="list-unstyled">
<dt>{l s='Paper style' mod='ws_giftdropdown'}</dt> <dt>{l s='Paper style' d='Modules.Ws_giftdropdown.Admin'}</dt>
<dd><strong>{$gift_paper_choice|escape:'htmlall':'UTF-8'}</strong></dd> <dd><strong>{$gift_paper_choice|escape:'htmlall':'UTF-8'}</strong></dd>
</dl> </dl>
</div> </div>
+2 -2
View File
@@ -48,8 +48,8 @@ class Ws_GiftDropdown extends Module
parent::__construct(); parent::__construct();
$this->displayName = $this->trans('Gift Paper Selector', [], 'Modules.Ws_GiftDropdown.Admin'); $this->displayName = $this->trans('Gift Paper Selector', [], 'Modules.Ws_giftdropdown.Admin');
$this->description = $this->trans('Adds a paper style selector to the gift wrap option at checkout', [], 'Modules.Ws_GiftDropdown.Description'); $this->description = $this->trans('Adds a paper style selector to the gift wrap option at checkout', [], 'Modules.Ws_giftdropdown.Admin');
$this->ps_versions_compliancy = ['min' => '1.7.0.0', 'max' => _PS_VERSION_]; $this->ps_versions_compliancy = ['min' => '1.7.0.0', 'max' => _PS_VERSION_];
} }
} }