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
megastruktur 11b5b3b5b0
GH-51 Dice Macro
- Closes #51
- Adds Dice Rolling buttons to Character Sheet
- Adds Dice Rolling button to Tools panel
- Refactors file names
2020-05-25 19:00:53 +03:00

58 lines
3.1 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">
<label class="attribute-label" for="{{attribute_name}}-exp-0">{{attribute_name}}</label>
<a class="roll-die-attribute" data-roll-attribute="{{attribute_name}}" title="Roll"><i class="fas fa-dice"></i></a>
</div>
<div class="stripe-tooth-body">
{{#multiboxes attribute.exp}}
<input type="radio" id="{{attribute_name}}-exp-0" name="data.attributes.{{attribute_name}}.exp" value="0" checked="checked">
<input type="radio" id="{{attribute_name}}-exp-1" name="data.attributes.{{attribute_name}}.exp" value="1">
<label for="{{attribute_name}}-exp-1"></label>
<input type="radio" id="{{attribute_name}}-exp-2" name="data.attributes.{{attribute_name}}.exp" value="2">
<label for="{{attribute_name}}-exp-2"></label>
<input type="radio" id="{{attribute_name}}-exp-3" name="data.attributes.{{attribute_name}}.exp" value="3">
<label for="{{attribute_name}}-exp-3"></label>
<input type="radio" id="{{attribute_name}}-exp-4" name="data.attributes.{{attribute_name}}.exp" value="4">
<label for="{{attribute_name}}-exp-4"></label>
<input type="radio" id="{{attribute_name}}-exp-5" name="data.attributes.{{attribute_name}}.exp" value="5">
<label for="{{attribute_name}}-exp-5"></label>
<input type="radio" id="{{attribute_name}}-exp-6" name="data.attributes.{{attribute_name}}.exp" value="6">
<label for="{{attribute_name}}-exp-6"></label>
{{/multiboxes}}
</div>
</div>
{{!-- Skills --}}
{{#each attribute.skills as |skill skill_name|}}
<div class="flex-horizontal">
<div class="attributes-container">
{{#multiboxes skill}}
<input type="radio" id="attributes-{{skill_name}}-0" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}" value="0">
<label for="attributes-{{skill_name}}-0"></label>
<input type="radio" id="attributes-{{skill_name}}-1" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}" value="1">
<label for="attributes-{{skill_name}}-1"></label>
<span>|</span>
<input type="radio" id="attributes-{{skill_name}}-2" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}" value="2">
<label for="attributes-{{skill_name}}-2"></label>
<input type="radio" id="attributes-{{skill_name}}-3" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}" value="3">
<label for="attributes-{{skill_name}}-3"></label>
<input type="radio" id="attributes-{{skill_name}}-4" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}" value="4">
<label for="attributes-{{skill_name}}-4"></label>
<div class="attribute-skill-label">{{skill_name}}</div>
{{/multiboxes}}
</div>
<a class="roll-die-attribute" data-roll-attribute="{{skill_name}}" title="Roll"><i class="fas fa-dice"></i></a>
</div>
{{/each}}
</div>
{{/each}}
</div>