[-] BO : fixed #PSFV-722

This commit is contained in:
lLefevre
2012-04-06 09:14:22 +00:00
parent 08a58b84b5
commit 701f3c70aa
4 changed files with 8 additions and 9 deletions
@@ -68,13 +68,11 @@
<td style="width:40%">{$key|stripslashes}</td>
<td>= {*todo : md5 is already calculated in AdminTranslationsController*}
{if $key|strlen < $textarea_sized}
<input type="text"
style="width: 450px"
<input type="text" style="width: 450px{if empty($value)};background:#FBB{/if}"
name="{if in_array($type, array('front', 'fields'))}{$k}_{$key|md5}{else}{$k}{$key|md5}{/if}"
value="{$value|regex_replace:'/"/':'&quot;'|stripslashes}" />
{else}
<textarea rows="{($key|strlen / $textarea_sized)|intval}"
style="width: 450px"
<textarea rows="{($key|strlen / $textarea_sized)|intval}" style="width: 450px{if empty($value)};background:#FBB{/if}"
name="{if in_array($type, array('front', 'fields'))}{$k}_{$key|md5}{else}{$k}{$key|md5}{/if}"
>{$value|regex_replace:'/"/':'&quot;'|stripslashes}</textarea>
{/if}
@@ -88,12 +88,12 @@
{capture assign="name"}{strtolower($module_name)}_{strtolower($theme_name)}_{strtolower($template_name)}_{md5($key)}{/capture}
{if $key|strlen < $textarea_sized}
<input type="text"
style="width: 450px"
style="width: 450px{if empty($value)};background:#FBB{/if}"
name="{$name|md5}"
value="{$value|regex_replace:'#"#':'&quot;'|stripslashes}" />
{else}
<textarea rows="{($key|strlen / $textarea_sized)|intval}"
style="width: 450px"
style="width: 450px{if empty($value)};background:#FBB{/if}"
name="{$name|md5}">{$value|regex_replace:'#"#':'&quot;'|stripslashes}</textarea>
{/if}
</td>