fix: Origine des PNJ en texte libre (remplace la dropdown)
This commit is contained in:
@@ -52,7 +52,6 @@ export default class VermineNpcSheetV2 extends VermineBaseActorSheet {
|
|||||||
context.npcExperienceOptions = CONFIG.VERMINE.npcExperienceLevels
|
context.npcExperienceOptions = CONFIG.VERMINE.npcExperienceLevels
|
||||||
context.npcRoleOptions = CONFIG.VERMINE.npcRoleLevels
|
context.npcRoleOptions = CONFIG.VERMINE.npcRoleLevels
|
||||||
context.totemOptions = CONFIG.VERMINE.totems
|
context.totemOptions = CONFIG.VERMINE.totems
|
||||||
context.originOptions = CONFIG.VERMINE.origins
|
|
||||||
break
|
break
|
||||||
case "traits":
|
case "traits":
|
||||||
context.tab = context.tabs.traits
|
context.tab = context.tabs.traits
|
||||||
|
|||||||
@@ -117,14 +117,7 @@
|
|||||||
<label for="system.identity.origin" class="resource-label">{{ localize 'ORIGIN' }}</label>
|
<label for="system.identity.origin" class="resource-label">{{ localize 'ORIGIN' }}</label>
|
||||||
<div class="resource-content">
|
<div class="resource-content">
|
||||||
{{#if isEditMode}}
|
{{#if isEditMode}}
|
||||||
<select name="system.identity.origin" id="system.identity.origin" data-dtype="String">
|
<input type="text" name="system.identity.origin" id="system.identity.origin" value="{{system.identity.origin}}" data-dtype="String" placeholder="{{ localize 'ORIGIN' }}"/>
|
||||||
<option value="">{{ localize 'NONE' }}</option>
|
|
||||||
{{#each originOptions}}
|
|
||||||
<option value="{{@key}}" {{#ife @key @root.system.identity.origin}}selected{{/ife}}>
|
|
||||||
{{this}}
|
|
||||||
</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<span>{{system.identity.origin}}</span>
|
<span>{{system.identity.origin}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
Reference in New Issue
Block a user