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

57 lines
2.2 KiB
HTML
Raw Permalink 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">
2023-04-26 08:59:46 +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}}
{{else if (eq system.cohort "Expert")}}
{{system.cohort}} {{system.expert_type}}
{{/if}}
<i class="fas fa-fw fa-edit"></i>
</div>
2022-09-03 15:44:26 +00:00
<div>Q:{{system.quality}} S:{{system.scale}}</div>
<a class="item-control item-delete" title="{{localize 'BITD.TitleDeleteItem'}}"><i class="fas fa-trash"></i></a>
<a class="item-control item-post" title="{{localize 'BITD.TitlePostItem'}}"><i class="fas fa-comment"></i></a>
</div>
<div class="cohort-body">
2023-04-26 08:59:46 +00:00
<div class="flex-horizontal">
<img src="{{img}}"/>
<div class="cohort-block-harm flex-horizontal">
{{#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>
</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 }}
2023-07-19 22:45:18 +00:00
<div class="cohort-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 }}
2023-07-19 22:45:18 +00:00
<div class="cohort-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>