Ca avance pas mal sur DHL...
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<form method="POST" action="{url path='/admin/module/dhl/configuration/update'}">
|
||||
{form_hidden_fields form=$form}
|
||||
|
||||
{render_form_field field="tracking_url" value={module_config module="DHL" key='tracking_url' locale="fr_FR"}}
|
||||
{render_form_field field="tracking_url" value={module_config module="DHL" key='tracking_url' locale="en_US"}}
|
||||
|
||||
<button type="submit" name="dhl_save_configuration" value="save" class="form-submit-button btn btn-sm btn-default" title="{intl d='dhl.bo.default' l='Save'}">
|
||||
{intl d='dhl.bo.default' l='Save'}
|
||||
@@ -47,6 +47,7 @@
|
||||
dialog_id = "price_slice_create_dialog_{$ID}"
|
||||
dialog_title = {intl d='dhl.bo.default' l="Create a price slice"}
|
||||
dialog_body = "<input type=\"hidden\" name=\"operation\" value=\"add\"/>
|
||||
<input type=\"hidden\" name=\"module_id\" value={$module_id}>
|
||||
<input type=\"hidden\" name=\"area\" value=\"{$ID}\" />
|
||||
<label for=\"weight_{$ID}\">{intl d='dhl.bo.default' l="Weight up to ... (kg)"}</label></label>
|
||||
<input type=\"number\" step=\"0.01\" id=\"weight_{$ID}\" name=\"weight\" value=\"1\" class=\"form-control\" pattern=\"\d+\.?\d*\" required/>
|
||||
@@ -76,15 +77,17 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{loop type="dhl" name="dhl" area=$ID}
|
||||
{loop type="dhl" name="dhl" area_id=$ID}
|
||||
{* -- EDIT price slice confirmation dialog ----------------------------------- *}
|
||||
{include
|
||||
file = "includes/generic-confirm-dialog.html"
|
||||
|
||||
dialog_id = "price_slice_edit_dialog_{$ID}_{$MAX_WEIGHT|replace:'.':'-'}"
|
||||
dialog_title = {intl d='dhl.bo.default' l="Edit a price slice"}
|
||||
dialog_message = "<input type=\"hidden\" name=\"operation\" value=\"add\"/>
|
||||
<input type=\"hidden\" name=\"area\" value=\"{$ID}\"/>
|
||||
dialog_message = "<input type=\"hidden\" name=\"operation\" value=\"update\"/>
|
||||
<input type=\"hidden\" name=\"module_id\" value={$module_id}>
|
||||
<input type=\"hidden\" name=\"area\" value=\"{$AREA_ID}\"/>
|
||||
<input type=\"hidden\" name=\"price_id\" value=\"{$ID}\"/>
|
||||
<input type=\"hidden\" name=\"weight\" value=\"{$MAX_WEIGHT}\"/>
|
||||
<label for=\"price_edit_{$ID}_{$MAX_WEIGHT}\">{intl d='dhl.bo.default' l='Price (€)'}</label>
|
||||
<input type=\"number\" step=\"0.01\" id=\"price_edit_{$ID}_{$MAX_WEIGHT}\" class=\"form-control\" name=\"price\" value=\"{$PRICE}\" pattern=\"\d+\.?\d*\" required/>"
|
||||
@@ -100,7 +103,9 @@
|
||||
dialog_id = "price_slice_delete_dialog_{$ID}_{$MAX_WEIGHT|replace:'.':'-'}"
|
||||
dialog_title = {intl d='dhl.bo.default' l="Delete a price slice"}
|
||||
dialog_message = "<input type=\"hidden\" name=\"operation\" value=\"delete\"/>
|
||||
<input type=\"hidden\" name=\"area\" value=\"{$ID}\"/>
|
||||
<input type=\"hidden\" name=\"module_id\" value={$module_id}>
|
||||
<input type=\"hidden\" name=\"area\" value=\"{$AREA_ID}\"/>
|
||||
<input type=\"hidden\" name=\"price_id\" value=\"{$ID}\"/>
|
||||
<input type=\"hidden\" name=\"weight\" value=\"{$MAX_WEIGHT}\"/>
|
||||
{intl d='dhl.bo.default' l="Do you really want to delete this slice ?"}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user