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.

72 lines
3.6 KiB

1 year ago
  1. {{#if ruleEditing}}
  2. <section class="rule-editing">
  3. <div class="editor-placeholder"></div>
  4. <div class="item-controls">
  5. <button type="button" data-action="close">{{localize "PF2E.Item.Rules.Close"}}</button>
  6. <button type="button" data-action="apply">{{localize "PF2E.Item.Rules.Apply"}}</button>
  7. </div>
  8. </section>
  9. {{else}}
  10. <div class="rules">
  11. <div class="nerd-details">
  12. <div class="form-group">
  13. <label for="{{options.id}}-uuid">
  14. <span>{{localize "PF2E.UUID.Label"}}</span>
  15. <i class="fas fa-info-circle small" title="{{localize "PF2E.Item.Rules.Hint.UUID"}}"></i>
  16. </label>
  17. <input id="{{options.id}}-uuid" disabled value="{{item.uuid}}" />
  18. <div class="item-controls">
  19. <a data-clipboard="{{item.uuid}}"><i class="fas fa-clipboard"></i></a>
  20. </div>
  21. </div>
  22. {{#if item.sourceId}}
  23. <div class="form-group">
  24. <label for="{{options.id}}-source-id">
  25. <span>{{localize "PF2E.UUID.SourceId"}}</span>
  26. <i class="fas fa-info-circle small" title="{{localize "PF2E.Item.Rules.Hint.SourceId"}}"></i>
  27. </label>
  28. <input id="{{options.id}}-source-id" disabled value="{{item.sourceId}}" />
  29. <div class="item-controls">
  30. <a data-clipboard="{{item.sourceId}}"><i class="fas fa-clipboard"></i></a>
  31. </div>
  32. </div>
  33. {{/if}}
  34. <div class="form-group">
  35. <label slug="{{options.id}}-slug">
  36. <span>{{localize "PF2E.Slug"}}</span>
  37. <i class="fas fa-info-circle small" title="{{localize "PF2E.Item.Rules.Hint.Slug"}}"></i>
  38. </label>
  39. <input id="{{options.id}}-slug" type="text" name="system.slug" value="{{item.system.slug}}" />
  40. <div class="item-controls">
  41. <a data-action="regenerate-slug" title="{{localize "PF2E.Item.Rules.RegenerateSlug"}}"><i class="fas fa-sync-alt"></i></a>
  42. </div>
  43. </div>
  44. </div>
  45. <div>
  46. {{#each rules.elements}}
  47. <div class="rule-element-header">
  48. {{#with (lookup @root.rules.labels @index)}}<h3{{#if (not recognized)}} class="unrecognized"{{/if}}>{{label}}</h3>{{/with}}
  49. <div class="item-controls">
  50. <a class="edit-rule-element" data-rule-index="{{@index}}"><i class="fas fa-edit"></i></a>
  51. <a class="remove-rule-element" data-rule-index="{{@index}}" title="{{localize "PF2E.Item.Rules.Remove"}}"><i class="fas fa-trash"></i></a>
  52. </div>
  53. </div>
  54. <div class="rule-form" data-key="{{rule.key}}" data-idx="{{index}}">
  55. {{{template}}}
  56. </div>
  57. <hr/>
  58. {{/each}}
  59. <div class="create-rule-element">
  60. <select data-action="select-rule-element">
  61. {{#select rules.selection.selected}}
  62. {{#each rules.selection.types as |value key|}}
  63. <option value="{{key}}">{{value}}</option>
  64. {{/each}}
  65. {{/select}}
  66. </select>
  67. <a class="add-rule-element"><i class="fas fa-plus"></i> {{localize "PF2E.Item.Rules.New"}}</a>
  68. </div>
  69. </div>
  70. </div>
  71. {{/if}}