Autocomplete Main directrice
Permet de choisir rapidement dans les valeurs proposées
This commit is contained in:
parent
31c4aa32d9
commit
92643d1c46
@ -73,6 +73,7 @@ export class RdDActorSheet extends ActorSheet {
|
||||
formData.conteneurs = RdDUtility.conteneursRacine(formData.conteneurs);
|
||||
|
||||
if (formData.type == 'personnage') {
|
||||
formData.options.mainsDirectrices = MAINS_DIRECTRICES;
|
||||
formData.byCateg = Misc.classify(formData.competences, it => it.system.categorie)
|
||||
formData.calc.comptageArchetype = RdDItemCompetence.computeResumeArchetype(formData.competences);
|
||||
formData.calc.competenceXPTotal= RdDItemCompetence.computeTotalXP(formData.competences);
|
||||
|
@ -47,6 +47,9 @@ const POSSESSION_SANS_DRACONIC = {
|
||||
};
|
||||
|
||||
const PAS_DE_BLESSURE = { "active": false, "psdone": false, "scdone": false, "premiers_soins": 0, "soins_complets": 0, "jours": 0, "loc": "" };
|
||||
|
||||
export const MAINS_DIRECTRICES = ['Droitier', 'Gaucher', 'Ambidextre']
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/**
|
||||
* Extend the base Actor entity by defining a custom roll data structure which is ideal for the Simple system.
|
||||
|
@ -1,3 +1,4 @@
|
||||
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs'}}
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{!-- Sheet Header --}}
|
||||
@ -153,7 +154,8 @@
|
||||
<ul class="item-list alterne-list">
|
||||
<li class="item flexrow list-item">
|
||||
<label for="system.main">Main directrice :</label>
|
||||
<input type="text" name="system.main" value="{{system.main}}" data-dtype="String"/>
|
||||
<input type="text" class="selection-main-directrice" name="system.main" value="{{system.main}}" data-dtype="String"/>
|
||||
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=options.mainsDirectrices className='selection-main-directrice'}}
|
||||
</li>
|
||||
<li class="item flexrow list-item">
|
||||
<label for="system.heure">Heure de naissance :</label>
|
||||
|
@ -1,5 +1,4 @@
|
||||
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs'}}
|
||||
|
||||
<div class="tab items" data-group="primary" data-tab="environnement">
|
||||
<div class="form-group">
|
||||
<label>Description du milieu</label>
|
||||
@ -8,10 +7,7 @@
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label>Ajouter un fréquence</label>
|
||||
<div class="flexrow">
|
||||
<div class="autocomplete">
|
||||
<input type="text" class="input-selection-milieu" placeholder="Milieu" data-dtype="String"/>
|
||||
</div>
|
||||
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=milieux className='input-selection-milieu'}}
|
||||
<a class="milieu-add"><i class="fas fa-plus-circle"></i></a>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user