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

171 lines
5.4 KiB
Handlebars
Raw Normal View History

2022-12-25 18:00:42 +01:00
<ol class='items-list'>
{{#if (isCreature charType)}}
<li class='item flexrow item-header'>
<div class='item-name left'>
{{localize "BOL.ui.biosize"}}
</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>
<li class='item flexrow item-header'>
<div class='item-name left'>
{{localize "BOL.ui.undead"}}
</div>
<div class="form-fields center">
<input class="field-value" type="checkbox" name="system.isundead" {{checked isUndead}}>
</div>
</li>
2022-04-10 20:15:30 +02:00
{{else}}
<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>
{{#if (ne charType "player")}}
<li class='item flexrow item-header'>
2022-12-25 18:00:42 +01:00
<div class='item-name left'>
{{localize "BOL.ui.undead"}}
2022-12-25 18:00:42 +01:00
</div>
<div class="form-fields center">
<input class="field-value" type="checkbox" name="system.isundead" {{checked isUndead}}>
2022-04-10 20:15:30 +02:00
</div>
</li>
{{/if}}
2022-04-10 20:15:30 +02:00
{{/if}}
2022-12-25 18:00:42 +01:00
</ol>
{{#if (and (not isAstrologer) (countKeys horoscopeGroupList))}}
{{> "systems/bol/templates/actor/parts/tabs/actor-horoscope-group.hbs"}}
2022-12-25 18:00:42 +01:00
{{/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>
2022-02-18 18:19:44 +01:00
</li>
</ol>
2022-12-25 18:00:42 +01:00
{{editor
biography
target='system.details.biography'
button=true
owner=owner
editable=editable
2022-12-25 18:00:42 +01:00
}}
2022-02-18 18:19:44 +01:00
2024-01-12 18:42:12 +01:00
{{#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>
2024-01-12 18:42:12 +01:00
</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}}
2024-01-12 18:42:12 +01:00
{{/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}}
2022-12-25 18:00:42 +01:00
<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>
2022-02-18 18:19:44 +01:00
</li>
</ol>
2022-12-25 18:00:42 +01:00
{{editor
notes
target='system.details.notes'
button=true
owner=owner
editable=editable
2022-12-25 18:00:42 +01:00
}}