// update modules tab
This commit is contained in:
1 parent
142006e69a
commit
60f567d2ff
1 file changed
+58
-66
@@ -39,12 +39,12 @@
|
|||||||
<table cellspacing="0" cellpadding="0" class="table table-striped table-hover">
|
<table cellspacing="0" cellpadding="0" class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="nodrag nodrop">
|
<tr class="nodrag nodrop">
|
||||||
<th class="center">
|
<th width="1%">
|
||||||
<input type="checkbox" rel="false" class="noborder" id="checkme">
|
<input type="checkbox" rel="false" class="noborder" id="checkme">
|
||||||
</th>
|
</th>
|
||||||
<th>{l s='Logo'}</th>
|
<th width="20%">{l s='Logo'}</th>
|
||||||
<th class="center">{l s='Module name'}</th>
|
<th width="45%">{l s='Module name'}</th>
|
||||||
<th> </th>
|
<th width="35%"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach from=$modules item=module}
|
{foreach from=$modules item=module}
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
class="noborder">
|
class="noborder">
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td>
|
||||||
<img width="57" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" />
|
<img width="57" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -95,83 +95,75 @@
|
|||||||
{if isset($module->message) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert">{$module->message}</div>{/if}
|
{if isset($module->message) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert">{$module->message}</div>{/if}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td>
|
||||||
<div id="list-action-button" class="row-light">
|
<div id="list-action-button" class="row-light">
|
||||||
{if isset($module->type) && $module->type == 'addonsMustHave'}
|
<div class="btn-group">
|
||||||
<p>
|
{if isset($module->type) && $module->type == 'addonsMustHave'}
|
||||||
<a href="{$module->addons_buy_url}" target="_blank">
|
<a href="{$module->addons_buy_url}" target="_blank">
|
||||||
<span class="btn btn-default">
|
<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}
|
<i class="icon-shopping-cart"></i> {if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
{else}
|
||||||
{else}
|
{if $module->id && isset($module->version_addons) && $module->version_addons}
|
||||||
{if $module->id && isset($module->version_addons) && $module->version_addons}
|
|
||||||
<p>
|
|
||||||
<a href="{$module->options.update_url}">
|
<a href="{$module->options.update_url}">
|
||||||
<span class="btn btn-warning">
|
<span class="btn btn-warning">
|
||||||
<i class="icon-refresh"></i> {l s='Update it!'}
|
<i class="icon-refresh"></i> {l s='Update it!'}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
{/if}
|
||||||
{/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">
|
<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}
|
{if isset($module->id) && $module->id gt 0}
|
||||||
<p>
|
<span class="btn btn-danger">
|
||||||
<span class="btn btn-danger">
|
<i class="icon-minus-sign-alt"></i>
|
||||||
<i class="icon-minus-sign-alt"></i>
|
{l s='Uninstall'}
|
||||||
{l s='Uninstall'}
|
</span>
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
{else}
|
{else}
|
||||||
<p>
|
<span class="btn btn-success">
|
||||||
<span class="btn btn-success">
|
<i class="icon-plus-sign-alt"></i>
|
||||||
<i class="icon-plus-sign-alt"></i>
|
{l s='Install'}
|
||||||
{l s='Install'}
|
</span>
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
<div class="row-fluid btn-group btn-group-action">
|
||||||
<div class="row-fluid btn-group btn-group-action">
|
{if !isset($module->not_on_disk)}
|
||||||
{if !isset($module->not_on_disk)}
|
<span class="btn btn-default btn-small">
|
||||||
<span class="btn btn-default btn-small">
|
<i class="icon-cog"></i> {l s='Choose an action'}
|
||||||
<i class="icon-cog"></i> {l s='Choose an action'}
|
</span>
|
||||||
</span>
|
<button data-toggle="dropdown" class="btn btn-default btn-small dropdown-toggle">
|
||||||
<button data-toggle="dropdown" class="btn btn-default btn-small dropdown-toggle">
|
<span class="caret"></span>
|
||||||
<span class="caret"></span>
|
</button>
|
||||||
</button>
|
<ul class="dropdown-menu">
|
||||||
<ul class="dropdown-menu">
|
{$module->optionsHtml}
|
||||||
{$module->optionsHtml}
|
{if isset($module->preferences) && isset($module->preferences['favorite']) && $module->preferences['favorite'] == 1}
|
||||||
{if isset($module->preferences) && isset($module->preferences['favorite']) && $module->preferences['favorite'] == 1}
|
<li>
|
||||||
<li>
|
<a class="action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#">
|
||||||
<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'}
|
||||||
<i class="icon-star"></i> {l s='Remove from Favorites'}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<a class="action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#" style="display: none;">
|
||||||
<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'}
|
||||||
<i class="icon-star"></i> {l s='Mark as Favorite'}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
{else}
|
||||||
{else}
|
<li>
|
||||||
<li>
|
<a class="action_module action_unfavorite toggle_favorite" data-module="{$module->name}" data-value="0" href="#" style="display: none;">
|
||||||
<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'}
|
||||||
<i class="icon-star"></i> {l s='Remove from Favorites'}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<a class="action_module action_favorite toggle_favorite" data-module="{$module->name}" data-value="1" href="#">
|
||||||
<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'}
|
||||||
<i class="icon-star"></i> {l s='Mark as Favorite'}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
{/if}
|
||||||
{/if}
|
{else}
|
||||||
{else}
|
|
||||||
|
{/if}
|
||||||
{/if}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
{/if}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in new issue
Block a user