bol/templates/actor/parts/tabs/actor-biodata.hbs

175 lines
5.2 KiB
Handlebars

<ol class='items-list'>
{{#if (ne charType 'creature')}}
<li class='item flexrow item-header'>
<div class='item-name left'>
{{localize 'BOL.ui.biosize'}}
</div>
<div class='item-field flex2 left'>
<input
type='text'
name='system.details.height'
value="{{details.height}}"
/>
</div>
<div class='item-name right'>
{{localize 'BOL.ui.bioweight'}}
</div>
<div class='item-field flex2'>
<input
type='text'
name='system.details.weight'
value="{{details.weight}}"
/>
</div>
<div class='item-name right'>
{{localize 'BOL.ui.bioage'}}
</div>
<div class='item-field flex2'>
<input type='text' name='system.details.age' value="{{details.age}}" />
</div>
</li>
<li class='item flexrow item-header'>
<div class='item-name left'>
{{localize 'BOL.ui.biohair'}}
</div>
<div class='item-field flex2 left'>
<input
type='text'
name='system.details.hait'
value="{{details.hait}}"
/>
</div>
<div class='item-name right'>
{{localize 'BOL.ui.bioeyes'}}
</div>
<div class='item-field flex2'>
<input
type='text'
name='system.details.eyes'
value="{{details.eyes}}"
/>
</div>
</li>
<li class='item flexrow item-header'>
<div class='item-name left'>
{{localize 'BOL.ui.biosigns'}}
</div>
<div class='item-field flex2 left'>
<input
type='text'
name='system.details.signs'
value="{{details.signs}}"
/>
</div>
</li>
{{else}}
<li class='item flexrow item-header'>
<div class='item-name left'>
Taille
</div>
<div class='form-fields center'>
<select
class='field-value size'
name='system.details.size'
data-dtype='String'
>
{{#select details.size}}
{{#each config.creatureSize as |sizeData id|}}
<option value="{{id}}">
{{localize sizeData.label}}
</option>
{{/each}}
{{/select}}
</select>
</div>
</li>
{{/if}}
</ol>
{{#if (and (not isAstrologer) (countKeys horoscopeGroupList))}}
{{> "systems/bol/templates/actor/parts/tabs/actor-horoscope-group.hbs"}}
{{/if}}
<ol class='items-list'>
<li class='item flexrow item-header'>
<div class='item-name flex4 left'>
{{localize 'BOL.ui.biodescription'}}
</div>
<div class='item-field flex1 right'></div>
</li>
</ol>
{{editor
biography
target='system.details.biography'
button=true
owner=owner
editable=editable
}}
{{#if (eq charType "player")}}
<ol class="items-list">
<li class="item flexrow item-header">
<div class="item-name flex2 left">{{localize "BOL.ui.xplog"}}</div>
<div class="item-field flex1 center">{{localize "BOL.ui.type"}}</div>
<div class="item-field flex1 center">{{localize "BOL.ui.date"}}</div>
<div class="item-field flex1 center">{{localize "BOL.ui.name"}}</div>
<div class="item-field flex1 center">{{localize "BOL.ui.cost"}}</div>
<div class="item-field flex1 center">{{localize "BOL.ui.value"}}</div>
<div class="item-field flex1 right">
<a class="inc-dec-btns-resource xplog-add" ><i class="fas fa-plus-square"></i></a>
</div>
</li>
{{#each xplog as |xp idx|}}
<li class="item flexrow" data-item-id="{{xp._id}}">
<h4 class="item-name flex2 left">
<div class="item-image"><img src="{{xp.img}}" title="{{xp.name}}" /></div>
<a class="item-edit">{{xp.name}}</a>
</h4>
<div class="item-field flex1 center">
<span class="item-field">{{localize (concat "BOL.ui." xp.system.properties.xptype)}}</span>
</div>
<div class="item-field flex1 center">
<span class="item-field">{{xp.system.properties.xpdate}}</span>
</div>
<div class="item-field flex1 center">
{{#if (eq xp.system.properties.xptype "attribute")}}
<span class="item-field">{{localize (concat "BOL.attributes." xp.system.properties.xpname)}}</span>
{{else}}
{{#if (eq xp.system.properties.xptype "aptitude")}}
<span class="item-field">{{localize (concat "BOL.aptitudes." xp.system.properties.xpname)}}</span>
{{else}}
<span class="item-field">{{xp.system.properties.xpname}}</span>
{{/if}}
{{/if}}
</div>
<div class="item-field flex1 center">
<span class="item-field">{{xp.system.properties.xpcost}}</span>
</div>
<div class="item-field flex1 center">
<span class="item-field">{{xp.system.properties.xpvalue}}</span>
</div>
<div class="item-field flex1 right">
<a class="item-control item-delete" title="{{localize " BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
{{/if}}
<ol class='items-list'>
<li class='item flexrow item-header'>
<div class='item-name flex4 left'>
{{localize 'BOL.ui.bionotes'}}
</div>
<div class='item-field flex1 right'></div>
</li>
</ol>
{{editor
notes
target='system.details.notes'
button=true
owner=owner
editable=editable
}}