Simplification chemins

This commit is contained in:
Jean-Christophe Engel 2023-12-05 14:02:49 +01:00
parent 6b6a54c357
commit 6006bdd169
2 changed files with 9 additions and 11 deletions

View File

@ -1,10 +1,9 @@
{{:assign base_path="/m/%s"|args:$module.name}}
<nav class="tabs">
<ul>
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$base_path}}/index.html">Inventaire</a></li>
<li {{if $current == 'categories'}} class="current"{{/if}}><a href="{{$base_path}}/categories/index.html">Catégories</a></li>
<li {{if $current == 'entrees'}} class="current"{{/if}}><a href="{{$base_path}}/mouvements/entrees/index.html">Entrées</a></li>
<li {{if $current == 'sorties'}} class="current"{{/if}}><a href="{{$base_path}}/mouvements/sorties/index.html">Sorties</a></li>
<li {{if $current == 'config'}} class="current"{{/if}}><a href="{{$base_path}}/config.html">Configuration</a></li>
<li {{if $current == 'index'}} class="current"{{/if}}><a href="{{$module.url}}index.html">Inventaire</a></li>
<li {{if $current == 'categories'}} class="current"{{/if}}><a href="{{$module.url}}categories/index.html">Catégories</a></li>
<li {{if $current == 'entrees'}} class="current"{{/if}}><a href="{{$module.url}}mouvements/entrees/index.html">Entrées</a></li>
<li {{if $current == 'sorties'}} class="current"{{/if}}><a href="{{$module.url}}mouvements/sorties/index.html">Sorties</a></li>
<li {{if $current == 'config'}} class="current"{{/if}}><a href="{{$module.url}}config.html">Configuration</a></li>
</ul>
</nav>

View File

@ -45,7 +45,6 @@
</thead>
<tbody>
{{:assign base_path="/m/%s"|args:$module.name}}
{{* itérer sur les matériels de la catégorie *}}
{{#foreach from=$category.eqpmt key="eqpmt_key" item="eqpmt"}}
@ -60,12 +59,12 @@
<td class="actions">
{{:linkbutton
label="Historique des mouvements"
href="%s/historique.html?key=%s"|args:$base_path:$eqpmt_key
href="%shistorique.html?key=%s"|args:$module.url:$eqpmt_key
shape="table"
target="_dialog"}}
{{:linkbutton
label="Modifier"
href="%s/modifier_materiel.html?key=%s"|args:$base_path:$eqpmt_key
href="%smodifier_materiel.html?key=%s"|args:$module.url:$eqpmt_key
shape="edit"
target="_dialog"}}
</td>
@ -122,12 +121,12 @@
<td class="actions">
{{:linkbutton
label="Historique des mouvements"
href="%s/historique.html?key=%s"|args:$base_path:$eqpmt_key
href="%shistorique.html?key=%s"|args:$module.url:$eqpmt_key
shape="table"
target="_dialog"}}
{{:linkbutton
label="Modifier"
href="%s/modifier_materiel.html?key=%s"|args:$base_path:$eqpmt_key
href="%smodifier_materiel.html?key=%s"|args:$module.url:$eqpmt_key
shape="edit"
target="_dialog"}}
</td>