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