[-] FO : Bug fix #PSCFV-7915 : Mobile theme issue, default attribute

This commit is contained in:
François Gaillard
2013-03-12 16:04:03 +01:00
parent b9c87df4e5
commit 18bce2ba39
2 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -67,8 +67,12 @@
/* JQUERY MOBILE */
.ui-content {
margin: 20px;
overflow-y:hidden;
background:none !important;
}
.ui-page > .ui-content {
padding:15px !important;
}
section .ui-content {
+3 -3
View File
@@ -24,7 +24,7 @@
*}
{if isset($groups)}
<hr width="99%" align="center" size="2" class="margin_less"/>
{debug}
<div id="attributes">
{foreach from=$groups key=id_attribute_group item=group}
{if $group.attributes|@count}
@@ -34,13 +34,13 @@
{if ($group.group_type == 'select' || $group.group_type == 'color')}
<select name="{$groupName}" id="{$groupName}" class="attribute_select{if ($group.group_type == 'color')} select_color{/if}">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<option value="{$id_attribute|intval}" title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option>
<option value="{$id_attribute|intval}" title="{$group_attribute|escape:'htmlall':'UTF-8'}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if}>{$group_attribute|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
{elseif ($group.group_type == 'radio')}
<fieldset data-role="controlgroup">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<input type="radio" class="attribute_radio" name="{$groupName}" id="{$groupName}_{$id_attribute}" value="{$id_attribute}">
<input type="radio" class="attribute_radio" name="{$groupName}" id="{$groupName}_{$id_attribute}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if}>
<label for="{$groupName}_{$id_attribute}">{$group_attribute|escape:'htmlall':'UTF-8'}</label>
{/foreach}
</fieldset>