fvtt-hawkmoon-cyd/templates/partial-automation.html

42 lines
1.8 KiB
HTML
Raw Normal View History

2022-10-25 17:54:18 +02:00
<li class="flexrow item">
<label class="generic-label item-field-label-long">Automatisation ? </label>
<input type="checkbox" name="system.isautomated" {{checked system.isautomated}} />
</li>
{{#if system.isautomated}}
<li class="flexrow item">
<ul>
{{#each system.automations as |automation key|}}
2022-10-28 21:44:49 +02:00
<li class="automation-item item flexrow">
<hr>
</li>
<li class="automation-item item flexrow" data-automation-field="eventtype" data-automation-index="{{key}}">
2022-10-25 17:54:18 +02:00
<label class="generic-label item-field-label-medium">Evènement</label>
2022-10-28 21:44:49 +02:00
<select class="status-small-label color-class-common item-field-label-long automation-edit-field" type="text"
value="{{automation.eventtype}}" data-dtype="String">
{{#select automation.eventtype}}
<option value="on-drop">Drop sur l'acteur</option>
2022-10-25 17:54:18 +02:00
<option value="prepare-actor">Préparation de l'acteur</option>
2022-10-28 21:44:49 +02:00
<option value="associated-competence">Compétence associée</option>
<option value="roll-bonus">Bonus au jet</option>
2022-10-25 17:54:18 +02:00
<option value="prepare-roll">Préparation d'un jet</option>
<option value="process-roll">Lancement d'un jet</option>
{{/select}}
2022-10-28 21:44:49 +02:00
</select>
</li>
<li class="automation-item item flexrow" >
<label class="generic-label item-field-label-long2">Script : </label>
2022-10-25 17:54:18 +02:00
</li>
2022-10-28 21:44:49 +02:00
<li class="automation-item item flexrow" data-automation-field="script" data-automation-index="{{key}}">
<textarea rows="4" type="text" class="padd-right color-class-common automation-edit-field" data-dtype="String"
>{{automation.script}}</textarea>
2022-10-25 17:54:18 +02:00
</li>
{{/each}}
</ul>
<li class="flexrow item">
<button id="add-automation" class="chat-card-button">Ajouter une automatisation</button>
</li>
2022-10-28 21:44:49 +02:00
{{/if}}