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

53 lines
1.9 KiB
HTML
Raw Normal View History

2022-09-03 15:44:26 +00:00
<div id="character-{{_id}}-attributes" class="attributes">
2020-04-21 06:51:49 +00:00
2022-09-03 15:44:26 +00:00
{{#each system.attributes as |attribute attribute_name|}}
2020-04-21 06:51:49 +00:00
2022-09-03 15:44:26 +00:00
<div id="character-{{../_id}}-attributes-{{attribute_name}}" class="attribute">
<div id="character-{{../_id}}-attributes-{{attribute_name}}-title" class="attributes-exp">
2020-04-23 16:11:04 +00:00
<div class="stripe">
<a class="attribute-label roll-die-attribute rollable-text" data-roll-attribute="{{attribute_name}}">{{localize (concat attribute.label 'Short')}}</a>
2020-04-23 16:11:04 +00:00
</div>
<div class="stripe-tooth-body">
{{#multiboxes attribute.exp}}
2020-11-04 21:33:48 +00:00
<label
2022-09-03 15:44:26 +00:00
for="{{../_id}}-{{attribute_name}}-exp-0"><i
2020-11-04 21:33:48 +00:00
class="fab fa-creative-commons-zero nullifier"></i></label>
2022-09-03 15:44:26 +00:00
<input type="radio" id="{{../_id}}-{{attribute_name}}-exp-0"
name="system.attributes.{{attribute_name}}.exp" value="0" checked="checked">
{{#times_from_1 6}}
2022-09-03 15:44:26 +00:00
<input type="radio" id="{{../../_id}}-{{attribute_name}}-exp-{{this}}"
name="system.attributes.{{attribute_name}}.exp" value="{{this}}">
<label for="{{../../_id}}-{{attribute_name}}-exp-{{this}}"></label>
{{/times_from_1}}
2020-04-23 16:11:04 +00:00
{{/multiboxes}}
</div>
2020-04-21 06:51:49 +00:00
</div>
2022-09-03 15:44:26 +00:00
2020-04-21 06:51:49 +00:00
{{!-- Skills --}}
{{#each attribute.skills as |skill skill_name|}}
<div class="flex-horizontal">
<div class="attributes-container">
{{#multiboxes skill.value}}
{{#times_from_0 skill.max}}
2022-09-03 15:44:26 +00:00
<input type="radio" id="attributes-{{../../../_id}}-{{skill_name}}-{{this}}"
name="system.attributes.{{attribute_name}}.skills.{{skill_name}}.value" value="{{this}}">
<label for="attributes-{{../../../_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>
2020-04-23 16:11:04 +00:00
{{/multiboxes}}
</div>
2020-04-21 06:51:49 +00:00
</div>
{{/each}}
</div>
{{/each}}
2020-04-23 16:11:04 +00:00
2020-04-21 06:51:49 +00:00
2020-04-23 16:11:04 +00:00
</div>