diff --git a/templates/admin/default/configuration.html b/templates/admin/default/configuration.html
index 70b7cffb8..0bf0e9bed 100644
--- a/templates/admin/default/configuration.html
+++ b/templates/admin/default/configuration.html
@@ -22,24 +22,24 @@
{module_include location='catalog_configuration_top'}
- {loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.product_templates"}
+ {loop type="auth" name="pcc1" roles="ADMIN" permissions="admin.configuration.templates"}
- {intl l='Product templates'}
-
+ {intl l='Product templates'}
+
{/loop}
- {loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.product_attributes"}
+ {loop type="auth" name="pcc2" roles="ADMIN" permissions="admin.configuration.attributes"}
- {intl l='Product attributes'}
-
+ {intl l='Product attributes'}
+
{/loop}
- {loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.product_features"}
+ {loop type="auth" name="pcc3" roles="ADMIN" permissions="admin.configuration.features"}
- {intl l='Product features'}
-
+ {intl l='Product features'}
+
{/loop}
diff --git a/templates/admin/default/coupon-list.html b/templates/admin/default/coupon-list.html
index 331b97231..e4a1d5e36 100755
--- a/templates/admin/default/coupon-list.html
+++ b/templates/admin/default/coupon-list.html
@@ -10,7 +10,7 @@
{include file="includes/coupon_breadcrumb.html"}
-
+
@@ -28,7 +28,7 @@
Expiration date
Usage left
Actions
-
+
@@ -146,8 +146,8 @@
{block name="javascript-initialization"}
-
- {javascripts file='assets/bootstrap-editable/js/bootstrap-editable.js'}
+
+ {javascripts file='assets/js/bootstrap-editable/bootstrap-editable.js'}
{/javascripts}
diff --git a/templates/admin/default/currencies.html b/templates/admin/default/currencies.html
index 5854b2f49..72bf01e75 100644
--- a/templates/admin/default/currencies.html
+++ b/templates/admin/default/currencies.html
@@ -255,6 +255,8 @@
{/form_field}
+ {module_include location='currency_create_form'}
+
{/capture}
{include
@@ -277,6 +279,9 @@
{capture "delete_dialog"}
+
+ {module_include location='currency_delete_form'}
+
{/capture}
{include
diff --git a/templates/admin/default/currency-edit.html b/templates/admin/default/currency-edit.html
index 6c85d604a..cc7ac16ac 100644
--- a/templates/admin/default/currency-edit.html
+++ b/templates/admin/default/currency-edit.html
@@ -35,7 +35,7 @@
{* Be sure to get the currency ID, even if the form could not be validated *}
- {include file="includes/inner-form-toolbar.html"}
+ {include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/configuration/currencies'}"}
{form_hidden_fields form=$form}
diff --git a/templates/admin/default/customer-edit.html b/templates/admin/default/customer-edit.html
index c512bb056..d14e0056a 100644
--- a/templates/admin/default/customer-edit.html
+++ b/templates/admin/default/customer-edit.html
@@ -10,9 +10,9 @@
{loop name="customer_edit" type="customer" current="false" id="$customer_id" backend_context="1" lang="$edit_language_id"}
-
+
@@ -34,7 +34,7 @@
{* Be sure to get the customer ID, even if the form could not be validated *}
- {include file="includes/inner-form-toolbar.html"}
+ {include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/customers'}"}
{form_hidden_fields form=$form}
@@ -44,18 +44,18 @@
{if $form_error}
{$form_error_message}
{/if}
-
+
{intl l="Customer informations"}
- {form_field form=$form field='title'}
+ {form_field form=$form field='title'}
{intl l="{$label}"} :
-
+
{loop type="title" name="title1"}
{$LONG}
{/loop}
-
+
{/form_field}
@@ -74,7 +74,7 @@
{/form_field}
{loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"}
-
+
{intl l="Default address"}
{form_field form=$form field='address1'}
@@ -85,16 +85,16 @@
{/form_field}
{form_field form=$form field='address2'}
-
@@ -181,11 +181,11 @@
-
+
-
+
@@ -193,7 +193,7 @@
-
+
@@ -208,11 +208,11 @@
-
+
-
+
@@ -220,7 +220,7 @@
-
+
@@ -258,12 +258,12 @@
{* Add an Address *}
{form name="thelia.address.create"}
-
+
{* Capture the dialog body, to pass it to the generic dialog *}
{capture "address_creation_dialog"}
-
+
{form_hidden_fields form=$form}
-
+
{form_field form=$form field='label'}
{intl l="{$label}"} :
@@ -277,16 +277,16 @@
{/form_field}
-
- {form_field form=$form field='title'}
+
+ {form_field form=$form field='title'}
{intl l="{$label}"} :
-
+
{loop type="title" name="title1"}
{$LONG}
{/loop}
-
+
{/form_field}
@@ -307,13 +307,13 @@
{form_field form=$form field='address1'}
{intl l="{$label}"} :
-
+
{form_field form=$form field='address2'}
- {/form_field}
+ {/form_field}
@@ -346,10 +346,10 @@
{/loop}
- {/form_field}
+ {/form_field}
{/capture}
-
+
{include
file = "includes/generic-create-dialog.html"
@@ -370,12 +370,12 @@
{* Update an Address *}
{form name="thelia.address.update"}
-
+
{* Capture the dialog body, to pass it to the generic dialog *}
{capture "edit_address_dialog"}
-
+
{form_hidden_fields form=$form}
-
+
{form_field form=$form field='label'}
{intl l="{$label}"} :
@@ -389,16 +389,16 @@
{/form_field}
-
- {form_field form=$form field='title'}
+
+ {form_field form=$form field='title'}
{intl l="{$label}"} :
-
+
{loop type="title" name="title1"}
{$LONG}
{/loop}
-
+
{/form_field}
@@ -419,13 +419,13 @@
{form_field form=$form field='address1'}
{intl l="{$label}"} :
-
+
{form_field form=$form field='address2'}
- {/form_field}
+ {/form_field}
@@ -458,10 +458,10 @@
{/loop}
- {/form_field}
+ {/form_field}
{/capture}
-
+
{include
file = "includes/generic-create-dialog.html"
@@ -478,8 +478,8 @@
}
{/form}
-
-
+
+
{* Default confirmation dialog *}
{capture "use_address_dialog"}
diff --git a/templates/admin/default/includes/generic-js-dialog.html b/templates/admin/default/includes/generic-js-dialog.html
index 051aefd29..aca78e1bc 100644
--- a/templates/admin/default/includes/generic-js-dialog.html
+++ b/templates/admin/default/includes/generic-js-dialog.html
@@ -22,7 +22,7 @@ Parameters:
{* Always reset create dialog on close *}
-$('#{$dialog_id}').on('hidden', function() {
+$('#{$dialog_id}').on('hidden.bs.modal', function() {
// Hide error message
$('#{$dialog_id}_error').remove();
diff --git a/templates/admin/default/includes/inner-form-toolbar.html b/templates/admin/default/includes/inner-form-toolbar.html
index 0b37d7bd8..518c204e3 100755
--- a/templates/admin/default/includes/inner-form-toolbar.html
+++ b/templates/admin/default/includes/inner-form-toolbar.html
@@ -12,7 +12,7 @@