Amélioration fiche d'item

This commit is contained in:
ZigmundKreud
2021-11-08 14:40:29 +01:00
parent b6ad8a846e
commit 0c24f49470
44 changed files with 1007 additions and 571 deletions

View File

@ -1,28 +1 @@
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{/select}}
</select>
</div>
<!-- <div class="grid grid-2col">-->
<div class="property flexrow">
<label class="property-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
</div>
{{/each}}
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>

View File

@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.ui.equipment"}}</h3>

View File

@ -1,25 +1,14 @@
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{#each config.featureSubtypes as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
</select>
</div>
<!-- <div class="grid grid-2col">-->
<div class="property flexrow">
<label class="property-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>

View File

@ -1,28 +1,62 @@
<!--<div class="property flexrow">-->
<!-- <label class="property-label">{{localize "BOL.ui.category"}}</label>-->
<!-- <select name="data.subtype" value="{{data.category}}" data-dtype="String">-->
<!-- {{#select data.category}}-->
<!-- {{#each config.itemCategories as |item id|}}-->
<!-- <option value="{{id}}">{{localize item}}</option>-->
<!-- {{/each}}-->
<!-- {{/select}}-->
<!-- </select>-->
<!--</div>-->
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{#each config.equipmentCategories as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
</select>
</div>
<!-- <div class="grid grid-2col">-->
<hr/>
<div class="property flexrow">
<label class="property-label">Quantity</label>
<label class="property-label">{{localize "BOL.ui.quantity"}}</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<label class="property-label">{{localize "BOL.ui.weight"}}</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.price"}}</label>
<input type="text" name="data.price" value="{{data.price}}" data-dtype="Number"/>
</div>
<hr/>
<div class="form-group stacked">
<!-- <label>Propriétés</label>-->
<div class="form-fields">
{{#each data.properties as |property key|}}
<label class="checkbox">
<input type="checkbox" name="data.properties.{{key}}" {{checked property}}> {{localize key}} ({{key}})
</label>
{{/each}}
</div>
{{/each}}
</div>
{{#if data.properties.equipable}}
{{> "systems/bol/templates/item/parts/properties/equipment-properties.hbs"}}
{{/if}}
{{#if data.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/weapon-properties.hbs"}}
{{/if}}
{{#if (equals data.properties.protection)}}
{{> "systems/bol/templates/item/parts/properties/protection-properties.hbs"}}
{{/if}}
{{#if data.properties.shield}}
{{> "systems/bol/templates/item/parts/properties/shield-properties.hbs"}}
{{/if}}

View File

@ -1,28 +1 @@
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{/select}}
</select>
</div>
<!-- <div class="grid grid-2col">-->
<div class="property flexrow">
<label class="property-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
</div>
{{/each}}
<h3 class="form-header">{{localize "BOL.ui.melee"}}</h3>

View File

@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>

View File

@ -1,28 +1 @@
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{/select}}
</select>
</div>
<!-- <div class="grid grid-2col">-->
<div class="property flexrow">
<label class="property-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
</div>
{{/each}}
<h3 class="form-header">{{localize "BOL.ui.ranged"}}</h3>

View File

@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>

View File

@ -1,28 +1,8 @@
<div class="property flexrow">
<label class="property-label">{{localize "subtype"}}</label>
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
{{#select data.subtype}}
<option value="boon">{{localize "Avantage"}}</option>
<option value="flaw">{{localize "Flaw"}}</option>
<option value="career">{{localize "Career"}}</option>
<option value="language">{{localize "Language"}}</option>
{{/select}}
</select>
</div>
<h3 class="form-header">{{localize "BOL.ui.weapon"}}</h3>
<!-- <div class="grid grid-2col">-->
<div class="property flexrow">
<label class="property-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">Weight</label>
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</div>
<!-- </div>-->
{{#each data.properties as |property key|}}
<div class="property flexrow">
<label class="property-label">{{localize key}}</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
</div>
{{/each}}
{{#if data.properties.melee}}
{{> "systems/bol/templates/item/parts/properties/melee-properties.hbs"}}
{{/if}}
{{#if data.properties.ranged}}
{{> "systems/bol/templates/item/parts/properties/ranged-properties.hbs"}}
{{/if}}