Gestion de la périodicité/temporalité
This commit is contained in:
9
templates/common/periodicite.hbs
Normal file
9
templates/common/periodicite.hbs
Normal file
@ -0,0 +1,9 @@
|
||||
<label for="{{path}}.nombre">{{label}}</label>
|
||||
<div class="flexrow">
|
||||
<input type="number" name="{{path}}.nombre" value="{{nombre}}" data-dtype="Number"/>
|
||||
<select name="{{path}}.unite" data-dtype="String" >
|
||||
{{#select unite}}
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-periode.html"}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
@ -14,6 +14,7 @@
|
||||
<input {{#if disabled}}{{disabled}}{{/if}} type="number" class="number-x2" name="{{path}}.annee" value="{{annee}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<label></label>
|
||||
<label>à l'heure de</label>
|
||||
<select {{#if disabled}}{{disabled}}{{/if}} name="{{path}}.heure" class="flex-shrink" data-dtype="String">
|
||||
{{#select heure.key}}
|
||||
|
3
templates/enum-periode.html
Normal file
3
templates/enum-periode.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{#each (timestamp-formulesPeriode) as |periode|}}
|
||||
<option value="{{periode.code}}">{{periode.label}}</option>
|
||||
{{/each}}
|
@ -25,6 +25,9 @@
|
||||
<label for="system.periodicite">Périodicité</label>
|
||||
<input class="attribute-value" type="text" name="system.periodicite" value="{{system.periodicite}}" data-dtype="String"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/common/periodicite.hbs" system.periode path='system.periode' label='Périodicité'}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="system.dommages">Dommages</label>
|
||||
<input class="attribute-value" type="text" name="system.dommages" value="{{system.dommages}}" data-dtype="String"/>
|
||||
|
@ -29,6 +29,9 @@
|
||||
<label for="system.periodicite">Périodicité</label>
|
||||
<input class="attribute-value" type="text" name="system.periodicite" value="{{system.periodicite}}" data-dtype="String"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/common/periodicite.hbs" system.periode path='system.periode' label='Périodicité'}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="system.dommages">Dommages</label>
|
||||
<input class="attribute-value" type="text" name="system.dommages" value="{{system.dommages}}" data-dtype="String"/>
|
||||
|
Reference in New Issue
Block a user