77f80b1774
Conflicts: .gitignore admin-dev/themes/default/css/admin.css admin-dev/themes/default/template/controllers/categories/helpers/list/list_header.tpl admin-dev/themes/default/template/controllers/customers/helpers/list/list_header.tpl admin-dev/themes/default/template/controllers/modules/list.tpl admin-dev/themes/default/template/controllers/modules/page.tpl admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl admin-dev/themes/default/template/controllers/orders/_documents.tpl admin-dev/themes/default/template/controllers/orders/_shipping.tpl admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl admin-dev/themes/default/template/controllers/payment/helpers/view/view.tpl admin-dev/themes/default/template/controllers/payment/restrictions.tpl admin-dev/themes/default/template/controllers/products/images.tpl admin-dev/themes/default/template/controllers/products/informations.tpl admin-dev/themes/default/template/header.tpl admin-dev/themes/default/template/helpers/form/form.tpl admin-dev/themes/default/template/helpers/modules_list/list.tpl classes/Tools.php controllers/admin/AdminCartRulesController.php controllers/admin/AdminProductsController.php css/admin.css
124 lines
4.4 KiB
Smarty
124 lines
4.4 KiB
Smarty
{*
|
|
* 2007-2013 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/afl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2013 PrestaShop SA
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
|
|
<form action="{$url_submit}" method="post" id="form_{$list['name_id']}" class="form-horizontal">
|
|
<fieldset class="well">
|
|
<legend><img src="../img/admin/{$list['icon']}.gif" /> {$list['title']}</legend>
|
|
<p class="help-block">{$list['desc']}</p>
|
|
<table cellpadding="0" cellspacing="0" class="table table-striped table-hover">
|
|
<tr>
|
|
<th width="20%">{$list['title']}</th>
|
|
{foreach $payment_modules as $module}
|
|
{if $module->active}
|
|
<th class="center">
|
|
{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}')" style="text-decoration:none;">
|
|
{/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 class="{cycle values=",alt_row"}">
|
|
<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'}
|
|
{/if}
|
|
{if $type != 'null'}
|
|
<input type="{$type}" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}" {if $item['check_list'][$key_module] == 'checked'}checked="checked"{/if}/>
|
|
{else}
|
|
<input type="hidden" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}"/>--
|
|
{/if}
|
|
</td>
|
|
{/if}
|
|
{/foreach}
|
|
</tr>
|
|
{/foreach}
|
|
{if $list['name_id'] === 'currency'}
|
|
<tr class="{cycle values=",alt_row"}">
|
|
<td>
|
|
<span>{l s='Customer currency'}</span>
|
|
</td>
|
|
{foreach $payment_modules as $module}
|
|
{if $module->active}
|
|
<td class="center">
|
|
{if $module->currencies && $module->currencies_mode == 'radio'}
|
|
<input type="radio" name="{$module->name}_{$list['name_id']}[]" value="-1"{if in_array(-1, $module->$list['name_id'])} checked="checked"
|
|
{/if} />
|
|
{else}
|
|
--
|
|
{/if}
|
|
</td>
|
|
{/if}
|
|
{/foreach}
|
|
</tr>
|
|
<tr class="{cycle values=",alt_row"}">
|
|
<td>
|
|
<span>{l s='Shop default currency'}</span>
|
|
</td>
|
|
{foreach $payment_modules as $module}
|
|
{if $module->active}
|
|
<td class="center">
|
|
{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"
|
|
{/if}
|
|
/>
|
|
{else}
|
|
--
|
|
{/if}
|
|
</td>
|
|
{/if}
|
|
{/foreach}
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
<p class="text-right">
|
|
<button type="submit" class="btn btn-default" name="submitModule{$list['name_id']}">
|
|
<i class="icon-ok"></i>
|
|
{l s='Save restrictions'}
|
|
</button>
|
|
</p>
|
|
</fieldset>
|
|
</form>
|