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.

66 lines
3.0 KiB

1 year ago
  1. <form autocomplete="off" onsubmit="event.preventDefault();">
  2. <p class="notes">{{localize "PF2E.SETTINGS.Homebrew.Instructions"}}</p>
  3. <nav class="sheet-tabs tabs">
  4. <a class="item" data-tab="traits">{{localize "PF2E.SETTINGS.Homebrew.Tabs.Traits"}}</a>
  5. <a class="item" data-tab="damage">{{localize "PF2E.SETTINGS.Homebrew.Tabs.Damage"}}</a>
  6. </nav>
  7. <section class="tab" data-tab="traits"></div>
  8. {{#each traitSettings as |setting|}}
  9. <!-- {{setting.key}} -->
  10. <div class="form-group setting">
  11. <label for="{{setting.key}}">{{localize setting.name}}</label>
  12. <div class="form-fields">
  13. <input type="text" name="{{setting.key}}" class="homebrew" data-dtype="JSON" value="{{json setting.value}}" />
  14. </div>
  15. <p class="notes">{{localize setting.hint}}</p>
  16. </div>
  17. {{/each}}
  18. </section>
  19. <section class="tab" data-tab="damage">
  20. {{#if customDamageTypes}}
  21. <table class="damage-types">
  22. <tr>
  23. <th>Label</th>
  24. <th>Slug</th>
  25. <th>Category</th>
  26. <th>Icon (Font Awesome)</th>
  27. <th class="delete-cell"></th>
  28. </tr>
  29. {{#each customDamageTypes as |type idx|}}
  30. <tr>
  31. <td><input name="damageTypes.{{idx}}.label" type="text" value="{{type.label}}"/></td>
  32. <td>{{type.slug}}</td>
  33. <td>
  34. <select name="damageTypes.{{idx}}.category">
  35. {{#select type.category}}
  36. {{#each @root.damageCategories as |label category|}}
  37. <option value="{{category}}">{{localize label}}</option>
  38. {{/each}}
  39. {{/select}}
  40. </select>
  41. </td>
  42. <td>
  43. <div class="icon-preview">
  44. <input name="damageTypes.{{idx}}.icon" type="text" value="{{type.icon}}"/>
  45. <i class="fas fa-fw {{type.icon}}"></i>
  46. </div>
  47. </td>
  48. <td class="delete-cell"><i class="fas fa-times" data-action="damage-delete" data-idx="{{idx}}"></i></td>
  49. </tr>
  50. {{/each}}
  51. </table>
  52. {{/if}}
  53. <button type="button" data-action="damage-add"><i class="far fa-plus"></i>Add Damage Type</button>
  54. </section>
  55. <div class="form-group buttons">
  56. <button type="submit">
  57. <i class="far fa-save"></i> {{localize "SETTINGS.Save"}}
  58. </button>
  59. <button type="reset" name="reset">
  60. <i class="fas fa-undo"></i> {{localize "PF2E.SETTINGS.ResetChanges"}}
  61. </button>
  62. </div>
  63. </form>