diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 90371224..0dbc1c5e 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -12,6 +12,9 @@ $ui->assign('_system_menu', 'customers'); $action = $routes['1']; $ui->assign('_admin', $admin); +if(empty($action)){ + $action = 'list'; +} switch ($action) { case 'list': diff --git a/ui/ui/customers-edit.tpl b/ui/ui/customers-edit.tpl index d54a0c25..46a71202 100644 --- a/ui/ui/customers-edit.tpl +++ b/ui/ui/customers-edit.tpl @@ -13,10 +13,10 @@
{if $_c['country_code_phone']!= ''} - + + + {else} - + {/if}
{if $_c['country_code_phone']!= ''} - + + + {else} - + {/if} @@ -91,25 +91,24 @@
{if $customFields} - {foreach $customFields as $customField} -
- -
- -
- Delete -
- {/foreach} + {foreach $customFields as $customField} +
+ +
+ +
+ Delete +
+ {/foreach} {/if}
- +
@@ -129,16 +128,16 @@
{literal} - + {/literal} {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index fc1ca388..066d5d37 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -130,20 +130,11 @@ {$_MENU_AFTER_DASHBOARD} {if !in_array($_admin['user_type'],['Report'])} -
  • - - {Lang::T('Customer')} - - - +
  • + + + {Lang::T('Customer')} -
  • {$_MENU_AFTER_CUSTOMERS}