feat!: migrate to v12
BREAKING CHANGE: Support for v11 has been dropped
This commit is contained in:
parent
1dd2705bf1
commit
6ac9f49463
13 changed files with 52 additions and 89 deletions
|
@ -9,8 +9,8 @@ SPDX-License-Identifier: MIT
|
|||
!-- @param effectData: The data of the item.
|
||||
--}}
|
||||
<li class="ds4-embedded-document-list__row effect" data-effect-id="{{effectData._id}}">
|
||||
{{!-- icon --}}
|
||||
{{> systems/ds4/templates/sheets/shared/components/rollable-image.hbs rollable=false src=effectData.icon
|
||||
{{!-- img --}}
|
||||
{{> systems/ds4/templates/sheets/shared/components/rollable-image.hbs rollable=false src=effectData.img
|
||||
alt=(localize "DS4.DocumentImageAltText" name=effectData.name) title=effectData.name}}
|
||||
|
||||
{{!-- name --}}
|
||||
|
|
|
@ -10,11 +10,7 @@ SPDX-License-Identifier: MIT
|
|||
<label for="system.armorType-{{data._id}}">{{localize "DS4.ArmorType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.armorType-{{data._id}}" name="system.armorType" data-dtype="String">
|
||||
{{#select data.system.armorType}}
|
||||
{{#each config.i18n.armorTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.armorTypes selected=data.system.armorType}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -22,11 +18,7 @@ SPDX-License-Identifier: MIT
|
|||
<label for="system.armorMaterialType-{{data._id}}">{{localize "DS4.ArmorMaterialType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.armorMaterialType-{{data._id}}" name="system.armorMaterialType" data-dtype="String">
|
||||
{{#select data.system.armorMaterialType}}
|
||||
{{#each config.i18n.armorMaterialTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.armorMaterialTypes selected=data.system.armorMaterialType}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -15,11 +15,7 @@ SPDX-License-Identifier: MIT
|
|||
<label for="system.availability-{{data._id}}">{{localize "DS4.ItemAvailability"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.availability-{{data._id}}" name="system.availability" data-dtype="String">
|
||||
{{#select data.system.availability}}
|
||||
{{#each config.i18n.itemAvailabilities as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.itemAvailabilities selected=data.system.availability}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -29,11 +29,7 @@ SPDX-License-Identifier: MIT
|
|||
"DS4.SpellType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.spellType-{{data._id}}" name="system.spellType" data-dtype="String">
|
||||
{{#select data.system.spellType}}
|
||||
{{#each config.i18n.spellTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.spellTypes selected=data.system.spellType}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -43,11 +39,7 @@ SPDX-License-Identifier: MIT
|
|||
<input data-dtype="String" type="text" name="system.maxDistance.value"
|
||||
value="{{data.system.maxDistance.value}}" />
|
||||
<select name="system.maxDistance.unit" data-dtype="String">
|
||||
{{#select data.system.maxDistance.unit}}
|
||||
{{#each config.i18n.distanceUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.distanceUnits selected=data.system.maxDistance.unit}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -57,11 +49,7 @@ SPDX-License-Identifier: MIT
|
|||
<input data-dtype="String" type="text" name="system.effectRadius.value"
|
||||
value="{{data.system.effectRadius.value}}" />
|
||||
<select name="system.effectRadius.unit" data-dtype="String">
|
||||
{{#select data.system.effectRadius.unit}}
|
||||
{{#each config.i18n.distanceUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.distanceUnits selected=data.system.effectRadius.unit}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -70,11 +58,7 @@ SPDX-License-Identifier: MIT
|
|||
<div class="form-fields">
|
||||
<input data-dtype="String" type="text" name="system.duration.value" value="{{data.system.duration.value}}" />
|
||||
<select name="system.duration.unit" data-dtype="String">
|
||||
{{#select data.system.duration.unit}}
|
||||
{{#each config.i18n.temporalUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.temporalUnits selected=data.system.duration.unit}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -83,11 +67,7 @@ SPDX-License-Identifier: MIT
|
|||
title="{{localize 'DS4.CooldownDurationDescription'}}">{{localize "DS4.CooldownDuration"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.cooldownDuration-{{data._id}}" name="system.cooldownDuration" data-dtype="String">
|
||||
{{#select data.system.cooldownDuration}}
|
||||
{{#each config.i18n.cooldownDurations as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.cooldownDurations selected=data.system.cooldownDuration}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,11 +10,7 @@ SPDX-License-Identifier: MIT
|
|||
<label for="system.attackType-{{data._id}}">{{localize "DS4.AttackType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="system.attackType-{{data._id}}" name="system.attackType" data-dtype="String">
|
||||
{{#select data.system.attackType}}
|
||||
{{#each config.i18n.attackTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.i18n.attackTypes selected=data.system.attackType}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue