Configure button is enabled only if module is enabled.

This commit is contained in:
Franck Allimant
2013-12-02 19:03:37 +01:00
parent 3e4bc0378c
commit 35b3f98cd8
2 changed files with 13 additions and 5 deletions

View File

@@ -38,12 +38,9 @@
<td class="text-right">
<div class="btn-group">
{if $CONFIGURABLE == 1}
{loop type="auth" name="can_change" role="ADMIN" module=$CODE access="VIEW"}
<a class="btn btn-primary btn-xs" 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>
{/loop}
{/if}