41396ddd73
- Closes #77 - Adds new "concat" handlebars helper to concat str and var - Adds Short attributes names to use them in layout
46 lines
1.7 KiB
HTML
46 lines
1.7 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="{{attribute_name}}-exp-0"><i class="fab fa-creative-commons-zero"></i></label>
|
|
<input type="radio" id="{{attribute_name}}-exp-0" name="data.attributes.{{attribute_name}}.exp" value="0" checked="checked">
|
|
{{#times_from_1 6}}
|
|
<input type="radio" id="{{attribute_name}}-exp-{{this}}" name="data.attributes.{{attribute_name}}.exp" value="{{this}}">
|
|
<label for="{{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-{{skill_name}}-{{this}}" name="data.attributes.{{attribute_name}}.skills.{{skill_name}}.value" value="{{this}}">
|
|
<label for="attributes-{{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>
|