foundryvtt-beam-saber/templates/parts/cohort-block.html
Megastruktur c785f0691d GH-87 Cohort Gang Type fix
- Closes #87
- Fixes Gang Type multiple select
2020-10-30 13:55:48 +03:00

47 lines
2 KiB
HTML

<div class="item cohort-block-wrapper" data-item-id="{{item._id}}">
<div class="cohort-block">
<div class="label-stripe">
<div class="item-sheet-open">{{#if (eq item.data.cohort "Gang")}}Gang of {{#each item.data.gang_type as |gang_type key|}}{{gang_type}} {{/each}}{{/if}}{{#if (eq item.data.cohort "Expert")}}{{item.data.cohort}} {{item.data.expert_type}}{{/if}} (click to edit)</div>
<div>Q:{{item.data.quality}} S:{{item.data.scale}}</div>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
<div class="cohort-body">
<div class="cohort-block-harm flex-horizontal">
{{#each item.data.harm_list as |harm harm_key|}}
{{#multiboxes ../item.data.harm}}
<input id="harm-{{harm_key}}-{{../item._id}}" type="radio" name="harm.{{../item._id}}" data-item="{{../item._id}}" value="{{harm_key}}">
<label for="harm-{{harm_key}}-{{../item._id}}">{{localize harm.label}}</label>
{{/multiboxes}}
{{/each}}
</div>
{{#if (eq item.data.cohort "Gang")}}
{{#each item.data.gang_type as |gang_type key|}}
<div>
{{#with (lookup ../item.data.gang_type_list gang_type)}}{{localize description}} {{/with}}
</div>
{{/each}}
{{/if}}
<div class="flex-vertical">
<div class="flex-vertical">
{{#each item.data.edges as |edge key|}}
{{#with (lookup ../item.data.edges_list edge)}}
<div class="description">{{localize description}} <b>({{localize label}})</b></div>
{{/with}}
{{/each}}
{{#each item.data.flaws as |flaw key|}}
{{#with (lookup ../item.data.flaws_list flaw)}}
<div class="description">{{localize description}} <b>({{localize label}})</b></div>
{{/with}}
{{/each}}
</div>
</div>
<div class="description">{{localize item.data.description}}</div>
</div>
</div>
</div>