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

37 lines
1.9 KiB
Handlebars
Raw Permalink 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
{{#if (eq data.type "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/>
<input class="header-field-value flex1" type="text" name="data.xp.spent" value="{{numberFormat data.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/>
<input class="header-field-value flex1" type="text" name="data.xp.total" value="{{numberFormat data.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/>
<select class="field-value" name="data.type" data-dtype="String">
{{#select data.type}}
2022-04-10 20:15:30 +02:00
<option value="creature">Créature</option>
2022-01-08 23:28:16 +01:00
<option value="base">Piétaille</option>
<option value="tough">Coriace</option>
<option value="adversary">Adversaire</option>
{{/select}}
</select>
</div>
{{/if}}
</div>
</header>