From 455904a59b44f81526cb9b3c16cc560d355657d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Nadaud?= Date: Tue, 17 Sep 2013 10:13:00 +0200 Subject: [PATCH] // Some input fix --- .../controllers/products/attachments.tpl | 4 +- .../controllers/products/input_text_lang.tpl | 47 +++++---- .../template/controllers/products/seo.tpl | 6 +- .../controllers/products/textarea_lang.tpl | 8 +- .../default/template/helpers/form/form.tpl | 98 +++++++++++-------- .../template/helpers/options/options.tpl | 29 +++--- 6 files changed, 104 insertions(+), 88 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/attachments.tpl b/admin-dev/themes/default/template/controllers/products/attachments.tpl index ce41ff831..50d8ae4bd 100644 --- a/admin-dev/themes/default/template/controllers/products/attachments.tpl +++ b/admin-dev/themes/default/template/controllers/products/attachments.tpl @@ -35,7 +35,7 @@ {l s='Filename:'} -
+
{include file="controllers/products/input_text_lang.tpl" languages=$languages input_value=$attachment_name @@ -43,7 +43,7 @@ }
- +
diff --git a/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl b/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl index 3ff9ebfe0..766cf612c 100644 --- a/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl +++ b/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl @@ -24,10 +24,11 @@ *} {foreach from=$languages item=language} -
- - {if isset($maxlength)} - {$maxlength} +
+
+ {if isset($maxchar)} +
+ {$maxchar} {/if} -
- - + {if isset($maxchar)} data-maxchar="{$maxchar}"{/if} + {if isset($maxlength)} maxlength="{$maxlength}"{/if}> + {if isset($maxchar)}
- + {/if} +
+
+ + +
{/foreach} -{if isset($maxlength)} +{if isset($maxchar)} - {/literal} - {/if} - {if isset($input.maxlength)} - {$input.maxlength} - {/if} - -
+ + {/literal} + {/if} + {if isset($input.maxchar)} +
+ {$input.maxchar} + {/if} + + {if isset($input.maxchar)} +
+ {/if} +
+
{/foreach} - {if isset($input.maxlength)} + {if isset($input.maxchar)}