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.

90 lines
4.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <form autocomplete="off" spellcheck="off">
  2. <h2>{{localize header}}</h2>
  3. <section class="entries">
  4. <section class="new entry">
  5. <div class="form-group">
  6. <label for="{{options.id}}-new-type">{{localize "PF2E.Actor.IWREditor.Type"}}</label>
  7. <div class="form-fields">
  8. <select id="{{options.id}}-new-type" class="iwr-type" data-property="type">
  9. <option value=""></option>
  10. {{selectOptions types localize=true sort=true}}
  11. </select>
  12. {{#unless (eq category "immunities")}}
  13. <input type="number" min="1" data-property="value" placeholder="5" />
  14. {{/unless}}
  15. <a class="form-action" data-action="add" data-tooltip="Save"><i class="fa-solid fa-fw fa-floppy-disk"></i></a>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label for="{{@root.options.id}}-new-exceptions">{{localize "PF2E.Actor.IWREditor.Exceptions"}}</label>
  20. <div class="form-fields">
  21. <input type="text" id="{{@root.options.id}}-new-exceptions" class="pf2e-tagify" data-property="exceptions" />
  22. </div>
  23. </div>
  24. {{#if (eq @root.category "resistances")}}
  25. <div class="form-group">
  26. <label for="{{@root.options.id}}-new-double-vs">{{localize "PF2E.Actor.IWREditor.DoubleVs"}}</label>
  27. <div class="form-fields">
  28. <input type="text" id="{{@root.options.id}}-new-double-vs" class="pf2e-tagify" data-property="doubleVs" />
  29. </div>
  30. </div>
  31. {{/if}}
  32. </section>
  33. </section>
  34. {{#if list}}
  35. <hr />
  36. <section class="entries">
  37. {{#each list as |iwr index|}}
  38. <section class="entry"{{#if iwr.source}} data-synthetic="true"{{/if}}>
  39. <div class="form-group">
  40. <label for="{{@root.options.id}}-{{index}}-type">{{localize "PF2E.Actor.IWREditor.Type"}}</label>
  41. <div class="form-fields">
  42. <select id="{{@root.options.id}}-{{index}}-type" class="iwr-type" data-property="type" {{disabled iwr.source}}>
  43. {{#if iwr.source}}
  44. <option value="{{iwr.type}}" selected>{{iwr.typeLabel}}</option>
  45. {{else}}
  46. {{selectOptions @root.types selected=iwr.type localize=true sort=true}}
  47. {{/if}}
  48. </select>
  49. {{#unless (eq @root.category "immunities")}}
  50. <input type="number" min="1" value="{{iwr.value}}" data-property="value" placeholder="5" {{disabled iwr.source}} />
  51. {{/unless}}
  52. {{#if iwr.source}}
  53. <span class="synthetic-source">
  54. <i class="fa-solid fa-fw fa-info-circle" data-tooltip="{{iwr.source}}" data-tooltip-direction="UP"></i>
  55. </span>
  56. {{else}}
  57. <a class="form-action" data-action="remove">
  58. <i class="fa-solid fa-fw fa-times" data-tooltip="Delete"></i>
  59. </a>
  60. {{/if}}
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label for="{{@root.options.id}}-{{index}}-exceptions">{{localize "PF2E.Actor.IWREditor.Exceptions"}}</label>
  65. <div class="form-fields">
  66. <input type="text" id="{{@root.options.id}}-{{index}}-exceptions" value="{{json iwr.exceptions}}" class="pf2e-tagify" data-property="exceptions" {{disabled iwr.source}} />
  67. </div>
  68. </div>
  69. {{#if (eq @root.category "resistances")}}
  70. <div class="form-group">
  71. <label for="{{@root.options.id}}-{{index}}-double-vs">{{localize "PF2E.Actor.IWREditor.DoubleVs"}}</label>
  72. <div class="form-fields">
  73. <input type="text" id="{{@root.options.id}}-{{index}}-double-vs" value="{{json iwr.doubleVs}}" class="pf2e-tagify" data-property="doubleVs" {{disabled iwr.source}} />
  74. </div>
  75. </div>
  76. {{/if}}
  77. </section>
  78. {{/each}}
  79. </section>
  80. {{/if}}
  81. <input type="hidden" name="system.attributes.{{category}}", data-dtype="JSON" value="{{json sourceData}}" />
  82. </form>