60 lines
3.2 KiB
HTML
60 lines
3.2 KiB
HTML
<div class="general-block-decorator">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-condensed table-left-aligned">
|
|
<caption class="clearfix">
|
|
{$caption_title|default:{intl l='classic modules'}}
|
|
</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>{intl l="Name"}</th>
|
|
<th>{intl l="Description"}</th>
|
|
<th>{intl l="Enable/Disable"}</th>
|
|
|
|
{module_include location='modules_table_header'}
|
|
|
|
<th class="actions">{intl l="Actions"}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{loop type="module" name="module.{$module_type}" module_type={$module_type|default:1} backend_context=1}
|
|
<tr>
|
|
<td><a href="#">{$TITLE}</a></td>
|
|
<td>{$CHAPO}</td>
|
|
<td>
|
|
<div class="make-switch switch-small module-activation" data-id="{$ID}" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok-circle'></i>" data-off-label="<i class='glyphicon glyphicon-remove-circle'></i>">
|
|
<input type="checkbox" {if $ACTIVE}checked{/if}>
|
|
</div>
|
|
<noscript>
|
|
{if $ACTIVE}
|
|
<a title="{intl l="Deactivate %title module" title=$TITLE}" href="{url path="/admin/configuration/modules/toggle-activation/{$ID}"}">{intl l="deactivation"}</a>
|
|
{else}
|
|
<a title="{intl l="activate %title module" title=$TITLE}" href="{url path="/admin/configuration/modules/toggle-activation/{$ID}"}">{intl l="activation"}</a>
|
|
{/if}
|
|
</noscript>
|
|
</td>
|
|
|
|
{module_include location='modules_table_row'}
|
|
|
|
<td class="text-right">
|
|
<div class="btn-group">
|
|
|
|
{* {loop type="auth" name="can_change" role="ADMIN" resource="admin.modules" access="VIEW"}
|
|
<a class="btn btn-default btn-xs" title="{intl l='Read the documentation of this module'}" href="{url path="/admin/module/documentation/$ID"}"><span class="glyphicon glyphicon-book"></span></a>
|
|
{/loop}*}
|
|
|
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.modules" access="UPDATE"}
|
|
<a class="btn btn-default btn-xs" title="{intl l='Edit this module'}" href="{url path="/admin/module/update/$ID"}"><span class="glyphicon glyphicon-edit"></span></a>
|
|
{/loop}
|
|
|
|
{loop type="auth" name="can_delete" role="ADMIN" resource="admin.modules" access="DELETE"}
|
|
<a class="btn btn-default btn-xs module-delete-action" title="{intl l='Delete this module'}" href="#delete_module_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
|
|
{/loop}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/loop}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> |