Merge branch 'bootstrap' of https://github.com/PrestaShop/PrestaShop into bootstrap
This commit is contained in:
@@ -46,5 +46,5 @@
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$img_dir}favicon.ico" />
|
||||
</head>
|
||||
<body class="page-topbar">
|
||||
<div id="login">
|
||||
<div id="content" class="page-content">
|
||||
<div id="login" class="bootstrap">
|
||||
<div id="content">
|
||||
@@ -22,26 +22,23 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="panel">
|
||||
<div class="bootstrap">
|
||||
<h3><i class="icon-cogs"></i> {l s='Configuration'}</h3>
|
||||
<div class="row">
|
||||
<div class="input-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
|
||||
{l s='Manage translations'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$module_languages item=language}
|
||||
<li><a href="{$trad_link}{$language['iso_code']}#{$module_name}">{$language.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
|
||||
<i class="icon-flag"></i>
|
||||
{l s='Manage translations'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$module_languages item=language}
|
||||
<li><a href="{$trad_link}{$language['iso_code']}#{$module_name}">{$language.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{if isset($display_multishop_checkbox) && $display_multishop_checkbox}
|
||||
<div class="row">
|
||||
<input type="checkbox" name="activateModule" value="1"{if $module->active} checked="checked"{/if}
|
||||
onclick="location.href = '{$current_url}&enable='+(($(this).attr('checked')) ? 1 : 0)" />
|
||||
{l s='Activate module for '}{$shop_context}
|
||||
</div>
|
||||
<input type="checkbox" name="activateModule" value="1"{if $module->active} checked="checked"{/if}
|
||||
onclick="location.href = '{$current_url}&enable='+(($(this).attr('checked')) ? 1 : 0)" />
|
||||
{l s='Activate module for '}{$shop_context}
|
||||
{/if}
|
||||
</div>
|
||||
@@ -22,52 +22,54 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="page-head">
|
||||
<h2 class="page-title">
|
||||
{l s='Configure:'} {$module_display_name} ({$module_name})
|
||||
</h2>
|
||||
<div class="page-bar toolbarBox">
|
||||
<div class="btn-toolbar">
|
||||
<ul class="cc_button nav nav-pills pull-right">
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_disable_link}" title="{l s='Disable'}">
|
||||
<i class="process-icon-off"></i>
|
||||
<div>{l s='Disable'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_uninstall_link}" title="{l s='Uninstall'}">
|
||||
<i class="process-icon-minus-sign-alt"></i>
|
||||
<div>{l s='Uninstall'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_reset_link}" title="{l s='Reset'}">
|
||||
<i class="process-icon-share-alt"></i>
|
||||
<div>{l s='Reset'}</div>
|
||||
</a>
|
||||
</li>
|
||||
{if isset($module_update_link)}
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_update_link}" title="{l s='Update'}">
|
||||
<i class="process-icon-refresh"></i>
|
||||
<div>{l s='Update'}</div>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_hook_link}" title="{l s='Manage hooks'}">
|
||||
<i class="process-icon-anchor"></i>
|
||||
<div>{l s='Manage hooks'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-back" class="toolbar_btn" href="{$back_link}" title="{l s='Back'}">
|
||||
<i class="process-icon-back" ></i>
|
||||
<div>{l s='Back'}</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="bootstrap">
|
||||
<div class="page-head">
|
||||
<h2 class="page-title">
|
||||
{l s='Configure:'} {$module_display_name} ({$module_name})
|
||||
</h2>
|
||||
<div class="page-bar toolbarBox">
|
||||
<div class="btn-toolbar">
|
||||
<ul class="cc_button nav nav-pills pull-right">
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_disable_link}" title="{l s='Disable'}">
|
||||
<i class="process-icon-off"></i>
|
||||
<div>{l s='Disable'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_uninstall_link}" title="{l s='Uninstall'}">
|
||||
<i class="process-icon-uninstall"></i>
|
||||
<div>{l s='Uninstall'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_reset_link}" title="{l s='Reset'}">
|
||||
<i class="process-icon-reset"></i>
|
||||
<div>{l s='Reset'}</div>
|
||||
</a>
|
||||
</li>
|
||||
{if isset($module_update_link)}
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_update_link}" title="{l s='Update'}">
|
||||
<i class="process-icon-refresh"></i>
|
||||
<div>{l s='Update'}</div>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a id="desc-module-hook" class="toolbar_btn" href="{$module_hook_link}" title="{l s='Manage hooks'}">
|
||||
<i class="process-icon-anchor"></i>
|
||||
<div>{l s='Manage hooks'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="desc-module-back" class="toolbar_btn" href="{$back_link}" title="{l s='Back'}">
|
||||
<i class="process-icon-back" ></i>
|
||||
<div>{l s='Back'}</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -26,7 +26,6 @@
|
||||
<div class="leadin">{block name="leadin"}{/block}</div>
|
||||
|
||||
<form action="{$url_submit}" id="{$table}_form" method="post" class="form-horizontal">
|
||||
|
||||
{if $display_key}
|
||||
<input type="hidden" name="show_modules" value="{$display_key}" />
|
||||
{/if}
|
||||
@@ -35,9 +34,9 @@
|
||||
<i class="icon-paste"></i>
|
||||
{l s='Transplant a module'}
|
||||
</h3>
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required"> {l s='Module:'}</label>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-lg-9">
|
||||
<select name="id_module" {if $edit_graft} disabled="disabled"{/if}>
|
||||
{foreach $modules as $module}
|
||||
<option value="{$module->id}" {if $id_module == $module->id || (!$id_module && $show_modules == $module->id)}selected="selected"{/if}>{$module->displayName|stripslashes}</option>
|
||||
@@ -45,9 +44,9 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required"> {l s='Hook into'} :</label>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-lg-9">
|
||||
<select name="id_hook" {if $edit_graft} disabled="disabled"{/if}>
|
||||
{foreach $hooks as $hook}
|
||||
<option value="{$hook['id_hook']}" {if $id_hook == $hook['id_hook']} selected="selected"{/if}>{$hook['name']}{if $hook['name'] != $hook['title']} ({$hook['title']}){/if}</option>
|
||||
@@ -55,10 +54,10 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{l s='Exceptions'} :</label>
|
||||
<div class="col-lg-6">
|
||||
<div class="alert alert-warning">
|
||||
<div class="col-lg-9">
|
||||
<div class="well">
|
||||
<p>
|
||||
{l s='Please specify the files for which you do not want the module to be displayed.'}<br />
|
||||
{l s='Please input each filename, separated by a comma.'}<br />
|
||||
@@ -73,22 +72,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
{if $edit_graft}
|
||||
<input type="hidden" name="id_module" value="{$id_module}" />
|
||||
<input type="hidden" name="id_hook" value="{$id_hook}" />
|
||||
{/if}
|
||||
<input type="submit" value="{l s='Save'}" name="{if $edit_graft}submitEditGraft{else}submitAddToHook{/if}" id="{$table}_form_submit_btn" class="btn btn-default" />
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
{if $edit_graft}
|
||||
<input type="hidden" name="id_module" value="{$id_module}" />
|
||||
<input type="hidden" name="id_hook" value="{$id_hook}" />
|
||||
{/if}
|
||||
<input type="submit" value="{l s='Save'}" name="{if $edit_graft}submitEditGraft{else}submitAddToHook{/if}" id="{$table}_form_submit_btn" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA
|
||||
function position_exception_textchange()
|
||||
{
|
||||
function position_exception_textchange() {
|
||||
// TODO : Add & Remove automatically the "custom pages" in the "em_list_x"
|
||||
var obj = $(this);
|
||||
var shopID = obj.attr('id').replace(/\D/g, '');
|
||||
@@ -100,21 +95,16 @@
|
||||
for (var i = 0; i < len; i++)
|
||||
list.find('option[value="' + $.trim(values[i]) + '"]').prop('selected', true);
|
||||
}
|
||||
|
||||
function position_exception_listchange()
|
||||
{
|
||||
|
||||
function position_exception_listchange() {
|
||||
var obj = $(this);
|
||||
var shopID = obj.attr('id').replace(/\D/g, '');
|
||||
var str = obj.val().join(', ');
|
||||
obj.closest('form').find('#em_text_' + shopID).val(str);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$('form[id="hook_module_form"] input[id^="em_text_"]').each(function(){
|
||||
$(this).change(position_exception_textchange).change();
|
||||
});
|
||||
|
||||
$('form[id="hook_module_form"] select[id^="em_list_"]').each(function(){
|
||||
$(this).change(position_exception_listchange);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user