+ {$LABEL}
{loop name="address.title" type="title" id=$TITLE}{$SHORT}{/loop} {$FIRSTNAME} {$LASTNAME}
{$ADDRESS1}
@@ -166,21 +183,21 @@
{$TITLE}
{/loop}
{if $PHONE}
- P:{$PHONE}
+ {intl l="Phone"}: {$PHONE}
{/if}
{if $CELLPHONE}
- P:{$CELLPHONE}
+ {intl l="Cellular phone"}: {$CELLPHONE}
{/if}
|
-
+ |
-
+
-
+
@@ -262,168 +279,117 @@
-
- {* Add an Address *}
+{* -- Add an Address -------------------------------------------------------- *}
- {form name="thelia.admin.address.create"}
+{form name="thelia.admin.address.create"}
- {* Capture the dialog body, to pass it to the generic dialog *}
- {capture "address_creation_dialog"}
+ {* 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='success_url'}
-
- {/form_field}
- {form_field form=$form field='label'}
-
-
-
-
- {/form_field}
+ {include file='includes/customer_address_form_fields.html' customer_id=$customer_id page=$page}
- {form_field form=$form field='company'}
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='title'}
-
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='firstname'}
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='lastname'}
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='address1'}
-
-
-
-
-
-
- {form_field form=$form field='address2'}
-
- {/form_field}
-
-
-
- {form_field form=$form field='address3'}
-
- {/form_field}
-
- {/form_field}
-
- {form_field form=$form field='zipcode'}
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='city'}
-
-
-
-
- {/form_field}
-
- {form_field form=$form field='country'}
-
-
-
-
- {/form_field}
-
- {/capture}
-
- {include
- file = "includes/generic-create-dialog.html"
-
- dialog_id = "address_creation_dialog"
- dialog_title = {intl l="Create an address"}
- dialog_body = {$smarty.capture.address_creation_dialog nofilter}
-
- dialog_ok_label = {intl l="Create this address"}
- dialog_cancel_label = {intl l="Cancel"}
-
- form_action = {url path='/admin/address/create'}
- form_enctype = {form_enctype form=$form}
- form_error_message = $form_error_message
- }
-
- {/form}
-
-
-
-
- {* Default confirmation dialog *}
-
- {capture "use_address_dialog"}
-
{/capture}
{include
- file = "includes/generic-confirm-dialog.html"
+ file = "includes/generic-create-dialog.html"
- dialog_id = "use_address_dialog"
- dialog_title = {intl l="Use address by default"}
- dialog_message = {intl l="Do you really want to use this address by default ?"}
+ dialog_id = "address_creation_dialog"
+ dialog_title = {intl l="Create a customer address"}
+ dialog_body = {$smarty.capture.address_creation_dialog nofilter}
- form_action = {url path='/admin/address/use'}
- form_content = {$smarty.capture.use_address_dialog nofilter}
+ dialog_ok_label = {intl l="Create this address"}
+ dialog_cancel_label = {intl l="Cancel"}
+
+ form_action = {url path='/admin/address/create'}
+ form_enctype = {form_enctype form=$form}
+ form_error_message = $form_error_message
}
- {* Delete confirmation dialog *}
+{/form}
- {capture "delete_address_dialog"}
-
- {/capture}
+{* -- Update an Address ----------------------------------------------------- *}
- {include
- file = "includes/generic-confirm-dialog.html"
+{if $address_id > 0}
+ {form name="thelia.admin.address.update"}
- dialog_id = "delete_address_dialog"
- dialog_title = {intl l="Delete address"}
- dialog_message = {intl l="Do you really want to delete this address ?"}
+ {* Capture the dialog body, to pass it to the generic dialog *}
- form_action = {url path='/admin/address/delete'}
- form_content = {$smarty.capture.delete_address_dialog nofilter}
- }
+ {capture "address_update_dialog"}
+
+
+ {include file='includes/customer_address_form_fields.html' customer_id=$customer_id page=$page}
+
+ {/capture}
+
+ {include
+ file = "includes/generic-create-dialog.html"
+
+ dialog_id = "address_update_dialog"
+ dialog_title = {intl l="Edit a customer address"}
+ dialog_body = {$smarty.capture.address_update_dialog nofilter}
+
+ dialog_ok_label = {intl l="Save this address"}
+ dialog_cancel_label = {intl l="Cancel"}
+
+ form_action = {url path="/admin/address/save"}
+ form_enctype = {form_enctype form=$form}
+ form_error_message = $form_error_message
+ }
+
+ {/form}
+{/if}
+
+{* -- Confirm making an address the default --------------------------------- *}
+
+{capture "use_address_dialog"}
+
+
+
+
+{/capture}
+
+{include
+ file = "includes/generic-confirm-dialog.html"
+
+ dialog_id = "use_address_dialog"
+ dialog_title = {intl l="Use address by default"}
+ dialog_message = {intl l="Do you really want to use this address by default ?"}
+
+ form_action = {url path='/admin/address/use'}
+ form_content = {$smarty.capture.use_address_dialog nofilter}
+}
+
+{* -- Delete confirmation dialog -------------------------------------------- *}
+
+{capture "delete_address_dialog"}
+
+
+
+
+{/capture}
+
+{include
+ file = "includes/generic-confirm-dialog.html"
+
+ dialog_id = "delete_address_dialog"
+ dialog_title = {intl l="Delete address"}
+ dialog_message = {intl l="Do you really want to delete this address ?"}
+
+ form_action = {url path='/admin/address/delete'}
+ form_content = {$smarty.capture.delete_address_dialog nofilter}
+}
{/block}
+
{block name="javascript-initialization"}
+
{javascripts file='assets/js/main.js'}
{/javascripts}
{/block}
\ No newline at end of file
diff --git a/templates/admin/default/customers.html b/templates/admin/default/customers.html
index ba083b61c..9dff5e9c3 100644
--- a/templates/admin/default/customers.html
+++ b/templates/admin/default/customers.html
@@ -7,9 +7,6 @@
{block name="check-access"}view{/block}
{block name="main-content"}
- {assign var=customer_page value={$smarty.get.page|default:1}}
-
-
@@ -41,27 +38,83 @@
|
- {intl l="customer ref"}
+ {admin_sortable_header
+ current_order=$customer_order
+ order='reference'
+ reverse_order='reference_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='Reference'}"
+ }
|
- {module_include location='category_list_header'}
+ {module_include location='customer_list_header'}
-
- {intl l="firstname & lastname"}
+ |
+ {admin_sortable_header
+ current_order=$customer_order
+ order='lastname'
+ reverse_order='lastname_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='Last name'}"
+ }
|
-
- {intl l="last order"}
+ |
+ {admin_sortable_header
+ current_order=$customer_order
+ order='firstname'
+ reverse_order='firstname_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='First name'}"
+ }
|
- {intl l='order amount'} |
+
+ {admin_sortable_header
+ current_order=$customer_order
+ order='registration_date'
+ reverse_order='registration_date_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='Registration date'}"
+ }
+ |
+ {intl l='Date of last order'} |
+ {intl l='Last order amount'} |
+
+{* TODO
+
+ {admin_sortable_header
+ current_order=$customer_order
+ order='last_order'
+ reverse_order='last_order_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='Date of last order'}"
+ }
+ |
+
+
+ {admin_sortable_header
+ current_order=$customer_order
+ order='order_amount'
+ reverse_order='order_amount_reverse'
+ path={url path='/admin/customers'}
+ request_parameter_name='customer_order'
+ label="{intl l='Last order amount'}"
+ }
+ |
+*}
{intl l='Actions'} |
- {loop name="customer_list" type="customer" current="false" visible="*" backend_context="1" page={$customer_page} limit={$display_customer}}
+ {loop name="customer_list" type="customer" current="false" visible="*" order=$customer_order backend_context="1" page=$page limit=$display_customer}
{assign "lastOrderDate" ''}
{assign "lastOrderAmount" ''}
{assign "lastOrderCurrency" ''}
@@ -75,14 +128,23 @@
{/loop}
- | {$REF} |
+ {$REF} |
- {$FIRSTNAME} {$LASTNAME}
+ {$LASTNAME}
|
+
+ {$FIRSTNAME}
+ |
+
+
{module_include location='customer_list_row'}
+
+ {format_date date=$CREATE_DATE}
+ |
+
{$lastOrderDate}
|
@@ -94,7 +156,7 @@
{loop type="auth" name="can_change" role="ADMIN" resource="admin.customer" access="UPDATE"}
-
+
{/loop}
{loop type="auth" name="can_send_mail" role="ADMIN" resource="admin.customer" access="VIEW"}
@@ -111,10 +173,10 @@
|
-
+
-
+
|
@@ -163,7 +225,7 @@
{form_field form=$form field='success_url'}
{* on success, redirect to the edition page, _ID_ is replaced with the created object ID, see controller *}
-
+
{/form_field}
{form_field form=$form field="password"}
@@ -283,7 +345,7 @@
{* Delete confirmation dialog *}
{capture "delete_customer_dialog"}
-
+
{/capture}
diff --git a/templates/admin/default/includes/customer_address_form_fields.html b/templates/admin/default/includes/customer_address_form_fields.html
new file mode 100644
index 000000000..5b7bba9d3
--- /dev/null
+++ b/templates/admin/default/includes/customer_address_form_fields.html
@@ -0,0 +1,123 @@
+{* Customer address creation / modification fields, used in the customer-edit.html template *}
+
+{form_hidden_fields form=$form}
+
+
+
+
+{form_field form=$form field='success_url'}
+
+{/form_field}
+
+{form_field form=$form field='label'}
+
+
+
+
+{/form_field}
+
+{form_field form=$form field='company'}
+
+
+
+
+{/form_field}
+
+{form_field form=$form field='title'}
+
+
+
+
+
+{/form_field}
+
+
+
+ {form_field form=$form field='firstname'}
+
+
+
+
+ {/form_field}
+
+
+ {form_field form=$form field='lastname'}
+
+
+
+
+ {/form_field}
+
+
+
+{form_field form=$form field='address1'}
+
+
+
+
+
+
+ {form_field form=$form field='address2'}
+
+ {/form_field}
+
+
+
+ {form_field form=$form field='address3'}
+
+ {/form_field}
+
+{/form_field}
+
+
+
+ {form_field form=$form field='zipcode'}
+
+
+
+
+ {/form_field}
+
+
+ {form_field form=$form field='city'}
+
+
+
+
+ {/form_field}
+
+
+
+{form_field form=$form field='country'}
+
+
+
+
+{/form_field}
+
+
+
+ {form_field form=$form field='phone'}
+
+
+
+
+ {/form_field}
+
+
+ {form_field form=$form field='cellphone'}
+
+
+
+
+ {/form_field}
+
+
\ No newline at end of file
diff --git a/templates/admin/default/orders.html b/templates/admin/default/orders.html
index d237d228a..6299341a7 100644
--- a/templates/admin/default/orders.html
+++ b/templates/admin/default/orders.html
@@ -65,7 +65,7 @@
{$REF} |
{format_date date=$CREATE_DATE} |
{$orderInvoiceCompany} |
- {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} |
+ {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} |
{$TOTAL_TAXED_AMOUNT} |
{$orderStatus} |
@@ -122,7 +122,7 @@
{/ifloop}
-
+
diff --git a/templates/admin/default/search.html b/templates/admin/default/search.html
index a39eda982..d96558ea9 100644
--- a/templates/admin/default/search.html
+++ b/templates/admin/default/search.html
@@ -9,7 +9,7 @@
-
+
- {intl l="Home"}
@@ -68,7 +68,7 @@
{/loop}
- | {$REF} |
+ {$REF} |
{$COMPANY}
@@ -91,7 +91,7 @@
{loop type="auth" name="can_change" role="ADMIN" resource="admin.customer" access="UPDATE"}
-
+
{/loop}
{loop type="auth" name="can_send_mail" role="ADMIN" resource="admin.customer" access="VIEW"}
@@ -148,7 +148,7 @@
{$REF} |
{format_date date=$CREATE_DATE} |
{$orderInvoiceCompany} |
- {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} |
+ {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} |
{$TOTAL_TAXED_AMOUNT} |
{$orderStatus} |
diff --git a/templates/default/I18n/en_US.php b/templates/default/I18n/en_US.php
index c83aff515..acf88a5ed 100755
--- a/templates/default/I18n/en_US.php
+++ b/templates/default/I18n/en_US.php
@@ -44,7 +44,7 @@ return array(
'Date' => 'Date',
'Delete address' => 'Delete address',
'Delivery address' => 'Delivery address',
- 'Delivery Informations' => 'Delivery Informations',
+ 'Delivery Information' => 'Delivery Information',
'Demo product description' => 'Demo product description',
'Demo product title' => 'Demo product title',
'Description' => 'Description',
@@ -105,7 +105,7 @@ return array(
'Password Forgotten' => 'Password Forgotten',
'Password' => 'Password',
'per page' => 'per page',
- 'Personal Informations' => 'Personal Informations',
+ 'Personal Information' => 'Personal Information',
'Placeholder address label' => 'Home, Work office, other',
'Placeholder address1' => '76 Ninth Avenue',
'Placeholder address2' => 'Address',
diff --git a/templates/default/I18n/es_ES.php b/templates/default/I18n/es_ES.php
index e96407fea..410d328b4 100755
--- a/templates/default/I18n/es_ES.php
+++ b/templates/default/I18n/es_ES.php
@@ -44,7 +44,7 @@ return array(
'Date' => '',
'Delete address' => '',
'Delivery address' => '',
- 'Delivery Informations' => '',
+ 'Delivery Information' => '',
'Demo product description' => '',
'Demo product title' => '',
'Description' => '',
@@ -105,7 +105,7 @@ return array(
'Password Forgotten' => '',
'Password' => '',
'per page' => '',
- 'Personal Informations' => '',
+ 'Personal Information' => '',
'Placeholder address label' => '',
'Placeholder address1' => '',
'Placeholder address2' => '',
diff --git a/templates/default/I18n/fr_FR.php b/templates/default/I18n/fr_FR.php
index 82a4581c4..5137cfcdd 100755
--- a/templates/default/I18n/fr_FR.php
+++ b/templates/default/I18n/fr_FR.php
@@ -44,7 +44,7 @@ return array(
'Date' => 'Date',
'Delete address' => 'Supprimer cette adresse',
'Delivery address' => 'Adresse de livraison',
- 'Delivery Informations' => 'Informations de livraison',
+ 'Delivery Information' => 'Informations de livraison',
'Demo product description' => 'Example de description de produit',
'Demo product title' => 'Example de titre',
'Description' => 'Description',
@@ -108,7 +108,6 @@ return array(
'Password' => 'Mot de passe',
'per page' => 'par page',
'Personal Information' => 'Informations personnelles',
- 'Personal Informations' => 'Informations personnelles',
'Placeholder address label' => 'Maison, Domicile, Travail...',
'Placeholder address1' => 'Adresse',
'Placeholder address2' => '',
diff --git a/templates/default/I18n/it_IT.php b/templates/default/I18n/it_IT.php
index e96407fea..410d328b4 100755
--- a/templates/default/I18n/it_IT.php
+++ b/templates/default/I18n/it_IT.php
@@ -44,7 +44,7 @@ return array(
'Date' => '',
'Delete address' => '',
'Delivery address' => '',
- 'Delivery Informations' => '',
+ 'Delivery Information' => '',
'Demo product description' => '',
'Demo product title' => '',
'Description' => '',
@@ -105,7 +105,7 @@ return array(
'Password Forgotten' => '',
'Password' => '',
'per page' => '',
- 'Personal Informations' => '',
+ 'Personal Information' => '',
'Placeholder address label' => '',
'Placeholder address1' => '',
'Placeholder address2' => '',
diff --git a/templates/default/account-password.html b/templates/default/account-password.html
index 1e67d4520..653ed9eef 100644
--- a/templates/default/account-password.html
+++ b/templates/default/account-password.html
@@ -25,7 +25,7 @@
{intl l="Change Password"}
{form name="thelia.front.customer.password.update"}
- |
{/loop}
diff --git a/templates/default/address-update.html b/templates/default/address-update.html
index 8ab66107d..f31d3eaaa 100644
--- a/templates/default/address-update.html
+++ b/templates/default/address-update.html
@@ -24,7 +24,7 @@
{intl l="Address Update"}
{form name="thelia.front.address.update"}
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
- |