Simplification hbs pour la vue détaillée

This commit is contained in:
Vincent Vandemeulebrouck 2022-12-10 16:07:33 +01:00
parent f6d42875ae
commit 153bfe2e75
2 changed files with 16 additions and 13 deletions

View File

@ -50,17 +50,16 @@
{{!-- Compétences Tab --}} {{!-- Compétences Tab --}}
<div class="tab competences" data-group="primary" data-tab="competences"> <div class="tab competences" data-group="primary" data-tab="competences">
<div class="flexrow"> <div class="flexrow">
<span><a class="vue-detaillee"> {{>"systems/foundryvtt-reve-de-dragon/templates/actor/vue-detaillee.html"}}
<i class="fas {{#if options.vueDetaillee}}fa-eye-slash{{else}}fa-eye{{/if}}"></i> <span class="flexrow"><a class="show-hide-competences">
{{#if options.vueDetaillee}}Vue simplifiée{{else}}Vue détaillée{{/if}}</a> {{#if options.showCompNiveauBase}}
</span> <i class="fa-regular fa-filter-slash"></i> Montrer tout
<span><a class="show-hide-competences"><img class="small-button-container" {{else}}
src="systems/foundryvtt-reve-de-dragon/icons/{{#if options.showCompNiveauBase}}no-filter.svg{{else}}filter.svg{{/if}}" alt="filter/montrer tout"> <i class="fa-regular fa-filter"></i> Filtrer
{{#if options.showCompNiveauBase}}Montrer tout{{else}}Filtrer{{/if}}</a> {{/if}}
</span> </a></span>
<span class="flexrow"> <span>
<input class="recherche flex-grow" type="text" value="{{options.recherche.text}}" name="recherche" <input class="recherche flex-grow" type="text" value="{{options.recherche.text}}" name="recherche" size="8" data-dtype="String" placeholder=""/>
size="8" data-dtype="String" placeholder=""/>
</span> </span>
<span> <span>
</span> </span>

View File

@ -1,4 +1,8 @@
<span><a class="vue-detaillee"> <span><a class="vue-detaillee">
<i class="fas {{#if options.vueDetaillee}}fa-eye-slash{{else}}fa-eye{{/if}}"></i> {{#if options.vueDetaillee}}
{{#if options.vueDetaillee}}Vue simplifiée{{else}}Vue détaillée{{/if}}</a> <i class="fas fa-eye-slash"></i> Vue simplifiée
{{else}}
<i class="fas fa-eye"></i> Vue détaillée
{{/if}}
</a>
</span> </span>