All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
3.8 KiB

1 year ago
  1. <form autocomplete="off">
  2. <div class="left-column">
  3. {{> "dnd5e.advancement-controls"}}
  4. <div class="form-group">
  5. <label>{{localize "DND5E.AdvancementHint"}}</label>
  6. <textarea name="configuration.hint">{{configuration.hint}}</textarea>
  7. </div>
  8. <div class="form-group">
  9. <label>{{localize "DND5E.AdvancementConfigureAllowDrops"}}</label>
  10. <div class="form-fields">
  11. <input type="checkbox" name="configuration.allowDrops" {{checked configuration.allowDrops}}>
  12. </div>
  13. <p class="hint">{{localize "DND5E.AdvancementConfigureAllowDropsHint"}}</p>
  14. </div>
  15. <div class="form-group">
  16. <label>{{localize "DND5E.AdvancementItemChoiceType"}}</label>
  17. <div class="form-fields">
  18. <select name="configuration.type">
  19. {{selectOptions validTypes selected=configuration.type
  20. blank=(localize "DND5E.AdvancementItemChoiceTypeAny")}}
  21. </select>
  22. </div>
  23. <p class="hint">{{localize "DND5E.AdvancementItemChoiceTypeHint"}}</p>
  24. </div>
  25. {{#if typeRestriction}}
  26. <div class="form-group">
  27. <label>{{typeRestriction.typeLabel}}</label>
  28. <div class="form-fields">
  29. <select name="configuration.restriction.type">
  30. {{selectOptions typeRestriction.typeOptions selected=configuration.restriction.type
  31. labelAttr="label" blank="—"}}
  32. </select>
  33. </div>
  34. </div>
  35. {{#if typeRestriction.subtypeOptions}}
  36. <div class="form-group">
  37. <label>{{typeRestriction.subtypeLabel}}</label>
  38. <div class="form-fields">
  39. <select name="configuration.restriction.subtype">
  40. {{selectOptions typeRestriction.subtypeOptions selected=configuration.restriction.subtype blank="—"}}
  41. </select>
  42. </div>
  43. </div>
  44. {{/if}}
  45. {{/if}}
  46. {{#if showSpellConfig}}
  47. <div class="form-group">
  48. <label>{{localize "DND5E.SpellLevel"}}</label>
  49. <div class="form-fields">
  50. <select name="configuration.restriction.level">
  51. {{#select configuration.restriction.level}}
  52. <option value="">&mdash;</option>
  53. {{#each CONFIG.spellLevels as |label key|}}
  54. <option value="{{key}}">{{label}}</option>
  55. {{/each}}
  56. <option value="available">{{localize "DND5E.AdvancementItemChoiceSpellLevelAvailable"}}</option>
  57. {{/select}}
  58. </select>
  59. </div>
  60. <p class="hint">{{localize "DND5E.AdvancementItemChoiceSpellLevelHint"}}</p>
  61. </div>
  62. {{> "dnd5e.advancement-spell-config"}}
  63. {{/if}}
  64. <div class="drop-target">
  65. <ol class="items-list">
  66. <li class="items-header flexrow"><h3 class="item-name">{{localize "DOCUMENT.Items"}}</h3></li>
  67. <ol class="item-list">
  68. {{#each configuration.pool}}
  69. <li class="item flexrow" data-item-uuid="{{this}}">
  70. <div class="item-name">{{{dnd5e-linkForUuid this}}}</div>
  71. <div class="item-controls flexrow">
  72. <a class="item-control item-action" data-action="delete" title="{{localize 'DND5E.ItemDelete'}}">
  73. <i class="fas fa-trash"></i>
  74. </a>
  75. </div>
  76. </li>
  77. {{/each}}
  78. </ol>
  79. </ol>
  80. <p class="hint centered">{{localize "DND5E.AdvancementConfigureDropAreaHint"}}</p>
  81. </div>
  82. </div>
  83. <div class="right-column level-list">
  84. <p class="hint">{{localize "DND5E.AdvancementItemChoiceLevelsHint"}}</p>
  85. {{#each levels as |level|}}
  86. <div class="form-group">
  87. <label>{{level}}</label>
  88. <div class="form-fields">
  89. {{numberInput (lookup ../configuration.choices level) placeholder="0"
  90. name=(concat "configuration.choices." level) min=1 step=1}}
  91. </div>
  92. </div>
  93. {{/each}}
  94. </div>
  95. </form>