organisation lock / filter

(cherry picked from commit d2d92a466bb5f4aa8b5ec984185a76b298ecf11c)
This commit is contained in:
Vincent Vandemeulebrouck 2020-12-09 23:37:19 +01:00
parent 0eea44d2c5
commit 20f2ddcbf4
2 changed files with 11 additions and 8 deletions

View File

@ -34,7 +34,7 @@ export class RdDActorSheet extends ActorSheet {
data.data.lockUnlockText = (this.options.editCaracComp) ? "Bloquer" : "Débloquer";
// Gestion de l'affichage total/partiel des compétences
data.data.cacherCompetencesNiveauBase = this.options.cacherCompetencesNiveauBase;
data.data.showHideCompetenceText = (this.options.cacherCompetencesNiveauBase) ? "Cacher Comp." : "Montrer Comp." ;
data.data.showHideCompetenceText = (this.options.cacherCompetencesNiveauBase) ? "Montrer tout" : "Filtrer" ;
let compCategorieNiveau = RdDUtility.getLevelCategory(); // recup catégorie
data.itemsByType = RdDUtility.buildItemsClassification(data.items);

View File

@ -52,10 +52,6 @@
<a id="ptreve-actuel-plus">+</a>
</label>
</li>
<li>
<label><a class="lock-unlock-sheet">{{data.lockUnlockText}}</a></label>
<label><a class="show-hide-competences">{{data.showHideCompetenceText}}</a></label>
</li>
</ul>
<div class="flex-group-center flex-actions-bar">
<div>
@ -72,10 +68,12 @@
<span class="tooltiptext">{{{data.fatigue.html}}}</span>
</span>
<span>{{data.blessures.resume}}</span>
<span>{{data.compteurs.etat.label}}: {{data.compteurs.etat.value}}</span>
</div>
<div class="flexrow">
<span>{{data.compteurs.surenc.label}}: {{data.compteurs.surenc.value}}</span>
<span>{{data.compteurs.etat.label}}: {{data.compteurs.etat.value}}</span><span></span>
</div>
<div class="flexrow">
<span>{{data.compteurs.surenc.label}}: {{data.compteurs.surenc.value}}</span><span></span>
</div>
</div>
</div>
@ -100,6 +98,7 @@
<div class="tab items" data-group="primary" data-tab="carac">
<div class="grid grid-2col">
<div class="flex-group-left flexcol">
<span><a class="lock-unlock-sheet">{{data.lockUnlockText}}</a></span>
<ul class="carac-list alterne-list">
{{#each data.carac as |carac key|}}
<li class="competence flexrow list-item" data-attribute="{{key}}">
@ -162,6 +161,10 @@
{{!-- Compétences Tab --}}
<div class="tab competences" data-group="primary" data-tab="competences">
<div class="flexrow">
<span><a class="lock-unlock-sheet">{{data.lockUnlockText}}</a></span>
<span><a class="show-hide-competences">{{data.showHideCompetenceText}}</a></span>
</div>
<div class="grid grid-2col">
<div class="flex-group-left flexcol competence-column">
<header class="competence-header flexrow">