From ae225dce4c0c885a2910ef2b40f8e827b2ac3e88 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Mon, 29 Jul 2013 16:16:10 +0200 Subject: [PATCH] // WIP customer --- .../addresses/helpers/form/form.tpl | 10 +- .../template/helpers/options/options.tpl | 123 ++++++++++++------ .../admin/AdminAddressesController.php | 48 +++---- controllers/admin/AdminContactsController.php | 27 ++-- .../admin/AdminCustomersController.php | 57 ++++---- controllers/admin/AdminGendersController.php | 20 +-- 6 files changed, 154 insertions(+), 131 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl index 2b70dfdc8..3999c20fb 100644 --- a/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl @@ -40,7 +40,11 @@ {block name="field"} {if $input.type == 'text_customer'} {if isset($customer)} -
{$customer->lastname} {$customer->firstname} ({$customer->email})
+
+ + {$customer->lastname} {$customer->firstname} ({$customer->email}) + +
{else} @@ -79,8 +83,10 @@ } }); +
- * + + *
{/if} {else} diff --git a/admin-dev/themes/default/template/helpers/options/options.tpl b/admin-dev/themes/default/template/helpers/options/options.tpl index e26fac51f..469dd4f74 100644 --- a/admin-dev/themes/default/template/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/helpers/options/options.tpl @@ -69,9 +69,9 @@
{if !$categoryData['hide_multishop_checkbox'] && $field['multishop_default'] && empty($field['no_multishop_checkbox'])} -
- -
+
+ +
{/if} {block name="label"} {if isset($field['title']) && isset($field['desc'])} @@ -88,7 +88,7 @@ {block name="input"} {if $field['type'] == 'select'} -
+
{if $field['list']} @@ -129,7 +129,7 @@ {/foreach} {elseif $field['type'] == 'checkbox'} {foreach $field['choices'] AS $k => $v} -
+

@@ -137,52 +137,98 @@

{/foreach} {elseif $field['type'] == 'text'} -
+
{if isset($field['suffix'])} {$field['suffix']|strval}{/if}
{elseif $field['type'] == 'password'} -
+
{if isset($field['suffix'])} {$field['suffix']|strval}{/if}
{elseif $field['type'] == 'textarea'} -
+
{elseif $field['type'] == 'file'} {if isset($field['thumb']) && $field['thumb']} -
+
{$field['title']}
{/if} -
+
{elseif $field['type'] == 'color'} -
+
{elseif $field['type'] == 'price'} -
+
{$currency_left_sign}{$currency_right_sign} {l s='(tax excl.)'}
+ {elseif $field['type'] == 'textLang' || $field['type'] == 'textareaLang' || $field['type'] == 'selectLang'} + {if $field['type'] == 'textLang'} - {foreach $field['languages'] AS $id_lang => $value} -
- +
+
+ {foreach $field['languages'] AS $id_lang => $value} +
+ +
+ + +
+
+ {/foreach}
- {/foreach} +
+ {elseif $field['type'] == 'textareaLang'} - {foreach $field['languages'] AS $id_lang => $value} -
- -
- {/foreach} +
+ {foreach $field['languages'] AS $id_lang => $value} +
+
+ +
+ +
+ + +
+ +
+ {/foreach} +
+ {elseif $field['type'] == 'selectLang'} {foreach $languages as $language} -
+