bol/templates/actor/parts/actor-header.hbs

38 lines
2.0 KiB
Handlebars
Raw Normal View History

{{!-- Sheet Header --}}
<header class="sheet-header">
<div class="header-field flex1">
<div class="header-field-group flexrow">
2022-05-12 10:15:21 +02:00
<label class="header-field-label flex2">{{localize "BOL.ui.name"}}</label><br/>
<input class="charname flex6" name="name" type="text" value="{{actor.name}}" placeholder="Name"/>
</div>
2022-01-08 23:28:16 +01:00
2022-08-31 22:46:19 +02:00
{{#if (eq charType "player")}}
<div class="header-field-group flexrow">
2022-05-12 10:15:21 +02:00
<label class="header-field-label flex2">{{localize "BOL.ui.xp"}}</label><br/>
2021-12-15 12:37:17 +01:00
<div class="header-field-group flex3">
2022-05-12 10:15:21 +02:00
<label class="header-field-label flex1" style="font-size: 1.5em; color:#606060;">{{localize "BOL.ui.xpspent"}}</label><br/>
2022-08-31 23:00:41 +02:00
<input class="header-field-value flex1" type="text" name="system.xp.spent" value="{{numberFormat xp.spent decimals=0 sign=false}}" data-dtype="Number"/><br/>
2021-12-15 12:37:17 +01:00
</div>
<div class="header-field-group flex3">
2022-05-12 10:15:21 +02:00
<label class="header-field-label flex1" style="font-size: 1.5em; color:#606060;">&nbsp;{{localize "BOL.ui.xptotal"}}</label><br/>
2022-08-31 23:00:41 +02:00
<input class="header-field-value flex1" type="text" name="system.xp.total" value="{{numberFormat xp.total decimals=0 sign=false}}" data-dtype="Number"/><br/>
2021-12-15 12:37:17 +01:00
</div>
</div>
2022-01-08 23:28:16 +01:00
{{else}}
<div class="header-field-group flexrow">
<label class="header-field-label flex2">Type : </label><br/>
2022-08-31 22:46:19 +02:00
<select class="field-value" name="system.chartype" data-dtype="String">
{{#select charType}}
2022-11-23 15:27:08 +01:00
<option value="creature">{{localize "BOL.ui.creature"}}</option>
<option value="daemon">{{localize "BOL.ui.daemon"}}</option>
2022-11-23 15:27:08 +01:00
<option value="base">{{localize "BOL.ui.rabble"}}</option>
<option value="tough">{{localize "BOL.ui.tough"}}</option>
<option value="adversary">{{localize "BOL.ui.villain"}}</option>
2022-01-08 23:28:16 +01:00
{{/select}}
</select>
</div>
{{/if}}
</div>
</header>