// Fixed module page
This commit is contained in:
@@ -1,76 +0,0 @@
|
|||||||
{*
|
|
||||||
* 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
|
|
||||||
*}
|
|
||||||
|
|
||||||
{$kpis}
|
|
||||||
|
|
||||||
<div class="page-head">
|
|
||||||
<h2 class="page-title">
|
|
||||||
{l s='List of modules'}
|
|
||||||
</h2>
|
|
||||||
<div class="page-bar toolbarBox">
|
|
||||||
<div class="btn-toolbar">
|
|
||||||
<ul class="cc_button nav nav-pills pull-right">
|
|
||||||
{if $add_permission eq '1'}
|
|
||||||
<li>
|
|
||||||
<a id="desc-module-new" class="toolbar_btn" href="#top_container" onclick="$('#module_install').slideToggle();" title="{l s='Add a new module'}">
|
|
||||||
<i class="process-icon-new-module" ></i>
|
|
||||||
<div>{l s='Add a new module'}</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{/if}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if $add_permission eq '1'}
|
|
||||||
<div id="module_install" class="row" style="{if !isset($smarty.post.downloadflag)}display: none;{/if}">
|
|
||||||
|
|
||||||
<div class="panel col-lg-12">
|
|
||||||
<form action="{$currentIndex}&token={$token}" method="post" enctype="multipart/form-data" class="form-horizontal">
|
|
||||||
<h3>{l s='Add a new module'}</h3>
|
|
||||||
<p class="alert alert-info">{l s='The module must either be a zip file or a tarball.'}</p>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="file" class="control-label col-lg-3">
|
|
||||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Upload a module from your computer.'}">
|
|
||||||
{l s='Module file'}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-lg-3">
|
|
||||||
<input type="file" name="file" class="form-control" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-lg-9 col-lg-push-3">
|
|
||||||
<button class="btn btn-default" type="submit" name="download">
|
|
||||||
<i class="icon-upload-alt" ></i>
|
|
||||||
{l s='Upload this module'}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
@@ -23,54 +23,104 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{include file='controllers/modules/header.tpl'}
|
{$kpis}
|
||||||
|
|
||||||
{if $upgrade_available|@count}
|
<div class="page-head">
|
||||||
<div class="alert alert-info">
|
<h2 class="page-title">
|
||||||
{l s='An upgrade is available for some of your modules!'}
|
{l s='List of modules'}
|
||||||
<ul>
|
</h2>
|
||||||
{foreach from=$upgrade_available item='module'}
|
<div class="page-bar toolbarBox">
|
||||||
<li> » <a href="{$currentIndex|escape:htmlall}&token={$token|escape:htmlall}&anchor=anchor{$module.anchor|escape:htmlall}"><b>{$module.name|escape:htmlall}</b></a></li>
|
<div class="btn-toolbar">
|
||||||
{/foreach}
|
<ul class="cc_button nav nav-pills pull-right">
|
||||||
</ul>
|
{if $add_permission eq '1'}
|
||||||
|
<li>
|
||||||
|
<a id="desc-module-new" class="toolbar_btn" href="#top_container" onclick="$('#module_install').slideToggle();" title="{l s='Add a new module'}">
|
||||||
|
<i class="process-icon-new-module" ></i>
|
||||||
|
<div>{l s='Add a new module'}</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
</div>
|
||||||
<div class="panel">
|
|
||||||
<div class="panel-heading">
|
{if $add_permission eq '1'}
|
||||||
<i class="icon-list-ul"></i>
|
<div id="module_install" class="row" style="{if !isset($smarty.post.downloadflag)}display: none;{/if}">
|
||||||
{l s='Modules list'}
|
|
||||||
|
<div class="panel col-lg-12">
|
||||||
|
<form action="{$currentIndex}&token={$token}" method="post" enctype="multipart/form-data" class="form-horizontal">
|
||||||
|
<h3>{l s='Add a new module'}</h3>
|
||||||
|
<p class="alert alert-info">{l s='The module must either be a zip file or a tarball.'}</p>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="file" class="control-label col-lg-3">
|
||||||
|
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Upload a module from your computer.'}">
|
||||||
|
{l s='Module file'}
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div class="col-lg-3">
|
||||||
|
<input type="file" name="file" class="form-control" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--start sidebar module-->
|
<div class="form-group">
|
||||||
<div class="row">
|
<div class="col-lg-9 col-lg-push-3">
|
||||||
<div class="categorieTitle col-lg-3">
|
<button class="btn btn-default" type="submit" name="download">
|
||||||
<div class="list-group">
|
<i class="icon-upload-alt" ></i>
|
||||||
<form id="filternameForm" method="post" class="list-group-item form-horizontal">
|
{l s='Upload this module'}
|
||||||
<div class="input-group col-lg-12">
|
</button>
|
||||||
<input type="text" value="" name="filtername" autocomplete="off" class="ac_input">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="submit">
|
|
||||||
<i class="icon-search"></i> {l s='Search'}
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<a class="list-group-item {if isset($categoryFiltered.favorites)}active{/if}" href="{$currentIndex}&token={$token}&filterCategory=favorites">
|
|
||||||
{l s='Favorites'} <span class="badge pull-right">{$nb_modules_favorites}</span>
|
|
||||||
</a>
|
|
||||||
<a class="list-group-item {if count($categoryFiltered) lte 0}active{/if}" href="{$currentIndex}&token={$token}&unfilterCategory=yes">
|
|
||||||
{l s='All'} <span class="badge pull-right">{$nb_modules}</span>
|
|
||||||
</a>
|
|
||||||
{foreach from=$list_modules_categories item=module_category key=module_category_key}
|
|
||||||
<a class="list-group-item {if isset($categoryFiltered[$module_category_key])}active{/if}" href="{$currentIndex}&token={$token}&{if isset($categoryFiltered[$module_category_key])}un{/if}filterCategory={$module_category_key}">
|
|
||||||
{$module_category.name} <span class="badge pull-right">{$module_category.nb}</span>
|
|
||||||
</a>
|
|
||||||
{/foreach}
|
|
||||||
</div>
|
|
||||||
{include file='controllers/modules/login_addons.tpl'}
|
|
||||||
</div>
|
</div>
|
||||||
<div id="moduleContainer" class="col-lg-9">
|
</div>
|
||||||
{include file='controllers/modules/list.tpl'}
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $upgrade_available|@count}
|
||||||
|
<div class="alert alert-info">
|
||||||
|
{l s='An upgrade is available for some of your modules!'}
|
||||||
|
<ul>
|
||||||
|
{foreach from=$upgrade_available item='module'}
|
||||||
|
<li> » <a href="{$currentIndex|escape:htmlall}&token={$token|escape:htmlall}&anchor=anchor{$module.anchor|escape:htmlall}"><b>{$module.name|escape:htmlall}</b></a></li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
<div class="panel">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<i class="icon-list-ul"></i>
|
||||||
|
{l s='Modules list'}
|
||||||
|
</div>
|
||||||
|
<!--start sidebar module-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="categorieTitle col-lg-3">
|
||||||
|
<div class="list-group">
|
||||||
|
<form id="filternameForm" method="post" class="list-group-item form-horizontal">
|
||||||
|
<div class="input-group col-lg-12">
|
||||||
|
<input type="text" value="" name="filtername" autocomplete="off" class="ac_input">
|
||||||
|
<span class="input-group-btn">
|
||||||
|
<button class="btn btn-default" type="submit">
|
||||||
|
<i class="icon-search"></i> {l s='Search'}
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<a class="list-group-item {if isset($categoryFiltered.favorites)}active{/if}" href="{$currentIndex}&token={$token}&filterCategory=favorites">
|
||||||
|
{l s='Favorites'} <span class="badge pull-right">{$nb_modules_favorites}</span>
|
||||||
|
</a>
|
||||||
|
<a class="list-group-item {if count($categoryFiltered) lte 0}active{/if}" href="{$currentIndex}&token={$token}&unfilterCategory=yes">
|
||||||
|
{l s='All'} <span class="badge pull-right">{$nb_modules}</span>
|
||||||
|
</a>
|
||||||
|
{foreach from=$list_modules_categories item=module_category key=module_category_key}
|
||||||
|
<a class="list-group-item {if isset($categoryFiltered[$module_category_key])}active{/if}" href="{$currentIndex}&token={$token}&{if isset($categoryFiltered[$module_category_key])}un{/if}filterCategory={$module_category_key}">
|
||||||
|
{$module_category.name} <span class="badge pull-right">{$module_category.nb}</span>
|
||||||
|
</a>
|
||||||
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
{include file='controllers/modules/login_addons.tpl'}
|
||||||
|
</div>
|
||||||
|
<div id="moduleContainer" class="col-lg-9">
|
||||||
|
{include file='controllers/modules/list.tpl'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user