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/faction-sheet.html

78 lines
5.8 KiB
HTML
Raw Normal View History

2021-04-22 11:27:10 +00:00
<form class="{{cssClass}} actor-sheet" autocomplete="off">
<section id="factions" class="flex-horizontal">
<div id="factions-section" class="flex-vertical grow-two">
<div class="tab flex-vertical">
<div class="label-stripe">
<p>{{localize "BITD.Factions"}}</p>
<p><a class="item-add-popup" data-item-type="faction"><i class="fas fa-plus-square"></i></a></p>
</div>
2022-09-03 15:44:26 +00:00
2021-04-22 11:27:10 +00:00
<div id="faction-list">
2022-09-03 15:44:26 +00:00
{{#each items as |faction id|}}
2021-04-22 11:27:10 +00:00
{{#if (eq faction.type "faction")}}
2022-09-03 15:44:26 +00:00
<div id="faction-{{faction._id}}-items" class="faction-items label-stripe-gray item flex-horizontal" data-item-id="{{faction._id}}">
2021-04-22 11:27:10 +00:00
<a class="item-body flex-horizontal">
<img src="{{faction.img}}" title="{{faction.name}}" width="24" height="24"/>
2022-09-03 15:44:26 +00:00
<div class="item-name">{{faction.name}}<br>{{localize "BITD.Tier"}}: {{faction.system.tier}}</div>
2021-04-22 11:27:10 +00:00
</a>
<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>
2022-09-03 15:44:26 +00:00
2021-04-22 11:27:10 +00:00
<div id="faction-status">
2022-09-03 15:44:26 +00:00
<div id="faction-status-label" style="float:left; width: 10em; text-align: right; padding-right: 10px; color: var(--almost_white);">{{localize "BITD.Status"}}<br><span style="color: var(--{{#if (eq faction.system.status.value 7)}}holoblue{{/if}}{{#if (eq faction.system.status.value 6)}}holobluemed{{/if}}{{#if (eq faction.system.status.value 5)}}holobluelt{{/if}}{{#if (eq faction.system.status.value 4)}}almost_white{{/if}}{{#if (eq faction.system.status.value 3)}}redlt{{/if}}{{#if (eq faction.system.status.value 2)}}redmed{{/if}}{{#if (eq faction.system.status.value 1)}}red{{/if}}{{#if (eq faction.system.status.value 0)}}almost_white{{/if}});">{{#if (eq faction.system.status.value 7)}}{{localize "BITD.Allies"}}{{/if}}{{#if (eq faction.system.status.value 6)}}{{localize "BITD.Friends"}}{{/if}}{{#if (eq faction.system.status.value 5)}}{{localize "BITD.Associates"}}{{/if}}{{#if (eq faction.system.status.value 4)}}{{localize "BITD.Neutral"}}{{/if}}{{#if (eq faction.system.status.value 3)}}{{localize "BITD.Adversaries"}}{{/if}}{{#if (eq faction.system.status.value 2)}}{{localize "BITD.Enemies"}}{{/if}}{{#if (eq faction.system.status.value 1)}}{{localize "BITD.AtWar"}}{{/if}}{{#if (eq faction.system.status.value 0)}}{{localize "BITD.Neutral"}}{{/if}}</span></div>
2021-04-22 11:27:10 +00:00
<!-- <label for="faction-{{id}}-status-0"><i class="fab fa-creative-commons-zero nullifier"></i></label> -->
<div id="faction-status-meter" class="teeth-experience-faction" style="float:left; width: 14em;">
2022-09-03 15:44:26 +00:00
{{#multiboxes faction.system.status.value}}
<div style="display: flex;justify-content: space-between"><input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="0" type="radio" id="faction-{{id}}-status-0" value="0" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="1" type="radio" id="faction-{{id}}-status-1" value="1" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="2" type="radio" id="faction-{{id}}-status-2" value="2" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="3" type="radio" id="faction-{{id}}-status-3" value="3" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="4" type="radio" id="faction-{{id}}-status-4" value="4" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="5" type="radio" id="faction-{{id}}-status-5" value="5" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="6" type="radio" id="faction-{{id}}-status-6" value="6" dtype="Radio">
<input class="update-box" data-utype="status" data-item="{{faction._id}}" data-value="7" type="radio" id="faction-{{id}}-status-7" value="7" dtype="Radio">
</div><div style="text-align: justify;padding:2px 2px 0px 5px">
<label for="faction-{{id}}-status-0" style="color:red">D</label>
<label for="faction-{{id}}-status-1" style="color:red">3</label>
<label for="faction-{{id}}-status-2" style="color:red">2</label>
<label for="faction-{{id}}-status-3" style="color:red">1</label>
<label for="faction-{{id}}-status-4" style="color:white">0</label>
<label for="faction-{{id}}-status-5" style="color:deepskyblue">1</label>
<label for="faction-{{id}}-status-6" style="color:deepskyblue">2</label>
<label for="faction-{{id}}-status-7" style="color:deepskyblue">3</label>
<span style="width: 100%;display: inline-block;"> </span></div>
2021-04-22 11:27:10 +00:00
{{/multiboxes}}
</div>
</div>
2022-09-03 15:44:26 +00:00
2021-04-22 11:27:10 +00:00
<div id="crew-hold" class="flex-horizontal">
<div class="black-label">{{localize "BITD.Hold"}}</div>
2022-09-03 15:44:26 +00:00
{{#multiboxes faction.system.hold.value}}
2021-04-22 11:27:10 +00:00
<div class="flex-horizontal">
<div class="gray-label">{{localize "BITD.Weak"}}</div>
<input class="update-box" data-utype="hold" data-item="{{faction._id}}" data-value="1" type="radio" id="faction-{{id}}-hold-1" value="1" dtype="Radio">
<label for="faction-{{id}}-hold-1"></label>
</div>
<div class="flex-horizontal">
<div class="gray-label">{{localize "BITD.Strong"}}</div>
<input class="update-box" data-utype="hold" data-item="{{faction._id}}" data-value="2" type="radio" id="faction-{{id}}-hold-2" value="2" dtype="Radio">
<label for="faction-{{id}}-hold-2"></label>
</div>
{{/multiboxes}}
</div>
2022-09-03 15:44:26 +00:00
2021-04-22 11:27:10 +00:00
</div>
{{/if}}
{{/each}}
<div class="item-class-label"><a class="item-add-popup" data-item-type="faction">{{localize "BITD.AddItem"}}</a></div>
</div>
</div>
</div>
</section>
</form>