// Add overflow-y to module payments
This commit is contained in:
1 parent
eed6b65914
commit
5fd6b9aac6
2 files changed
+87
-85
No files matched your search
@@ -30,97 +30,99 @@
|
|||||||
{$list['title']}
|
{$list['title']}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="help-block">{$list['desc']}</p>
|
<p class="help-block">{$list['desc']}</p>
|
||||||
<table cellpadding="0" cellspacing="0" class="table">
|
<div class="row table-responsive clearfix overflow-y">
|
||||||
<tr>
|
<table class="table">
|
||||||
<th width="40%">{$list['title']}</th>
|
|
||||||
{foreach $payment_modules as $module}
|
|
||||||
{if $module->active}
|
|
||||||
<th>
|
|
||||||
{if $list['name_id'] != 'currency' || $module->currencies_mode == 'checkbox'}
|
|
||||||
<input type="hidden" id="checkedBox_{$list['name_id']}_{$module->name}" value="checked"/>
|
|
||||||
<a href="javascript:checkPaymentBoxes('{$list['name_id']}', '{$module->name}')">
|
|
||||||
{/if}
|
|
||||||
<img src="{$ps_base_uri}modules/{$module->name}/logo.gif" alt="{$module->name}" title="{$module->displayName}"/>
|
|
||||||
{if $list['name_id'] != 'currency' || $module->currencies_mode == 'checkbox'}
|
|
||||||
</a>
|
|
||||||
{/if}
|
|
||||||
</th>
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
</tr>
|
|
||||||
{foreach $list['items'] as $item}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<th width="40%"><span class="title_box">{$list['title']}<span></th>
|
||||||
<span>{$item['name']}</span>
|
{foreach $payment_modules as $module}
|
||||||
</td>
|
|
||||||
{foreach $payment_modules as $key_module => $module}
|
|
||||||
{if $module->active}
|
{if $module->active}
|
||||||
<td>
|
<th class="center">
|
||||||
{assign var='type' value='null'}
|
{if $list['name_id'] != 'currency' || $module->currencies_mode == 'checkbox'}
|
||||||
{if !$item['check_list'][$key_module]}
|
<input type="hidden" id="checkedBox_{$list['name_id']}_{$module->name}" value="checked"/>
|
||||||
{* Keep $type to null *}
|
<a href="javascript:checkPaymentBoxes('{$list['name_id']}', '{$module->name}')">
|
||||||
{elseif $list['name_id'] === 'currency'}
|
{/if}
|
||||||
{if $module->currencies && $module->currencies_mode == 'checkbox'}
|
<img src="{$ps_base_uri}modules/{$module->name}/logo.gif" alt="{$module->name}" title="{$module->displayName}"/>
|
||||||
|
{if $list['name_id'] != 'currency' || $module->currencies_mode == 'checkbox'}
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
</th>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</tr>
|
||||||
|
{foreach $list['items'] as $item}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>{$item['name']}</span>
|
||||||
|
</td>
|
||||||
|
{foreach $payment_modules as $key_module => $module}
|
||||||
|
{if $module->active}
|
||||||
|
<td class="center">
|
||||||
|
{assign var='type' value='null'}
|
||||||
|
{if !$item['check_list'][$key_module]}
|
||||||
|
{* Keep $type to null *}
|
||||||
|
{elseif $list['name_id'] === 'currency'}
|
||||||
|
{if $module->currencies && $module->currencies_mode == 'checkbox'}
|
||||||
|
{$type = 'checkbox'}
|
||||||
|
{elseif $module->currencies && $module->currencies_mode == 'radio'}
|
||||||
|
{$type = 'radio'}
|
||||||
|
{/if}
|
||||||
|
{else}
|
||||||
{$type = 'checkbox'}
|
{$type = 'checkbox'}
|
||||||
{elseif $module->currencies && $module->currencies_mode == 'radio'}
|
|
||||||
{$type = 'radio'}
|
|
||||||
{/if}
|
{/if}
|
||||||
{else}
|
{if $type != 'null'}
|
||||||
{$type = 'checkbox'}
|
<input type="{$type}" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}" {if $item['check_list'][$key_module] == 'checked'}checked="checked"{/if}/>
|
||||||
{/if}
|
{else}
|
||||||
{if $type != 'null'}
|
<input type="hidden" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}"/>--
|
||||||
<input type="{$type}" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}" {if $item['check_list'][$key_module] == 'checked'}checked="checked"{/if}/>
|
{/if}
|
||||||
{else}
|
</td>
|
||||||
<input type="hidden" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}"/>--
|
{/if}
|
||||||
{/if}
|
{/foreach}
|
||||||
</td>
|
</tr>
|
||||||
{/if}
|
{/foreach}
|
||||||
{/foreach}
|
{if $list['name_id'] === 'currency'}
|
||||||
</tr>
|
<tr>
|
||||||
{/foreach}
|
<td>
|
||||||
{if $list['name_id'] === 'currency'}
|
<span>{l s='Customer currency'}</span>
|
||||||
<tr>
|
</td>
|
||||||
<td>
|
{foreach $payment_modules as $module}
|
||||||
<span>{l s='Customer currency'}</span>
|
{if $module->active}
|
||||||
</td>
|
<td>
|
||||||
{foreach $payment_modules as $module}
|
{if $module->currencies && $module->currencies_mode == 'radio'}
|
||||||
{if $module->active}
|
<input type="radio" name="{$module->name}_{$list['name_id']}[]" value="-1"{if in_array(-1, $module->$list['name_id'])} checked="checked"
|
||||||
<td>
|
{/if} />
|
||||||
{if $module->currencies && $module->currencies_mode == 'radio'}
|
{else}
|
||||||
<input type="radio" name="{$module->name}_{$list['name_id']}[]" value="-1"{if in_array(-1, $module->$list['name_id'])} checked="checked"
|
--
|
||||||
{/if} />
|
{/if}
|
||||||
{else}
|
</td>
|
||||||
--
|
{/if}
|
||||||
{/if}
|
{/foreach}
|
||||||
</td>
|
</tr>
|
||||||
{/if}
|
<tr>
|
||||||
{/foreach}
|
<td>
|
||||||
</tr>
|
<span>{l s='Shop default currency'}</span>
|
||||||
<tr>
|
</td>
|
||||||
<td>
|
{foreach $payment_modules as $module}
|
||||||
<span>{l s='Shop default currency'}</span>
|
{if $module->active}
|
||||||
</td>
|
<td>
|
||||||
{foreach $payment_modules as $module}
|
{if $module->currencies && $module->currencies_mode == 'radio'}
|
||||||
{if $module->active}
|
<input type="radio" name="{$module->name}_{$list['name_id']}[]" value="-2"{if in_array(-2, $module->$list['name_id'])} checked="checked"
|
||||||
<td>
|
{/if}
|
||||||
{if $module->currencies && $module->currencies_mode == 'radio'}
|
/>
|
||||||
<input type="radio" name="{$module->name}_{$list['name_id']}[]" value="-2"{if in_array(-2, $module->$list['name_id'])} checked="checked"
|
{else}
|
||||||
{/if}
|
--
|
||||||
/>
|
{/if}
|
||||||
{else}
|
</td>
|
||||||
--
|
{/if}
|
||||||
{/if}
|
{/foreach}
|
||||||
</td>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
</table>
|
||||||
</tr>
|
</div>
|
||||||
{/if}
|
<div class="row pull-right">
|
||||||
</table>
|
|
||||||
<p class="text-right">
|
|
||||||
<button type="submit" class="btn btn-primary" name="submitModule{$list['name_id']}">
|
<button type="submit" class="btn btn-primary" name="submitModule{$list['name_id']}">
|
||||||
<i class="icon-save"></i>
|
<i class="icon-save"></i>
|
||||||
{l s='Save restrictions'}
|
{l s='Save restrictions'}
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
<fieldset class="col-lg-12">
|
<fieldset class="col-lg-12">
|
||||||
{if isset($title)}<h3>{if isset($icon)}<i class="{$icon}"></i> {/if}{if is_array($title)}{$title|end}{else}{$title}{/if}</h3>{/if}
|
{if isset($title)}<h3>{if isset($icon)}<i class="{$icon}"></i> {/if}{if is_array($title)}{$title|end}{else}{$title}{/if}</h3>{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<div class="table-responsive clearfix">
|
<div class="table-responsive clearfix{if isset($use_overflow) && $use_overflow} overflow-y{/if}">
|
||||||
<table
|
<table
|
||||||
name="list_table"
|
name="list_table"
|
||||||
{if $table_id} id={$table_id}{/if}
|
{if $table_id} id={$table_id}{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user