Ajout du xplog
This commit is contained in:
@ -107,6 +107,57 @@
|
||||
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'>
|
||||
|
@ -9,24 +9,27 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{#if (equals item.system.subtype "career")}}
|
||||
{{#if (eq item.system.subtype "career")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/career-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.system.subtype "fightoption")}}
|
||||
{{#if (eq item.system.subtype "fightoption")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/fightoption-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{!#if (equals data.subtype "race")}}
|
||||
{{!> "systems/bol/templates/item/parts/properties/feature/race-properties.hbs"}}
|
||||
{{!/if}}
|
||||
{{#if (equals item.system.subtype "boon")}}
|
||||
{{#if (eq item.system.subtype "boon")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/boon-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.system.subtype "flaw")}}
|
||||
{{#if (eq item.system.subtype "flaw")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.system.subtype "boleffect")}}
|
||||
{{#if (eq item.system.subtype "boleffect")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/effect-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.system.subtype "horoscope")}}
|
||||
{{#if (eq item.system.subtype "horoscope")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/horoscope-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (eq item.system.subtype "xplog")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/xplog-properties.hbs"}}
|
||||
{{/if}}
|
||||
|
63
templates/item/parts/properties/feature/xplog-properties.hbs
Normal file
63
templates/item/parts/properties/feature/xplog-properties.hbs
Normal file
@ -0,0 +1,63 @@
|
||||
<h3 class="form-header">{{localize 'BOL.featureSubtypes.xplog'}}</h3>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.type"}}</label>
|
||||
<select name="system.properties.xptype" value="{{item.system.properties.xptype}}">
|
||||
{{#select item.system.properties.xptype}}
|
||||
{{#each config.listTypes as |value id|}}
|
||||
<option value="{{id}}">{{localize value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.date"}}</label>
|
||||
<input type="text" name="system.properties.xpdate" value="{{item.system.properties.xpdate}}" data-dtype="String"/>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.name"}}</label>
|
||||
|
||||
{{#if (eq item.system.properties.xptype "attribute")}}
|
||||
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
|
||||
{{#select item.system.properties.xpname}}
|
||||
{{#each config.attackAttributes as |value id|}}
|
||||
<option value="{{id}}">{{localize value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{else}}
|
||||
{{#if (eq item.system.properties.xptype "aptitude")}}
|
||||
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
|
||||
{{#select item.system.properties.xpname}}
|
||||
{{#each config.aptitudes as |value id|}}
|
||||
<option value="{{id}}">{{localize value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{else}}
|
||||
{{#if (eq item.system.properties.xptype "career")}}
|
||||
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
|
||||
{{#select item.system.properties.xpname}}
|
||||
{{#each careers as |career id|}}
|
||||
<option value="{{id}}">{{career.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{else}}
|
||||
<input type="text" name="system.properties.xpname" value="{{item.system.properties.xpname}}" data-dtype="String"/>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.cost"}}</label>
|
||||
<input type="text" name="system.properties.xpcost" value="{{item.system.properties.xpcost}}" data-dtype="Number"/>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.value"}}</label>
|
||||
<input type="text" name="system.properties.xpvalue" value="{{item.system.properties.xpvalue}}" data-dtype="Number"/>
|
||||
</div>
|
Reference in New Issue
Block a user