// update localization and modules tabs

This commit is contained in:
Sarah Lorenzini
2013-07-31 14:47:21 +02:00
parent a1cc4d14d0
commit d744b9dbf2
14 changed files with 294 additions and 236 deletions
@@ -2,7 +2,7 @@
{include file='controllers/modules/header.tpl'}
<div class="row">
<div class="col-lg-12">
<span class="pull-right">
<div class="btn-group 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'}
@@ -11,7 +11,7 @@
<i class="icon-star"></i>
{l s='Favorites view'}
</a>
</span>
</fiv>
</div>
<div class="col-lg-12">&nbsp;</div>
<div id="container" class="col-lg-12">
@@ -31,12 +31,12 @@
</colgroup>
<thead>
<tr class="nodrag nodrop">
<th class="center">{l s='Logo'}</th>
<th class="center">{l s='Module Name'}</th>
<th>{l s='Logo'}</th>
<th>{l s='Module Name'}</th>
<th>{l s='Description'}</th>
<th class="center">{l s='Status'}</th>
<th>{l s='Status'}</th>
<th>{l s='Tab'}</th>
<th class="center">{l s='Categories'}</th>
<th>{l s='Categories'}</th>
<th>{l s='Interest'}</th>
<th>{l s='Favorite'}</th>
<th>&nbsp;</th>
@@ -45,16 +45,16 @@
<tbody>
{foreach from=$modules key=km item=module}
<tr height="32" {if $km % 2 eq 0} class="alt_row"{/if}>
<td class="center">
<td>
<img src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" width="57" height="57" />
</td>
<td class="center moduleName">
<td class="moduleName">
<h5>{$module->displayName}</h5>
</td>
<td>
<span class="moduleFavDesc">{$module->description|truncate:80:'...'}</span>
</td>
<td class="center setup">
<td class="setup">
{if isset($module->id) && $module->id gt 0}
<span class="label label-success">{l s='Installed'}</span>
{else}
@@ -77,7 +77,7 @@
{/foreach}
</select>
</td>
<td class="center">
<td>
<span>{$module->categoryName}</span>
</td>
<td>
@@ -94,7 +94,7 @@
<option value="0" {if isset($module->preferences.favorite) && $module->preferences.favorite eq '0'}selected="selected"{/if}>{l s='No'}</option>
</select>
</td>
<td class="center" id="r_{$module->name}">
<td id="r_{$module->name}">
<span>&nbsp;</span>
</td>
</tr>
@@ -28,7 +28,10 @@
<!--start addons login-->
<div id="addons_login_div" class="row" >
<div class="col-lg-12">
<legend>{l s='You are logged into PrestaShop Addons.'}</legend>
<h3>
<i class="icon-user"></i>
{l s='You are logged into PrestaShop Addons.'}
</h3>
<div class="row">
<label class="control-label col-lg-9">
<i class="icon-user"></i> {l s='Welcome'} {$username_addons}
@@ -54,7 +57,10 @@
<div id="addons_login_div" class="row">
<div class="col-lg-12">
<form id="addons_login_form" method="post" class="form-horizontal">
<legend>{l s='Do you have a %s account?' sprintf='<a href="http://addons.prestashop.com/">PrestaShop Addons</a>'}</legend>
<h3>
<i class="icon-user"></i>
{l s='Do you have a %s account?' sprintf='<a href="http://addons.prestashop.com/">PrestaShop Addons</a>'}
</h3>
<div class="row">
<label class="control-label col-lg-3">{l s='Addons Login'} :</label>
<div class="input-group col-lg-4">
@@ -84,7 +90,6 @@
<!--end addons login-->
{/if}
{/if}
<div class="clear">&nbsp;</div>
{/if}
<!--start filter module-->
@@ -92,32 +92,7 @@
{/if}
</dl>
</div>
<p class="desc">{if isset($module->description) && $module->description ne ''}{l s='Description'} : {$module->description}{else}&nbsp;{/if}</p>
{if isset($module->message) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert">{$module->message}</div>{/if}
<div class="row-fluid">
{if !isset($module->not_on_disk)}
{$module->optionsHtml}
{if isset($module->preferences) && isset($module->preferences['favorite']) && $module->preferences['favorite'] == 1}
<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="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}
&nbsp;
{/if}
</div>
</div>
</td>
<td class="center">
@@ -159,6 +134,43 @@
{/if}
</a>
</p>
<div class="row-fluid btn-group btn-group-action">
{if !isset($module->not_on_disk)}
<span class="btn btn-default btn-small">
<i class="icon-cog"></i> {l s='Choose an action'}
</span>
<button data-toggle="dropdown" class="btn btn-default btn-small dropdown-toggle">
<span class="caret"></span>&nbsp;
</button>
<ul class="dropdown-menu">
{$module->optionsHtml}
{if isset($module->preferences) && isset($module->preferences['favorite']) && $module->preferences['favorite'] == 1}
<li>
<a class="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>
</li>
<li>
<a class="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>
</li>
{else}
<li>
<a class="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>
</li>
<li>
<a class="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>
</li>
{/if}
{else}
&nbsp;
{/if}
</div>
{/if}
</div>
</td>
@@ -38,7 +38,7 @@
{/if}
<div class="row">
<div class="col-lg-12">
<span class="pull-right">
<div class="btn-group 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'}
@@ -47,36 +47,37 @@
<i class="icon-star"></i>
{l s='Favorites view'}
</a>
</span>
</div>
</div>
<div id="container">
<!--start sidebar module-->
<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 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>
<div class="list-group">
<h3>
<i class="icon-reorder"></i>
{l s='Categories'}
</h3>
<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='Total'} <span class="badge pull-right">{$nb_modules}</span>
</a>
{foreach from=$list_modules_categories item=module_category key=module_category_key}
<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>
<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}
</ul>
</div>
</div>
</div>
<div id="moduleContainer" class="col-lg-9">
<legend>{l s='Modules list'}</legend>
<h3>
<i class="icon-list-ul"></i>
{l s='Modules list'}
</h3>
{include file='controllers/modules/list.tpl'}
</div>
</div>