Amélioration navigation + masquage boutons inactifs
This commit is contained in:
parent
d2f924a81e
commit
59e6abe581
@ -1,7 +1,14 @@
|
||||
<nav class="tabs">
|
||||
<ul>
|
||||
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Immobilisations</a></li>
|
||||
{{if $current == 'amortization'}}<li class="current"><a>Amortissements</a></li>{{/if}}
|
||||
<li {{if $current == 'aide'}} class="current"{{/if}}><a href="{{$module.url}}aide.html">Aide</a></li>
|
||||
</ul>
|
||||
|
||||
{{if $current == 'index'}}
|
||||
<ul class="sub">
|
||||
{{if $subcurrent == 'amortization'}}
|
||||
<li class="current"><a>Amortissements</a></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
</nav>
|
||||
|
@ -3,7 +3,7 @@
|
||||
{{:admin_header title="Liste des amortissements" custom_css="./style.css" current="module_amortissement"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{:include file="_nav.html" current="amortization"}}
|
||||
{{:include file="_nav.html" current="index" subcurrent="amortization"}}
|
||||
|
||||
{{if $_GET.ok}}
|
||||
{{if $_GET.msg|match:"attach"}}
|
||||
@ -157,7 +157,7 @@
|
||||
{{if $line.linked == null}}
|
||||
{{:linkbutton label="Détacher" href="detach_amort.html?amort_id=%d&immo_id=%d"|args:$line.amort_line:$ligne_immo.immo_id shape="plus"}}
|
||||
{{else}}
|
||||
{{:linkbutton label="Détacher" href="" shape="lock" class="disabled"}}
|
||||
{{*:linkbutton label="Détacher" href="" shape="lock" class="disabled"*}}
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
@ -216,13 +216,13 @@
|
||||
<td class="actions">
|
||||
{{if $enregistrer == 1}}
|
||||
{{:linkbutton
|
||||
label="Enregistrer"
|
||||
label="Créer l'écriture"
|
||||
href="save_amort.html?amount=%d&account=%s&year=%s&trans_id=%d&immo_id=%s&project_id=%d&label=%s&solde=%d"|args:$annuite_courante:$ligne_immo.account_id:$current_year:$ligne_immo.trans_id:$_GET.immo_id:$project_id:$libelle:$solde_prec
|
||||
shape="right"
|
||||
target="_dialog"
|
||||
}}
|
||||
{{else}}
|
||||
{{:linkbutton label="Enregistrer" href="" shape="lock" class="disabled"}}
|
||||
{{*:linkbutton label="Créer l'écriture" href="" shape="lock" class="disabled"*}}
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user