+
+
+
+ {/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}
+
+{/capture}
+
+ {include
+ file = "includes/generic-create-dialog.html"
+
+ dialog_id = "edit_address_dialog"
+ dialog_title = {intl l="Edit an address"}
+ dialog_body = {$smarty.capture.edit_address_dialog nofilter}
+
+dialog_ok_label = {intl l="Edit this address"}
+dialog_cancel_label = {intl l="Cancel"}
+
+form_action = {url path="/admin/address/save/{$address_id}"}
+form_enctype = {form_enctype form=$form}
+form_error_message = $form_error_message
+}
+
+{/form}
\ No newline at end of file
diff --git a/templates/admin/default/assets/less/thelia/thelia.less b/templates/admin/default/assets/less/thelia/thelia.less
index fc2652004..11dc5bd74 100644
--- a/templates/admin/default/assets/less/thelia/thelia.less
+++ b/templates/admin/default/assets/less/thelia/thelia.less
@@ -295,6 +295,13 @@
width: auto;
}
+.modal-backdrop .loading {
+ left: 50%;
+ top: 50%;
+ right: auto;
+ position: absolute;
+}
+
.existing-image .col-sm-6{
position: relative;
diff --git a/templates/admin/default/customer-edit.html b/templates/admin/default/customer-edit.html
index 9bcba75b9..69e1815f3 100644
--- a/templates/admin/default/customer-edit.html
+++ b/templates/admin/default/customer-edit.html
@@ -44,7 +44,7 @@
{/form_field}
{if $form_error}{$form_error_message}
{/if}
-
+ {loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"}
{intl l="Customer informations"}
@@ -74,7 +74,7 @@
{/form_field}
- {loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"}
+
{intl l="Default address"}
@@ -171,15 +171,15 @@
-
+
-
+
-
+
@@ -218,7 +218,7 @@
-
+
{* Add an Address *}
{form name="thelia.address.create"}
@@ -227,7 +227,10 @@
{capture "address_creation_dialog"}
{form_hidden_fields form=$form}
-
+
+ {form_field form=$form field='success_url'}
+
+ {/form_field}
{form_field form=$form field='label'}
|