// update modules list tab
This commit is contained in:
@@ -26,12 +26,19 @@
|
||||
{if $add_permission eq '1'}
|
||||
{if isset($logged_on_addons)}
|
||||
<!--start addons login-->
|
||||
<div class="filter-module" id="addons_login_div">
|
||||
<p>{l s='You are logged into PrestaShop Addons.'}</p>
|
||||
<div style="float:right">
|
||||
<label><img src="themes/default/img/module-profile.png" /> {l s='Welcome'} {$username_addons}</label>
|
||||
<label>|</label>
|
||||
<label><a href="#" id="addons_logout_button"><img src="themes/default/img/module-logout.png" /> {l s='Log out from PrestaShop Addons.'}</a></label>
|
||||
<div id="addons_login_div" class="row" >
|
||||
<div class="col-lg-12">
|
||||
<legend>{l s='You are logged into PrestaShop Addons.'}</legend>
|
||||
<div class="row">
|
||||
<label class="control-label col-lg-9">
|
||||
<i class="icon-user"></i> {l s='Welcome'} {$username_addons}
|
||||
</label>
|
||||
<label class="control-label col-lg-3">
|
||||
<a href="#" id="addons_logout_button">
|
||||
<i class="icon-signout"></i> {l s='Log out from PrestaShop Addons.'}
|
||||
</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end addons login-->
|
||||
@@ -88,7 +95,7 @@
|
||||
<input type="text" value="" name="filtername" autocomplete="off" class="ac_input">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">
|
||||
{l s='Search'}
|
||||
<i class="icon-search"></i> {l s='Search'}
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -24,15 +24,15 @@
|
||||
*}
|
||||
|
||||
{if count($modules)}
|
||||
<table cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom:10px;" class="table" id="">
|
||||
<table cellspacing="0" cellpadding="0" class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="center">
|
||||
<input type="checkbox" rel="false" class="noborder" id="checkme"><br>
|
||||
<input type="checkbox" rel="false" class="noborder" id="checkme">
|
||||
</th>
|
||||
<th class="center"></th>
|
||||
<th>{l s='Module name'}</th>
|
||||
<th></th>
|
||||
<th>{l s='Logo'}</th>
|
||||
<th class="center">{l s='Module name'}</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<tbody>
|
||||
{foreach from=$modules item=module}
|
||||
@@ -44,49 +44,60 @@
|
||||
class="noborder">
|
||||
{/if}
|
||||
</td>
|
||||
<td><img class="imgm" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}"></td>
|
||||
<td class="center">
|
||||
<img width="57" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="moduleDesc" id="anchor{$module->name|ucfirst}">
|
||||
<h3>{$module->displayName}
|
||||
<div id="anchor{$module->name|ucfirst}">
|
||||
<h4>{$module->displayName}
|
||||
{if isset($module->type) && $module->type == 'addonsMustHave'}
|
||||
<span class="setup must-have">{l s='Must Have'}</span>
|
||||
<span class="label label-danger">{l s='Must Have'}</span>
|
||||
{else}
|
||||
{if isset($module->id) && $module->id gt 0}
|
||||
<span class="setup{if isset($module->active) && $module->active eq 0} off{/if}">{l s='Installed'}</span>
|
||||
<span class="label label-success{if isset($module->active) && $module->active eq 0} off{/if}">{l s='Installed'}</span>
|
||||
{else}
|
||||
<span class="setup non-install">{l s='Not installed'}</span>
|
||||
<span class="label label-warning">{l s='Not installed'}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
</h3>
|
||||
<div class="metadata">
|
||||
{if isset($module->author) && !empty($module->author)}
|
||||
<dl class="">
|
||||
<dt>{l s='Developed by'} :</dt>
|
||||
<dd>{$module->author|truncate:20:'...'}</dd>|
|
||||
</dl>
|
||||
{/if}
|
||||
<dl class="">
|
||||
<dt>{l s='Version'} :</dt>
|
||||
<dd>{$module->version}
|
||||
{if isset($module->version_addons)}({l s='Update'} {$module->version_addons} {l s='Available on PrestaShop Addons'}){/if}
|
||||
</dd>|
|
||||
</dl>
|
||||
<dl class="">
|
||||
<dt>{l s='Category'} :</dt>
|
||||
<dd>{$module->categoryName}</dd>
|
||||
</h4>
|
||||
<div class="row-fluid">
|
||||
<dl class="dl-horizontal">
|
||||
{if isset($module->author) && !empty($module->author)}
|
||||
<dt>{l s='Developed by'} :</dt>
|
||||
<dd>{$module->author|truncate:20:'...'}</dd>
|
||||
{/if}
|
||||
<dt>{l s='Version'} :</dt>
|
||||
<dd>{$module->version}
|
||||
{if isset($module->version_addons)}({l s='Update'} {$module->version_addons} {l s='Available on PrestaShop Addons'}){/if}
|
||||
</dd>
|
||||
<dt>{l s='Category'} :</dt>
|
||||
<dd>{$module->categoryName}</dd>
|
||||
{if isset($module->description) && $module->description ne ''}
|
||||
<dt>{l s='Description'} :</dt>
|
||||
<dd>{$module->description}</dd>
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</dl>
|
||||
</div>
|
||||
<p class="desc">{if isset($module->description) && $module->description ne ''}{l s='Description'} : {$module->description}{else} {/if}</p>
|
||||
{if isset($module->message)}<div class="alert">{$module->message}</div>{/if}
|
||||
<div class="row-actions-module">
|
||||
<div class="row-fluid">
|
||||
{if !isset($module->not_on_disk)}
|
||||
{$module->optionsHtml}
|
||||
{if isset($module->preferences) && $module->preferences['favorite'] == 1}
|
||||
<a class="action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#">{l s='Remove from Favorites'}</a>
|
||||
<a class="action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#" style="display: none;">{l s='Mark as Favorite'}</a>
|
||||
<a class="btn btn-default btn-small action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#">
|
||||
<i class="icon-star"></i> {l s='Remove from Favorites'}
|
||||
</a>
|
||||
<a class="btn btn-default btn-small action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#" style="display: none;">
|
||||
<i class="icon-star"></i> {l s='Mark as Favorite'}
|
||||
</a>
|
||||
{else}
|
||||
<a class="action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#" style="display: none;">{l s='Remove from Favorites'}</a>
|
||||
<a class="action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#">{l s='Mark as Favorite'}</a>
|
||||
<a class="btn btn-default btn-small action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#" style="display: none;">
|
||||
<i class="icon-star"></i> {l s='Remove from Favorites'}
|
||||
</a>
|
||||
<a class="btn btn-default btn-small action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#">
|
||||
<i class="icon-star"></i> {l s='Mark as Favorite'}
|
||||
</a>
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
@@ -94,23 +105,47 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<ul id="list-action-button">
|
||||
<td class="center">
|
||||
<div id="list-action-button" class="row-light">
|
||||
{if isset($module->type) && $module->type == 'addonsMustHave'}
|
||||
<li>
|
||||
<a href="{$module->addons_buy_url}" target="_blank" class="button updated"><span><img src="../img/admin/cart_addons.png"> {if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if}</span></a>
|
||||
</li>
|
||||
<p>
|
||||
<a href="{$module->addons_buy_url}" target="_blank">
|
||||
<span class="btn btn-default">
|
||||
<i class="icon-shopping-cart"></i> {if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if}
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
{else}
|
||||
{if $module->id && isset($module->version_addons) && $module->version_addons}
|
||||
<li><a href="{$module->options.update_url}" class="button updated"><span>{l s='Update it!'}</span></a></li>
|
||||
{/if}
|
||||
<li>
|
||||
<a {if isset($module->id) && $module->id gt 0 && !empty($module->options.uninstall_onclick)}onclick="{$module->options.uninstall_onclick}"{/if} href="{if isset($module->id) && $module->id gt 0}{$module->options.uninstall_url}{else}{$module->options.install_url}{/if}" class="button installed">
|
||||
<span>{if isset($module->id) && $module->id gt 0}{l s='Uninstall'}{else}{l s='Install'}{/if}</span>
|
||||
<p>
|
||||
<a href="{$module->options.update_url}">
|
||||
<span class="btn btn-default btn-warning">
|
||||
<i class="icon-refresh"></i> {l s='Update it!'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</p>
|
||||
{/if}
|
||||
<p>
|
||||
<a {if isset($module->id) && $module->id gt 0 && !empty($module->options.uninstall_onclick)}onclick="{$module->options.uninstall_onclick}"{/if} href="{if isset($module->id) && $module->id gt 0}{$module->options.uninstall_url}{else}{$module->options.install_url}{/if}" class="button installed">
|
||||
{if isset($module->id) && $module->id gt 0}
|
||||
<p>
|
||||
<span class="btn btn-default btn-danger">
|
||||
<i class="icon-minus-sign-alt"></i>
|
||||
{l s='Uninstall'}
|
||||
</span>
|
||||
</p>
|
||||
{else}
|
||||
<p>
|
||||
<span class="btn btn-default btn-success">
|
||||
<i class="icon-plus-sign-alt"></i>
|
||||
{l s='Install'}
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
@@ -122,5 +157,5 @@
|
||||
<input type="button" class="button big" value="{l s='Uninstall the selection'}" onclick="modules_management('uninstall')" />
|
||||
</div>
|
||||
{else}
|
||||
<div style="margin-top: 12px;color: #585A69;font-size: 16px;"><p align="center">{l s='No modules available in this section.'}</p></div>
|
||||
<p class="help-block">{l s='No modules available in this section.'}</p>
|
||||
{/if}
|
||||
|
||||
@@ -36,36 +36,50 @@
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<ul class="view-modules">
|
||||
<li class="button normal-view-disabled"><img src="themes/default/img/modules_view_layout_sidebar.png" alt="{l s='Normal view'}" border="0" /><span>{l s='Normal view'}</span></li>
|
||||
<li class="button favorites-view"><a href="index.php?controller={$smarty.get.controller|htmlentities}&token={$smarty.get.token|htmlentities}&select=favorites"><img src="themes/default/img/modules_view_table_select_row.png" alt="{l s='Favorites view'}" border="0" /><span>{l s='Favorites view'}</span></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<span class="pull-right">
|
||||
<a class="btn btn-default" href="index.php?controller={$smarty.get.controller|htmlentities}&token={$smarty.get.token|htmlentities}">
|
||||
<i class="icon-list"></i>
|
||||
{l s='Normal view'}
|
||||
</a>
|
||||
<a class="btn btn-default" href="index.php?controller={$smarty.get.controller|htmlentities}&token={$smarty.get.token|htmlentities}&select=favorites">
|
||||
<i class="icon-star"></i>
|
||||
{l s='Favorites view'}
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="container">
|
||||
<!--start sidebar module-->
|
||||
<div class="sidebar">
|
||||
<div class="categorieTitle">
|
||||
<h3>{l s='Categories'}</h3>
|
||||
<div class="subHeadline"> </div>
|
||||
<ul class="categorieList">
|
||||
<li {if isset($categoryFiltered.favorites)}style="background-color:#EBEDF4"{/if} class="categoryModuleFilterLink">
|
||||
<div class="categorieWidth"><a href="{$currentIndex}&token={$token}&filterCategory=favorites"><span><b>{l s='Favorites'}</b></span></a></div>
|
||||
<div class="count"><b>{$nb_modules_favorites}</b></div>
|
||||
<div class="row-fluid">
|
||||
<div class="categorieTitle col-lg-3">
|
||||
<legend>{l s='Categories'}</legend>
|
||||
<ul class="tab nav nav-pills nav-stacked">
|
||||
<li class="tab-row {if isset($categoryFiltered.favorites)}active{/if}">
|
||||
<a class="tab-page" href="{$currentIndex}&token={$token}&filterCategory=favorites">
|
||||
{l s='Favorites'} <span class="badge pull-right">{$nb_modules_favorites}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {if count($categoryFiltered) lte 0}style="background-color:#EBEDF4"{/if} class="categoryModuleFilterLink">
|
||||
<div class="categorieWidth"><a href="{$currentIndex}&token={$token}&unfilterCategory=yes"><span><b>{l s='Total'}</b></span></a></div>
|
||||
<div class="count"><b>{$nb_modules}</b></div>
|
||||
<li class="tab-row {if count($categoryFiltered) lte 0}active{/if}">
|
||||
<a class="tab-page" href="{$currentIndex}&token={$token}&unfilterCategory=yes">
|
||||
{l s='Total'} <span class="badge pull-right">{$nb_modules}</span>
|
||||
</a>
|
||||
</li>
|
||||
{foreach from=$list_modules_categories item=module_category key=module_category_key}
|
||||
<li {if isset($categoryFiltered[$module_category_key])}style="background-color:#EBEDF4"{/if} class="categoryModuleFilterLink">
|
||||
<div class="categorieWidth"><a href="{$currentIndex}&token={$token}&{if isset($categoryFiltered[$module_category_key])}un{/if}filterCategory={$module_category_key}"><span>{$module_category.name}</span></a></div>
|
||||
<div class="count">{$module_category.nb}</div>
|
||||
<li class="tab-row {if isset($categoryFiltered[$module_category_key])}active{/if}">
|
||||
<a class="tab-page" 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>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="moduleContainer">
|
||||
<div id="moduleContainer" class="col-lg-9">
|
||||
<legend>{l s='Modules list'}</legend>
|
||||
{include file='controllers/modules/list.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user