DataModels + Appv2 migration : OK
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{{else}}
|
||||
<div class="header-field-group flexrow">
|
||||
<label class="header-field-label flex2">Type : </label><br/>
|
||||
<select class="field-value" name="system.chartype" data-dtype="String">
|
||||
<select class="header-field-value" name="system.chartype" data-dtype="String">
|
||||
{{#select charType}}
|
||||
<option value="creature">{{localize "BOL.ui.creature"}}</option>
|
||||
<option value="daemon">{{localize "BOL.ui.daemon"}}</option>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{{localize "BOL.ui.biosize"}}
|
||||
</div>
|
||||
<div class='form-fields center'>
|
||||
<select class='field-value size' name='system.details.size' data-dtype='String'>
|
||||
<select class='header-field-value size' name='system.details.size' data-dtype='String'>
|
||||
{{#select details.size}}
|
||||
{{#each config.creatureSize as |sizeData id|}}
|
||||
<option value="{{id}}">
|
||||
|
||||
@@ -66,8 +66,7 @@
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
<div class="flexrow">
|
||||
<button class="create-natural-weapon">{{localize "BOL.ui.createNaturalWeapon"}}</button>
|
||||
|
||||
<button class="create-natural-protection">{{localize "BOL.ui.createNaturalProtection"}}</button>
|
||||
</div>
|
||||
<footer class="form-footer">
|
||||
<button class="create-natural-weapon"><i class="fas fa-sword"></i> {{localize "BOL.ui.createNaturalWeapon"}}</button>
|
||||
<button class="create-natural-protection"><i class="fas fa-shield-alt"></i> {{localize "BOL.ui.createNaturalProtection"}}</button>
|
||||
</footer>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<div class="attribute stat flex1 flex-group-center {{key}}">
|
||||
<label class="stat-label"><a class="rollable" data-roll-type="attribute" data-roll="2d6+@attributes.{{key}}.value"
|
||||
data-adv="0" data-key="{{key}}">{{localize label}}</a></label><br />
|
||||
<input class="stat-value rounded" type="text" name="system.attributes.{{key}}.value"
|
||||
value="{{numberFormat value decimals=0 sign=true}}" data-dtype="Number" /><br />
|
||||
<input class="stat-value rounded" type="number" name="system.attributes.{{key}}.value"
|
||||
value="{{numberFormat value decimals=0 sign=false}}" /><br />
|
||||
<span class="stat-roll rollable" title="2d6" data-roll-type="attribute" data-roll="2d6+@attributes.{{key}}.value"
|
||||
data-adv="0" data-key="{{key}}">
|
||||
<i class="darkgreen fas fa-dice"></i>
|
||||
@@ -24,8 +24,8 @@
|
||||
</a>
|
||||
</label>
|
||||
<br />
|
||||
<input class="stat-value rounded-border" type="text" name="system.aptitudes.def.value"
|
||||
value="{{numberFormat aptitudes.3.value decimals=0 sign=true}}" data-dtype="Number" /><br />
|
||||
<input class="stat-value rounded-border" type="number" name="system.aptitudes.def.value"
|
||||
value="{{numberFormat aptitudes.3.value decimals=0 sign=false}}" /><br />
|
||||
<span class="stat-roll rollable" title="2d6" data-roll-type="aptitude" data-roll="2d6+@aptitudes.def.value"
|
||||
data-adv="0" data-key="def">
|
||||
<i class="darkgreen fas fa-dice"></i>
|
||||
@@ -34,17 +34,17 @@
|
||||
</div>
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize "BOL.resources.hp"}}</label><br />
|
||||
<input class="stat-value" type="text" name="system.resources.hp.value"
|
||||
value="{{numberFormat resources.hp.value decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-max" type="text" name="system.resources.hp.max"
|
||||
value="{{numberFormat resources.hp.max decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-value resources-value" type="number" name="system.resources.hp.value"
|
||||
value="{{system.resources.hp.value}}" />
|
||||
<input class="resources-value" type="number" name="system.resources.hp.max"
|
||||
value="{{system.resources.hp.max}}" />
|
||||
</div>
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize "BOL.resources.villainy"}}</label><br />
|
||||
<input class="stat-value" type="text" name="system.resources.hero.value"
|
||||
value="{{numberFormat resources.hero.value decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-max" type="text" name="system.resources.hero.max"
|
||||
value="{{numberFormat resources.hero.max decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-value resources-value" type="number" name="system.resources.hero.value"
|
||||
value="{{system.resources.hero.value}}" />
|
||||
<input class="resources-value" type="number" name="system.resources.hero.max"
|
||||
value="{{system.resources.hero.max}}" />
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
@@ -5,6 +5,7 @@
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
{{editor description target="system.description" button=true owner=owner
|
||||
editable=editable}}
|
||||
<prose-mirror name="system.details.biography" toggled>
|
||||
{{{description}}}
|
||||
</prose-mirror>
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
{{editor description target="system.description" button=true owner=owner
|
||||
editable=editable}}
|
||||
<prose-mirror name="system.description" toggled>
|
||||
{{{description}}}
|
||||
</prose-mirror>
|
||||
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
{{#each system.attributes as |attr key|}}
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize attr.label}}</label><br />
|
||||
<input class="stat-value resources-value" type="text" name="system.attributes.{{key}}.value"
|
||||
value="{{numberFormat attr.value decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="resources-value" type="text" name="system.attributes.{{key}}.max"
|
||||
value="{{numberFormat attr.max decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-value resources-value" type="number" name="system.attributes.{{key}}.value"
|
||||
value="{{attr.value}}" />
|
||||
<input class="resources-value" type="number" name="system.attributes.{{key}}.max"
|
||||
value="{{attr.max}}" />
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#if (eq system.vehicletype "boat")}}
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize system.row.label}}</label><br />
|
||||
<input class="stat-value resources-value" type="text" name="system.row.value"
|
||||
value="{{numberFormat system.row.value decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="resources-value" type="text" name="system.row.max"
|
||||
value="{{numberFormat system.row.max decimals=0 sign=false}}" data-dtype="Number" />
|
||||
<input class="stat-value resources-value" type="number" name="system.row.value"
|
||||
value="{{system.row.value}}" />
|
||||
<input class="resources-value" type="number" name="system.row.max"
|
||||
value="{{system.row.max}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<div class="item-name flex4 left">{{localize "BOL.ui.vehicleWeapons"}}</div>
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex4 left">{{localize "BOL.ui.weapons"}}</div>
|
||||
<div class="item-field flex2 center">{{localize "BOL.ui.hullDamage"}}</div>
|
||||
<div class="item-field flex1 center">{{localize "BOL.ui.crewDamage"}}</div>
|
||||
<div class="item-field flex1 center">{{localize "BOL.ui.fireDamage"}}</div>
|
||||
<div class="item-field flex1 right"></div>
|
||||
<div class="item-field flex1 right"><a class="vehicle-weapon-add" title="Ajouter"><i class="fas fa-plus-square"></i></a></div>
|
||||
</li>
|
||||
{{#each weapons as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
|
||||
Reference in New Issue
Block a user