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

47 lines
1.9 KiB
HTML
Raw Normal View History

2022-09-03 15:44:26 +00:00
<div class="item cohort-block-wrapper" data-item-id="{{_id}}">
<div class="cohort-block">
<div class="label-stripe">
2022-09-03 15:44:26 +00:00
<div class="item-sheet-open">{{#if (eq system.cohort "Gang")}}Gang of {{#each system.gang_type as |gang_type key|}}{{gang_type}} {{/each}}{{/if}}{{#if (eq system.cohort "Expert")}}{{system.cohort}} {{system.expert_type}}{{/if}} (click to edit)</div>
<div>Q:{{system.quality}} S:{{system.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">
2022-09-03 15:44:26 +00:00
{{#each system.harm_list as |harm harm_key|}}
{{#multiboxes ../system.harm}}
<input id="harm-{{harm_key}}-{{../_id}}" type="radio" name="harm.{{../_id}}" data-item="{{../_id}}" value="{{harm_key}}">
<label for="harm-{{harm_key}}-{{../_id}}">{{localize harm.label}}</label>
{{/multiboxes}}
{{/each}}
</div>
2022-09-03 15:44:26 +00:00
{{#if (eq system.cohort "Gang")}}
{{#each system.gang_type as |gang_type key|}}
<div>
2022-09-03 15:44:26 +00:00
{{#with (lookup ../system.gang_type_list gang_type)}}{{localize description}} {{/with}}
</div>
{{/each}}
{{/if}}
2022-09-03 15:44:26 +00:00
<div class="flex-vertical">
<div class="flex-vertical">
2022-09-03 15:44:26 +00:00
{{#each system.edges_list as |edge key|}}
{{#if edge.selected }}
<div class="description">{{localize edge.description}} <b>({{localize edge.label}})</b></div>
{{/if}}
{{/each}}
2022-09-03 15:44:26 +00:00
{{#each system.flaws_list as |flaw key|}}
{{#if flaw.selected }}
<div class="description">{{localize flaw.description}} <b>({{localize flaw.label}})</b></div>
{{/if}}
{{/each}}
</div>
</div>
2022-09-03 15:44:26 +00:00
<div class="description">{{localize system.description}}</div>
</div>
</div>
</div>