modified stance internal usage checkboxes->radio

This commit is contained in:
Vlyan
2020-12-12 13:22:49 +01:00
parent 0855df881f
commit c9c282b3ad
8 changed files with 21 additions and 29 deletions

View File

@@ -2,10 +2,10 @@
<div class="conflict-top-content">
<div class="conflict-stances-content">
<h4 class="section-header">{{ localize 'l5r5e.conflict.stance' }}</h4>
{{#each data.stances as |stance stanceId|}}
{{> 'systems/l5r5e/templates/sheets/actor/stance.html' stance=stance stanceId=stanceId }}
{{#each data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/sheets/actor/stance.html' stance=../data.stance ringId=ringId }}
{{/each}}
</div>
{{> 'systems/l5r5e/templates/item/weapons.html' }}
</div>
</div>
</div>

View File

@@ -1,5 +1,5 @@
<div class="stance-content">
<input type="checkbox" name="data.stances.{{stanceId}}.isSelected.value" {{ checked stance.isSelected.value }}/>
<label class="stance-title {{stanceId}}">{{ localizeRing stanceId }}</label>
<p class="quick-rules" style="display: inline;"> {{ localizeStanceTip stanceId }}</p>
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
<label for="stance_{{ringId}}" class="stance-title {{ringId}}">{{ localizeRing ringId }}</label>
<p class="quick-rules" style="display: inline;"> {{ localizeStanceTip ringId }}</p>
</div>