fix: Origine des PNJ en texte libre (remplace la dropdown)

This commit is contained in:
2026-08-07 15:32:09 +02:00
parent ef01651b1d
commit 44fbc592ad
2 changed files with 1 additions and 9 deletions
-1
View File
@@ -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
+1 -8
View File
@@ -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}}