Viasul awarning when a module could not be instanciated.
This commit is contained in:
@@ -79,12 +79,13 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{loop type="module" name="module.{$module_type}" module_type={$module_type|default:1} order=$module_order backend_context=1}
|
{loop type="module" name="module.{$module_type}" module_type={$module_type|default:1} order=$module_order backend_context=1}
|
||||||
<tr>
|
<tr {if ! $EXISTS}class="warning"{/if}>
|
||||||
<td>{$ID}</td>
|
<td>{$ID}</td>
|
||||||
<td>{$TITLE}</td>
|
<td>{$TITLE}</td>
|
||||||
<td>{$CODE}</td>
|
<td>{$CODE}</td>
|
||||||
<td>{$CHAPO}</td>
|
<td>{$CHAPO}</td>
|
||||||
|
|
||||||
|
{if $EXISTS}
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<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>">
|
<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}>
|
<input type="checkbox" {if $ACTIVE}checked{/if}>
|
||||||
@@ -109,11 +110,18 @@
|
|||||||
id=$ID
|
id=$ID
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
|
{else}
|
||||||
|
<td colspan="2" class="text-left">
|
||||||
|
<span class="label label-warning">Warning</span>
|
||||||
|
{intl l="This module cannot be started, some files are probably missing."}
|
||||||
|
</td>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{module_include location='modules_table_row'}
|
{module_include location='modules_table_row'}
|
||||||
|
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
{if $EXISTS}
|
||||||
{if $CONFIGURABLE == 1}
|
{if $CONFIGURABLE == 1}
|
||||||
{loop type="auth" name="can_change" role="ADMIN" module=$CODE access="VIEW"}
|
{loop type="auth" name="can_change" role="ADMIN" module=$CODE access="VIEW"}
|
||||||
<a class="{if ! $ACTIVE}disabled {/if} btn btn-primary btn-xs" id="config-btn-{$ID}" title="{intl l='Configure this module'}" href="{url path="/admin/module/$CODE"}">{intl l="Configure"}</a>
|
<a class="{if ! $ACTIVE}disabled {/if} btn btn-primary btn-xs" id="config-btn-{$ID}" title="{intl l='Configure this module'}" href="{url path="/admin/module/$CODE"}">{intl l="Configure"}</a>
|
||||||
@@ -127,6 +135,7 @@
|
|||||||
{loop type="auth" name="can_change" role="ADMIN" resource="admin.module" access="UPDATE"}
|
{loop type="auth" name="can_change" role="ADMIN" resource="admin.module" 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>
|
<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}
|
||||||
|
{/if}
|
||||||
|
|
||||||
{loop type="auth" name="can_delete" role="ADMIN" resource="admin.module" access="DELETE"}
|
{loop type="auth" name="can_delete" role="ADMIN" resource="admin.module" 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>
|
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user