Réorganisation onglet navigation

This commit is contained in:
Jean-Christophe Engel 2024-11-15 20:27:42 +01:00
parent 8305433f5b
commit dc314dcb3d
2 changed files with 13 additions and 4 deletions

View File

@ -7,14 +7,20 @@
<ul>
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Inventaire</a></li>
{{if $current == 'mouvements'}}<li class="current"><a>Mouvements</a></li>{{/if}}
<li {{if $current == 'config'}} class="current"{{/if}}><a href="{{$module.url}}categories/index.html">Configuration</a></li>
</ul>
{{if $current == 'index'}}
<ul class="sub">
<li {{if $subcurrent == 'proprio'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Matériel permanent</a></li>
<li {{if $subcurrent == 'nonproprio'}} class="current"{{/if}}><a href="{{$module.url}}inventaire_nonprop.html">Matériel temporaire</a></li>
</ul>
{{if $subcurrent == 'mouvements'}}
<ul class="sub">
<li class="title"><strong>{{$eqpmt}} ({{$category}})</strong></li>
<li class="current"><a>Mouvements</a></li>
</ul>
{{/if}}
{{elseif $current == 'config'}}
<ul class="sub" >
<li {{if $subcurrent == 'categories'}} class="current"{{/if}}><a href="{{$module.url}}categories/index.html">Catégories</a></li>

View File

@ -40,7 +40,7 @@
{{* barre de navigation *}}
{{if ! $dialog}}
{{:include file="./_nav.html" current="mouvements"}}
{{:include file="./_nav.html" current="index" subcurrent="mouvements" eqpmt=$equipment.designation category=$category.name}}
{{/if}}
{{* récupérer la config des entrées/sorties *}}
@ -76,8 +76,11 @@
{{/foreach}}
{{* lister tous les mouvements du matériel passé en paramètre *}}
<h2>Mouvements de {{$equipment.designation}} ({{$category.name}})</h2>
<h3>Matériel qui {{if $_GET.prop}}appartient{{else}}n'appartient pas{{/if}} à l'association</h3>
{{if $_GET.prop}}
<h3>Matériel propriété de l'association</h3>
{{else}}
<h3>Matériel temporairement dans l'association</h3>
{{/if}}
{{#list
type="movement"