2023-01-28 16:34:09 +01:00
|
|
|
{{#unless options.isOwned}}
|
2022-11-28 11:31:19 +01:00
|
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs'}}
|
|
|
|
<div class="tab items" data-group="primary" data-tab="environnement">
|
2023-01-18 00:11:10 +01:00
|
|
|
<div class="form-group description-milieu">
|
2022-11-28 11:31:19 +01:00
|
|
|
<label>Description du milieu</label>
|
2022-12-15 00:54:50 +01:00
|
|
|
<span class="flexrow">
|
|
|
|
<input class="attribute-value" type="text" name="system.milieu" value="{{system.milieu}}" data-dtype="String" />
|
|
|
|
</span>
|
2022-11-28 11:31:19 +01:00
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Ajouter un fréquence</label>
|
2022-12-15 00:54:50 +01:00
|
|
|
<span class="flexrow">
|
2022-12-30 02:55:11 +01:00
|
|
|
<div class="autocomplete">
|
2022-12-30 02:59:50 +01:00
|
|
|
<input name="saisie-nouveau-milieu" type="text" class="input-selection-milieu" placeholder="Milieu" data-dtype="String"/>
|
2022-12-30 02:55:11 +01:00
|
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs' proposals=milieux className='input-selection-milieu'}}
|
|
|
|
</div>
|
2022-11-28 11:31:19 +01:00
|
|
|
<a class="milieu-add"><i class="fas fa-plus-circle"></i></a>
|
2022-12-15 00:54:50 +01:00
|
|
|
</span>
|
2022-11-28 11:31:19 +01:00
|
|
|
</div>
|
2024-06-29 00:06:19 +02:00
|
|
|
|
2022-12-30 02:59:50 +01:00
|
|
|
{{#each system.environnement as |env key|}}
|
2022-11-28 11:31:19 +01:00
|
|
|
<div class="form-group environnement-milieu" data-milieu="{{env.milieu}}">
|
|
|
|
<label>
|
|
|
|
{{env.milieu}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="milieu-delete" data-tooltip="Supprimer {{env.milieu}}"><i class="fas fa-trash"></i></a>
|
2022-11-28 11:31:19 +01:00
|
|
|
</label>
|
2022-12-15 00:54:50 +01:00
|
|
|
<span class="flexrow">
|
2023-11-23 00:32:46 +01:00
|
|
|
<select name="milieu-{{key}}-rarete" class="environnement-rarete flex-shrink" data-dtype="String">
|
2024-06-29 00:06:19 +02:00
|
|
|
{{selectOptions @root.config.raretes selected=env.rarete labelAttr="label" valueAttr="value" nameAttr="value"}}
|
2022-11-28 11:31:19 +01:00
|
|
|
</select>
|
2023-01-13 04:54:29 +01:00
|
|
|
{{rangePicker name="milieu-{{key}}-frequence" value=env.frequence min=(rarete-getChamp env.rarete 'min') max=(rarete-getChamp env.rarete 'max') step=1}}
|
|
|
|
<label>[{{rarete-getChamp env.rarete 'min'}}-{{rarete-getChamp env.rarete 'max'}}]</label>
|
2022-12-15 00:54:50 +01:00
|
|
|
</span>
|
2022-11-28 11:31:19 +01:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
2023-01-18 01:37:22 +01:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|