// fix tags in helper
This commit is contained in:
1 parent
5b804d3628
commit
f7d1743c8a
6 files changed
+357
-386
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -5075,7 +5075,7 @@ body.fixed-top {
|
|||||||
-webkit-box-shadow: #b4ac9c 0 0 0 4px;
|
-webkit-box-shadow: #b4ac9c 0 0 0 4px;
|
||||||
box-shadow: #b4ac9c 0 0 0 4px; }
|
box-shadow: #b4ac9c 0 0 0 4px; }
|
||||||
#content fieldset {
|
#content fieldset {
|
||||||
padding-bottom: 20px;
|
padding: 20px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border: solid 1px #cac4b9;
|
border: solid 1px #cac4b9;
|
||||||
background-color: #f6f5f3;
|
background-color: #f6f5f3;
|
||||||
@@ -5088,8 +5088,8 @@ body.fixed-top {
|
|||||||
box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset; }
|
box-shadow: rgba(0, 0, 0, 0.1) 0 0 7px, white 0 0 0 4px inset; }
|
||||||
#content form legend {
|
#content form legend {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 0 0 0 10px;
|
padding: 0 0 0 0;
|
||||||
margin: 20px 0 15px 0;
|
margin: 5px 0 15px 0;
|
||||||
color: #bfb8b3;
|
color: #bfb8b3;
|
||||||
font-weight: 300; }
|
font-weight: 300; }
|
||||||
#content form .alert {
|
#content form .alert {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ body.fixed-top
|
|||||||
background-image: url('../img/patterns/bedge_grunge.png')
|
background-image: url('../img/patterns/bedge_grunge.png')
|
||||||
@include box-shadow(darken($bg-content-color,30%) 0 0 0 4px)
|
@include box-shadow(darken($bg-content-color,30%) 0 0 0 4px)
|
||||||
fieldset
|
fieldset
|
||||||
padding-bottom: 20px
|
padding: 20px
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
border: solid 1px darken($bg-content-color,20%)
|
border: solid 1px darken($bg-content-color,20%)
|
||||||
background-color: $bg-content-color
|
background-color: $bg-content-color
|
||||||
@@ -54,8 +54,8 @@ body.fixed-top
|
|||||||
@include box-shadow(rgba(black,0.10) 0 0 7px, white 0 0 0 4px inset)
|
@include box-shadow(rgba(black,0.10) 0 0 7px, white 0 0 0 4px inset)
|
||||||
form legend
|
form legend
|
||||||
float: left
|
float: left
|
||||||
padding: 0 0 0 10px
|
padding: 0 0 0 0
|
||||||
margin: 20px 0 15px 0
|
margin: 5px 0 15px 0
|
||||||
color: darken(#D6D2CF,10%)
|
color: darken(#D6D2CF,10%)
|
||||||
font-weight: 300
|
font-weight: 300
|
||||||
form .alert
|
form .alert
|
||||||
|
|||||||
@@ -248,7 +248,7 @@
|
|||||||
<ul id="menu">
|
<ul id="menu">
|
||||||
<li class="maintab">
|
<li class="maintab">
|
||||||
<a href="{$link->getAdminLink('AdminHome')|escape:'htmlall':'UTF-8'}" class="title">
|
<a href="{$link->getAdminLink('AdminHome')|escape:'htmlall':'UTF-8'}" class="title">
|
||||||
<i class="icon-AdminDashboard"></i> Dashboard
|
<i class="icon-AdminDashboard"></i> {l s='Dashboard'}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{foreach $tabs AS $t}
|
{foreach $tabs AS $t}
|
||||||
|
|||||||
@@ -78,12 +78,22 @@
|
|||||||
{assign var='value_text' value=$fields_value[$input.name][$language.id_lang]}
|
{assign var='value_text' value=$fields_value[$input.name][$language.id_lang]}
|
||||||
<div class="input-group col-lg-12 translatable-field lang-{$language.id_lang}" style="{if $language.id_lang != $defaultFormLanguage}display:none{/if}">
|
<div class="input-group col-lg-12 translatable-field lang-{$language.id_lang}" style="{if $language.id_lang != $defaultFormLanguage}display:none{/if}">
|
||||||
{if $input.type == 'tags'}
|
{if $input.type == 'tags'}
|
||||||
tags
|
{literal}
|
||||||
|
<script type="text/javascript">
|
||||||
|
$().ready(function () {
|
||||||
|
var input_id = '{/literal}{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}{literal}';
|
||||||
|
$('#'+input_id).tagify({addTagPrompt: '{/literal}{l s='Add tag' js=1}{literal}'});
|
||||||
|
$({/literal}'#{$table}{literal}_form').submit( function() {
|
||||||
|
$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{/literal}
|
||||||
{/if}
|
{/if}
|
||||||
<input type="text"
|
<input type="text"
|
||||||
id="{$input_name}_{$language.id_lang}"
|
name="{$input_name}_{$language.id_lang}"
|
||||||
class="{if $input.type == 'tags'}tagify {/if}{if isset($input.class)}{$input.class}{/if}"
|
class="{if $input.type == 'tags'}tagify {/if}{if isset($input.class)}{$input.class}{/if}"
|
||||||
name="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}"
|
id="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}"
|
||||||
value="{if isset($input.string_format) && $input.string_format}{$value_text|string_format:$input.string_format|escape:'htmlall':'UTF-8'}{else}{$value_text|escape:'htmlall':'UTF-8'}{/if}"
|
value="{if isset($input.string_format) && $input.string_format}{$value_text|string_format:$input.string_format|escape:'htmlall':'UTF-8'}{else}{$value_text|escape:'htmlall':'UTF-8'}{/if}"
|
||||||
onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
|
onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
|
||||||
{if isset($input.size)}size="{$input.size}"{/if}
|
{if isset($input.size)}size="{$input.size}"{/if}
|
||||||
@@ -106,38 +116,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="translatable">
|
|
||||||
{foreach $languages as $language}
|
|
||||||
<div class="lang_{$language.id_lang}" style="display:{if $language.id_lang == $defaultFormLanguage}block{else}none{/if}">
|
|
||||||
{if $input.type == 'tags'}
|
|
||||||
{literal}
|
|
||||||
<script type="text/javascript">
|
|
||||||
$().ready(function () {
|
|
||||||
var input_id = '{/literal}{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}{literal}';
|
|
||||||
$('#'+input_id).tagify({addTagPrompt: '{/literal}{l s='Add tag' js=1}{literal}'});
|
|
||||||
$({/literal}'#{$table}{literal}_form').submit( function() {
|
|
||||||
$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{/literal}
|
|
||||||
{/if}
|
|
||||||
{assign var='value_text' value=$fields_value[$input.name][$language.id_lang]}
|
|
||||||
<input type="text"
|
|
||||||
name="{$input.name}_{$language.id_lang}"
|
|
||||||
id="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}"
|
|
||||||
value="{if isset($input.string_format) && $input.string_format}{$value_text|string_format:$input.string_format|escape:'htmlall':'UTF-8'}{else}{$value_text|escape:'htmlall':'UTF-8'}{/if}"
|
|
||||||
class="{if $input.type == 'tags'}tagify {/if}{if isset($input.class)}{$input.class}{/if}"
|
|
||||||
{if isset($input.size)}size="{$input.size}"{/if}
|
|
||||||
{if isset($input.maxlength)}maxlength="{$input.maxlength}"{/if}
|
|
||||||
{if isset($input.readonly) && $input.readonly}readonly="readonly"{/if}
|
|
||||||
{if isset($input.disabled) && $input.disabled}disabled="disabled"{/if}
|
|
||||||
{if isset($input.autocomplete) && !$input.autocomplete}autocomplete="off"{/if} />
|
|
||||||
</div>
|
|
||||||
{/foreach}
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
{else}
|
{else}
|
||||||
{if $input.type == 'tags'}
|
{if $input.type == 'tags'}
|
||||||
{literal}
|
{literal}
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
$this->fields_list = array(
|
$this->fields_list = array(
|
||||||
'id_attribute' => array(
|
'id_attribute' => array(
|
||||||
'title' => $this->l('ID'),
|
'title' => $this->l('ID'),
|
||||||
'width' => 40,
|
|
||||||
'align' => 'center'
|
'align' => 'center'
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
@@ -113,13 +112,11 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
if ($obj->group_type == 'color')
|
if ($obj->group_type == 'color')
|
||||||
$this->fields_list['color'] = array(
|
$this->fields_list['color'] = array(
|
||||||
'title' => $this->l('Color'),
|
'title' => $this->l('Color'),
|
||||||
'width' => 40,
|
|
||||||
'filter_key' => 'b!color'
|
'filter_key' => 'b!color'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->fields_list['position'] = array(
|
$this->fields_list['position'] = array(
|
||||||
'title' => $this->l('Position'),
|
'title' => $this->l('Position'),
|
||||||
'width' => 40,
|
|
||||||
'filter_key' => 'a!position',
|
'filter_key' => 'a!position',
|
||||||
'position' => 'position'
|
'position' => 'position'
|
||||||
);
|
);
|
||||||
@@ -187,7 +184,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
$this->fields_form = array(
|
$this->fields_form = array(
|
||||||
'legend' => array(
|
'legend' => array(
|
||||||
'title' => $this->l('Attributes'),
|
'title' => $this->l('Attributes'),
|
||||||
'image' => '../img/admin/asterisk.gif'
|
'icon' => 'icon-info-sign'
|
||||||
),
|
),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
@@ -195,7 +192,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
'label' => $this->l('Name:'),
|
'label' => $this->l('Name:'),
|
||||||
'name' => 'name',
|
'name' => 'name',
|
||||||
'lang' => true,
|
'lang' => true,
|
||||||
'size' => 33,
|
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
||||||
),
|
),
|
||||||
@@ -204,7 +200,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
'label' => $this->l('Public name:'),
|
'label' => $this->l('Public name:'),
|
||||||
'name' => 'public_name',
|
'name' => 'public_name',
|
||||||
'lang' => true,
|
'lang' => true,
|
||||||
'size' => 33,
|
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' <>;=#{}',
|
'hint' => $this->l('Invalid characters:').' <>;=#{}',
|
||||||
'desc' => $this->l('Group name displayed to the customer')
|
'desc' => $this->l('Group name displayed to the customer')
|
||||||
@@ -254,7 +249,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
$this->fields_form = array(
|
$this->fields_form = array(
|
||||||
'legend' => array(
|
'legend' => array(
|
||||||
'title' => $this->l('Values'),
|
'title' => $this->l('Values'),
|
||||||
'image' => '../img/admin/asterisk.gif',
|
'icon' => 'icon-info-sign'
|
||||||
),
|
),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
@@ -274,7 +269,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
'label' => $this->l('Value:'),
|
'label' => $this->l('Value:'),
|
||||||
'name' => 'name',
|
'name' => 'name',
|
||||||
'lang' => true,
|
'lang' => true,
|
||||||
'size' => 33,
|
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
||||||
)
|
)
|
||||||
@@ -306,7 +300,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
'type' => 'color',
|
'type' => 'color',
|
||||||
'label' => $this->l('Color:'),
|
'label' => $this->l('Color:'),
|
||||||
'name' => 'color',
|
'name' => 'color',
|
||||||
'size' => 33,
|
|
||||||
'desc' => $this->l('Choose a color with the color picker, or enter an HTML color (e.g. "lightblue", "#CC6600")')
|
'desc' => $this->l('Choose a color with the color picker, or enter an HTML color (e.g. "lightblue", "#CC6600")')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user