fvtt-imperium5/templates/actor-partial-ames.html

35 lines
1.6 KiB
HTML
Raw Normal View History

2022-03-22 09:01:20 +01:00
<span class="flexrow">
<h4 class="ame-margin ame-subtitle">{{typedata.label}}</h4>
<div class="item-filler">&nbsp;</div>
2022-10-19 17:30:47 +02:00
<select class="input-numeric-short padd-right status-small-label color-class-common" type="text" name="system.amestype.{{typeame}}.malus" value="{{typedata.malus}}" data-dtype="Number">
{{#select typedata.malus}}
<option value="0">0</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
{{/select}}
</select>
2022-03-22 09:01:20 +01:00
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
2022-10-19 17:30:47 +02:00
name="system.amestype.{{typeame}}.cohesion" value="{{typedata.cohesion}}" data-dtype="Number" {{#unless
2022-03-22 09:01:20 +01:00
@root.editScore}}disabled{{/unless}} /> /
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
2022-10-19 17:30:47 +02:00
name="system.amestype.{{typeame}}.cohesionmax" value="{{typedata.cohesionmax}}" data-dtype="Number" {{#unless
2022-03-22 09:01:20 +01:00
@root.editScore}}disabled{{/unless}}>
</span>
<ul class="ame-margin">
2022-10-19 17:30:47 +02:00
{{#each system.ames as |ame key|}}
2022-03-19 09:30:00 +01:00
{{#if (eq ame.type ../typeame)}}
2022-10-19 17:30:47 +02:00
<li class="ame-padding item stat flexrow item-ame-roll" data-ame-key="{{key}}">
2022-03-22 09:01:20 +01:00
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common"
2022-10-19 17:30:47 +02:00
name="system.ames.{{key}}.value" value="{{ame.value}}" data-dtype="Number" {{#unless
2022-03-22 09:01:20 +01:00
@root.editScore}}disabled{{/unless}} />
<span class="ame-label ame-margin" name="{{key}}">
2022-10-19 17:30:47 +02:00
<a class="roll-ame" data-ame-key="{{key}}">{{ame.label}}</a>
2022-03-22 09:01:20 +01:00
</span>
</li>
2022-03-19 09:30:00 +01:00
{{/if}}
2022-03-22 09:01:20 +01:00
{{/each}}
</ul>