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.npcRoleOptions = CONFIG.VERMINE.npcRoleLevels
|
||||
context.totemOptions = CONFIG.VERMINE.totems
|
||||
context.originOptions = CONFIG.VERMINE.origins
|
||||
break
|
||||
case "traits":
|
||||
context.tab = context.tabs.traits
|
||||
|
||||
@@ -117,14 +117,7 @@
|
||||
<label for="system.identity.origin" class="resource-label">{{ localize 'ORIGIN' }}</label>
|
||||
<div class="resource-content">
|
||||
{{#if isEditMode}}
|
||||
<select name="system.identity.origin" id="system.identity.origin" data-dtype="String">
|
||||
<option value="">{{ localize 'NONE' }}</option>
|
||||
{{#each originOptions}}
|
||||
<option value="{{@key}}" {{#ife @key @root.system.identity.origin}}selected{{/ife}}>
|
||||
{{this}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
<input type="text" name="system.identity.origin" id="system.identity.origin" value="{{system.identity.origin}}" data-dtype="String" placeholder="{{ localize 'ORIGIN' }}"/>
|
||||
{{else}}
|
||||
<span>{{system.identity.origin}}</span>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user