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/cohort-block.html
Megastruktur ff7197455c GH-91
- Closes #91
- Fixes Edges and Flaws selection for Cohorts
2021-01-04 17:27:11 +03:00

47 lines
No EOL
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_list as |edge key|}}
{{#if edge.selected }}
<div class="description">{{localize edge.description}} <b>({{localize edge.label}})</b></div>
{{/if}}
{{/each}}
{{#each item.data.flaws_list as |flaw key|}}
{{#if flaw.selected }}
<div class="description">{{localize flaw.description}} <b>({{localize flaw.label}})</b></div>
{{/if}}
{{/each}}
</div>
</div>
<div class="description">{{localize item.data.description}}</div>
</div>
</div>
</div>