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

29 lines
1.6 KiB
HTML

<span class="flexrow">
<h4 class="ame-margin ame-subtitle">{{typedata.label}}</h4>
<div class="item-filler">&nbsp;</div>
<span class="ame-checkbox-label">-1<input class="ame-checkbox" type="checkbox" data-ame-key="{{typeame}}"></span>
<span class="ame-checkbox-label">-2<input class="ame-checkbox" type="checkbox" data-ame-key="{{typeame}}"></span>
<span class="ame-checkbox-label">-3<input class="ame-checkbox" type="checkbox" data-ame-key="{{typeame}}"></span>
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
name="data.amestype.{{typeame}}.cohesion" value="{{typedata.cohesion}}" data-dtype="Number" {{#unless
@root.editScore}}disabled{{/unless}} /> /
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
name="data.amestype.{{typeame}}.cohesionmax" value="{{typedata.cohesionmax}}" data-dtype="Number" {{#unless
@root.editScore}}disabled{{/unless}}>
</span>
<ul class="ame-margin">
{{#each data.ames as |ame key|}}
{{#if (eq ame.type ../typeame)}}
<li class="ame-padding item stat flexrow item-ame-roll" data-attr-key="{{key}}">
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common"
name="data.ames.{{key}}.value" value="{{ame.value}}" data-dtype="Number" {{#unless
@root.editScore}}disabled{{/unless}} />
<span class="ame-label ame-margin" name="{{key}}">
<a class="roll-ame" data-stat-key="{{key}}">{{ame.label}}</a>
</span>
</li>
{{/if}}
{{/each}}
</ul>