[+] BO : Modal module list
This commit is contained in:
@@ -69,16 +69,24 @@
|
||||
</p>
|
||||
</td>
|
||||
{else if !isset($module->not_on_disk)}
|
||||
<td>
|
||||
<p>{$module->optionsHtml}</p>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align="right">
|
||||
<p>
|
||||
<a href="#" class="btn btn-default action_tab_module" data-option="select_{$module->name}">
|
||||
<i class="icon-ok"></i>
|
||||
{l s='Submit'}
|
||||
</a>
|
||||
</p>
|
||||
{if $module->optionsHtml|count > 0}
|
||||
<div id="list-action-button" class="btn-group">
|
||||
{assign var=option value=$module->optionsHtml[0]}
|
||||
{$option}
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" >
|
||||
<span class="caret"> </span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach $module->optionsHtml key=key item=option}
|
||||
{if $key != 0}
|
||||
<li>{$option}</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
<td> </td>
|
||||
|
||||
@@ -25,54 +25,19 @@
|
||||
*}
|
||||
|
||||
{if isset($tab_modules_list) && !empty($tab_modules_list)}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#nav_tabs_modules_installed').click(function () { showInstalledModules() });
|
||||
$('#nav_tabs_modules_not_installed').click(function () { showNotInstalledModules() });
|
||||
|
||||
{if count($tab_modules_list.installed)}
|
||||
showInstalledModules();
|
||||
{else}
|
||||
showNotInstalledModules();
|
||||
{/if}
|
||||
|
||||
bindTabModuleListAction();
|
||||
});
|
||||
|
||||
function showInstalledModules(element)
|
||||
{
|
||||
$('#tab_modules_list_not_installed').hide();
|
||||
$('#tab_modules_list_installed').show();
|
||||
$('#nav_tabs_modules_installed').parent('li').addClass('active');
|
||||
$('#nav_tabs_modules_not_installed').parent('li').removeClass('active');
|
||||
return false;
|
||||
}
|
||||
|
||||
function showNotInstalledModules(element)
|
||||
{
|
||||
$('#tab_modules_list_installed').hide();
|
||||
$('#tab_modules_list_not_installed').show();
|
||||
$(element).parent('li').addClass('active');
|
||||
$('#nav_tabs_modules_not_installed').parent('li').removeClass('active');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<ul class="nav">
|
||||
<ul class="nav nav-tabs">
|
||||
{if count($tab_modules_list.installed)}
|
||||
<li>
|
||||
<a id="nav_tabs_modules_installed" class="panel-content" href="#" onclick="">
|
||||
<i class="icon-plus-sign-alt"></i>
|
||||
<li class="active">
|
||||
<a href="#tab_modules_list_installed" data-toggle="tab">
|
||||
{l s='Installed'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if count($tab_modules_list.not_installed)}
|
||||
<li>
|
||||
<a href="#" id="nav_tabs_modules_not_installed" class="panel-content">
|
||||
<i class="icon-minus-sign-alt"></i>
|
||||
<li{if count($tab_modules_list.installed) == 0} class="active"{/if}>
|
||||
<a href="#tab_modules_list_not_installed" data-toggle="tab">
|
||||
{l s='Not Installed'}
|
||||
</a>
|
||||
</li>
|
||||
@@ -80,21 +45,25 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="modules_list_container_content">
|
||||
{if count($tab_modules_list.installed)}
|
||||
<table id="tab_modules_list_installed" class="table">
|
||||
{foreach from=$tab_modules_list.installed item=module}
|
||||
{include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{if count($tab_modules_list.not_installed)}
|
||||
<table id="tab_modules_list_not_installed" class="table">
|
||||
{foreach from=$tab_modules_list.not_installed item=module}
|
||||
{include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div id="modules_list_container_content" class="tab-content">
|
||||
<div class="tab-pane{if count($tab_modules_list.installed)} active{/if}" id="tab_modules_list_installed">
|
||||
{if count($tab_modules_list.installed)}
|
||||
<table id="tab_modules_list_installed" class="table">
|
||||
{foreach from=$tab_modules_list.installed item=module}
|
||||
{include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="tab-pane{if count($tab_modules_list.installed) == 0} active{/if}" id="tab_modules_list_not_installed">
|
||||
{if count($tab_modules_list.not_installed)}
|
||||
<table id="tab_modules_list_not_installed" class="table">
|
||||
{foreach from=$tab_modules_list.not_installed item=module}
|
||||
{include file='controllers/modules/tab_module_line.tpl' class_row={cycle values=",rowalt"}}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="alert alert-block">
|
||||
|
||||
Reference in New Issue
Block a user