This repository has been archived on 2024-05-29. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-warhero/templates/partial-actor-stat-block.html

62 lines
2.5 KiB
HTML
Raw Permalink Normal View History

2023-01-29 16:56:09 +01:00
<li class="item flexrow list-item item-stat-roll" data-attr-key="{{key}}">
2023-02-06 07:37:39 +01:00
<span class="{{fieldClass}}" name="{{key}}">
<h4 class="{{fieldClass}}">
2023-01-29 16:56:09 +01:00
{{#if roll}}
2023-02-06 07:37:39 +01:00
<i class="fa-solid fa-dice-d20"></i><a class="roll-this stat-margin" data-type="{{path}}" data-key="{{key}}">{{localize stat.label}}</a>
2023-01-29 16:56:09 +01:00
{{else}}
2023-02-06 07:37:39 +01:00
{{localize stat.label}}
2023-01-29 16:56:09 +01:00
{{/if}}
</h4>
</span>
{{#if (eq style "dropdown")}}
2023-02-06 07:37:39 +01:00
<select class="item-field-label-short" type="text" name="system.{{path}}.{{key}}.value" value="{{stat.value}}"
2023-01-29 16:56:09 +01:00
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.value}}
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
{{/select}}
</select>
{{/if}}
{{#if (eq style "edit")}}
2023-02-06 07:37:39 +01:00
<input type="text" class="item-field-label-short " {{#if disabled}}disabled{{/if}} name="system.{{path}}.{{key}}.value" value="{{stat.value}}" data-dtype="Number"/>
2023-01-29 16:56:09 +01:00
{{#if hasmax}}
2023-02-06 07:37:39 +01:00
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.max" value="{{stat.max}}" data-dtype="Number"/>
2023-01-29 16:56:09 +01:00
{{/if}}
2023-03-04 17:34:18 +01:00
{{#if hasuse}}
2023-02-27 22:04:03 +01:00
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.nbuse" value="{{stat.nbuse}}" data-dtype="Number"/>
2023-03-04 17:34:18 +01:00
<label class="item-field-label-2rem">&nbsp;/&nbsp;</label>
2023-02-27 22:04:03 +01:00
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.maxuse" value="{{stat.maxuse}}" data-dtype="Number"/>
{{/if}}
2023-01-29 16:56:09 +01:00
{{/if}}
2023-02-06 07:37:39 +01:00
{{#if hassave}}
2023-02-18 23:19:10 +01:00
<span class="item-field-label-medium" name="{{key}}">
<h4 class="item-field-label-medium">
2023-02-06 07:37:39 +01:00
<i class="fa-solid fa-dice-d20"></i>
2023-02-07 15:18:00 +01:00
<a class="roll-save stat-margin" data-type="{{path}}" data-key="{{key}}">
2023-02-18 23:19:10 +01:00
{{localize (concat "WH.ui.save" key)}}
2023-02-06 07:37:39 +01:00
</a>
</h4>
</span>
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.save" value="{{stat.save}}" data-dtype="Number"/>
{{/if}}
{{#if islevel}}
<span class="item-field-label-short" name="{{key}}">
<h4 class="item-field-label-short">{{localize "WH.ui.level"}}
</h4>
</span>
<input type="text" disabled class="item-field-label-short " value="{{stat.level}}" data-dtype="Number"/>
{{/if}}
2023-01-29 16:56:09 +01:00
</li>