- {loop name="list" type="attribute_availability" attribute=$attribute_id backend_context="1" lang=$edit_language_id order=$order}
+ {loop name="list" type="attribute_availability" attribute=$attribute_id backend_context="1" lang=$edit_language_id order=$attributeav_order}
{$ID}
-
+ {* FIXME : integrate this in the encolsing form to provide standard form processing *}
+
@@ -151,7 +159,7 @@
- {intl l="No product attribute has been created yet. Click the + button to create one."}
+ {intl l="No value has been created yet. Click the + button to create one."}
diff --git a/templates/admin/default/attributes.html b/templates/admin/default/attributes.html
index eab4996ac..57fd9c256 100644
--- a/templates/admin/default/attributes.html
+++ b/templates/admin/default/attributes.html
@@ -97,6 +97,17 @@
{module_include location='attributes_table_row'}
+ {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"}
+
+ {/loop}
+
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.attributes.change"}
@@ -213,10 +224,51 @@
dialog_title = {intl l="Delete attribute"}
dialog_message = {intl l="Do you really want to delete this attribute ? It will be removed from all product templates."}
- form_action = {url path='/admin/configuration/attributes/delete'}
+ form_action = {url path='/admin/configuration/attributes/remove_from-all-templates' attribute_id=$ID}
form_content = {$smarty.capture.delete_dialog nofilter}
}
+
+{* Add to all dialog *}
+
+{capture "add_to_all_dialog"}
+
+
+ {module_include location='attribute_add_to_all_form'}
+
+{/capture}
+
+{include
+ file = "includes/generic-confirm-dialog.html"
+
+ dialog_id = "add_to_all_dialog"
+ dialog_title = {intl l="Add to all product templates"}
+ dialog_message = {intl l="Do you really want to add this attribute to all product templates ?"}
+
+ form_action = {url path='/admin/configuration/attributes/add-to-all-templates'}
+ form_content = {$smarty.capture.add_to_all_dialog nofilter}
+}
+
+{* Remove from all dialog *}
+
+{capture "remove_from_all_dialog"}
+
+
+ {module_include location='attribute_add_to_all_form'}
+
+{/capture}
+
+{include
+ file = "includes/generic-confirm-dialog.html"
+
+ dialog_id = "remove_from_all_dialog"
+ dialog_title = {intl l="Remove from all product templates"}
+ dialog_message = {intl l="Do you really want to remove this attribute from all product templates ? You'll loose all product related data for this attribute."}
+
+ form_action = {url path='/admin/configuration/attributes/remove-from-all-templates'}
+ form_content = {$smarty.capture.remove_from_all_dialog nofilter}
+}
+
{/block}
{block name="javascript-initialization"}
@@ -233,6 +285,14 @@
$('#attribute_delete_id').val($(this).data('id'));
});
+ $('a.attribute-add-to-all').click(function(ev) {
+ $('#attribute_add_to_all_id').val($(this).data('id'));
+ });
+
+ $('a.attribute-remove-from-all').click(function(ev) {
+ $('#attribute_remove_from_all_id').val($(this).data('id'));
+ });
+
// JS stuff for creation form
{include
file = "includes/generic-js-dialog.html"
diff --git a/templates/admin/default/categories.html b/templates/admin/default/categories.html
index 0423bcc66..6fe06f8bc 100755
--- a/templates/admin/default/categories.html
+++ b/templates/admin/default/categories.html
@@ -82,7 +82,7 @@
}
-
{intl l='Actions'}
+
{intl l='Actions'}
diff --git a/templates/admin/default/currencies.html b/templates/admin/default/currencies.html
index 72bf01e75..fe4cfe882 100644
--- a/templates/admin/default/currencies.html
+++ b/templates/admin/default/currencies.html
@@ -111,7 +111,7 @@
{module_include location='currencies_table_header'}
-
{intl l='Actions'}
+
{intl l='Actions'}
diff --git a/templates/admin/default/customers.html b/templates/admin/default/customers.html
index 799115bf3..72179f667 100644
--- a/templates/admin/default/customers.html
+++ b/templates/admin/default/customers.html
@@ -11,9 +11,9 @@
-
+
@@ -58,7 +58,7 @@
{intl l='order amount'}
-
{intl l='Actions'}
+
{intl l='Actions'}
@@ -154,23 +154,23 @@
{* on success, redirect to the edition page, _ID_ is replaced with the created object ID, see controller *}
{/form_field}
-
+
{form_field form=$form field='company'}
{intl l="{$label}"} :
{/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}
@@ -191,13 +191,13 @@
{form_field form=$form field='address1'}
{intl l="{$label}"} :
-
+
{form_field form=$form field='address2'}
- {/form_field}
+ {/form_field}
@@ -237,8 +237,8 @@
{intl l="{$label}"} :
- {/form_field}
-
+ {/form_field}
+
{/capture}
{include
diff --git a/templates/admin/default/includes/inner-form-toolbar.html b/templates/admin/default/includes/inner-form-toolbar.html
index 518c204e3..c142cbdd7 100755
--- a/templates/admin/default/includes/inner-form-toolbar.html
+++ b/templates/admin/default/includes/inner-form-toolbar.html
@@ -12,7 +12,7 @@
{/form_field}
@@ -25,7 +25,7 @@
{intl l="The détailed description."}
-
+
{/form_field}
@@ -36,6 +36,6 @@
{intl l="A short post-description information"}
-
+
{/form_field}
\ No newline at end of file
diff --git a/templates/admin/default/includes/thelia_news_feed.html b/templates/admin/default/includes/thelia_news_feed.html
index 6b9d2b5a9..09b3af020 100755
--- a/templates/admin/default/includes/thelia_news_feed.html
+++ b/templates/admin/default/includes/thelia_news_feed.html
@@ -4,7 +4,8 @@
{$DATE}
-
{$DESCRIPTION|strip_tags|truncate:250:"...":true nofilter}
+ {* we use unescape:"htmlall" to unescape var before truncate, to prevent a cut in the middel of an HTML entity, eg &ea... *}
+
{$DESCRIPTION|strip_tags|unescape:"htmlall"|truncate:250:"...":true nofilter}
{intl l='Lire la suite »'}
{/loop}
diff --git a/templates/admin/default/orders.html b/templates/admin/default/orders.html
index 947c615a3..4f9c6ecf8 100644
--- a/templates/admin/default/orders.html
+++ b/templates/admin/default/orders.html
@@ -17,7 +17,7 @@
{module_include location='orders_top'}
-
+
@@ -36,14 +36,14 @@
{intl l="Name"}
{intl l="Amount"}
{intl l="Status"}
-
+
{module_include location='orders_table_header'}
- {intl l="Actions"}
+ {intl l="Actions"}
-
+
01230450123045
@@ -116,7 +116,7 @@
-
+
-
+
-
+