This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
foundryvtt-beam-saber/templates/parts/attributes.html
2020-11-05 00:33:48 +03:00

52 lines
1.9 KiB
HTML

<div id="attributes">
{{#each data.attributes as |attribute attribute_name|}}
<div id="attributes-{{attribute_name}}" class="attribute">
<div id="attributes-{{attribute_name}}-title" class="attributes-exp">
<div class="stripe">
<a class="attribute-label roll-die-attribute rollable-text" data-roll-attribute="{{attribute_name}}">{{localize (concat attribute.label 'Short')}}</a>
</div>
<div class="stripe-tooth-body">
{{#multiboxes attribute.exp}}
<label
for="{{../actor._id}}-{{attribute_name}}-exp-0"><i
class="fab fa-creative-commons-zero nullifier"></i></label>
<input type="radio" id="{{../actor._id}}-{{attribute_name}}-exp-0"
name="data.attributes.{{attribute_name}}.exp" value="0" checked="checked">
{{#times_from_1 6}}
<input type="radio" id="{{../../actor._id}}-{{attribute_name}}-exp-{{this}}"
name="data.attributes.{{attribute_name}}.exp" value="{{this}}">
<label for="{{../../actor._id}}-{{attribute_name}}-exp-{{this}}"></label>
{{/times_from_1}}
{{/multiboxes}}
</div>
</div>
{{!-- Skills --}}
{{#each attribute.skills as |skill skill_name|}}
<div class="flex-horizontal">
<div class="attributes-container">
{{#multiboxes skill.value}}
{{#times_from_0 4}}
<input type="radio" id="attributes-{{../../../actor._id}}-{{skill_name}}-{{this}}"
name="data.attributes.{{attribute_name}}.skills.{{skill_name}}.value" value="{{this}}">
<label for="attributes-{{../../../actor._id}}-{{skill_name}}-{{this}}"></label>
{{/times_from_0}}
<div class="attribute-skill-label roll-die-attribute rollable-text" data-roll-attribute="{{skill_name}}">{{localize skill.label}}</div>
{{/multiboxes}}
</div>
</div>
{{/each}}
</div>
{{/each}}
</div>