From 40a87d50ce434b5a6e31b01fbb00b404bd42bfbf Mon Sep 17 00:00:00 2001 From: mespeche Date: Wed, 11 Sep 2013 10:21:07 +0200 Subject: [PATCH] Add modal for create/delete customer --- templates/admin/default/customers.html | 67 +++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 8 deletions(-) diff --git a/templates/admin/default/customers.html b/templates/admin/default/customers.html index 3fe8d5804..df2b9d684 100644 --- a/templates/admin/default/customers.html +++ b/templates/admin/default/customers.html @@ -90,7 +90,7 @@ {/loop} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"} - + {/loop} @@ -133,7 +133,7 @@ - + {* Adding a new Category *} @@ -149,40 +149,74 @@ {/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='email'} +
+ + +
+ {/form_field} {/capture} @@ -202,4 +236,21 @@ } {/form} + {* Delete confirmation dialog *} + + {capture "delete_customer_dialog"} + + {/capture} + + {include + file = "includes/generic-confirm-dialog.html" + + dialog_id = "delete_customer_dialog" + dialog_title = {intl l="Delete customer"} + dialog_message = {intl l="Do you really want to delete this customer ?"} + + form_action = {url path='/admin/customer/delete'} + form_content = {$smarty.capture.delete_dialog nofilter} + } + {/block} \ No newline at end of file