bol/templates/item/parts/properties/feature/xplog-properties.hbs

64 lines
2.6 KiB
Handlebars

<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>