All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.

130 lines
5.5 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 year ago
  1. <form class="{{cssClass}}" autocomplete="off">
  2. <!-- ITEM SHEET HEADER -->
  3. <header class="sheet-header">
  4. {{!-- Source image in case of change during data preparation --}}
  5. <img src="{{item._source.img}}" data-edit="img" />
  6. <div class="details">
  7. {{!-- Likewise with source name --}}
  8. <input
  9. name="name"
  10. type="text"
  11. value="{{item._source.name}}"
  12. placeholder="{{localize "PF2E.ItemNamePlaceholder"}}"
  13. spellcheck="false"
  14. aria-label="{{localize "PF2E.ItemNamePlaceholder"}}"
  15. />
  16. {{#if (and item.actionCost (not (eq item.type "action")))}}
  17. <span class="feat-action-cost">
  18. {{{actionGlyph item.actionCost}}}
  19. </span>
  20. {{/if}}
  21. {{#if itemType}}
  22. <span class="level">
  23. {{#if adjustedLevelHint}}<i class="fa-solid fa-info-circle small" title="{{adjustedLevelHint}}"></i>{{/if}}
  24. <span>{{itemType}}</span>
  25. <input
  26. type="number"
  27. {{#if adjustedLevelHint}}class="adjusted"{{/if}}
  28. {{#if isPhysical}}data-property="system.level.value"{{else}}name="system.level.value"{{/if}}
  29. required="true"
  30. min="0"
  31. value="{{data.level.value}}"
  32. aria-label="{{localize "PF2E.LevelLabel"}}"
  33. />
  34. </span>
  35. {{/if}}
  36. <template class="traits-extra">
  37. {{#if item.rarity}}
  38. <select class="tag rarity {{item.rarity}}" data-property="system.traits.rarity" data-base-value="{{item._source.system.traits.rarity}}">
  39. {{#select item.rarity}}
  40. {{#each rarities as |label key|}}
  41. <option value="{{key}}">{{localize label}}</option>
  42. {{/each}}
  43. {{/select}}
  44. </select>
  45. {{/if}}
  46. </template>
  47. <!-- showTraits {{showTraits}} -->
  48. {{#if showTraits}}
  49. <input class="paizo-style tags" name="system.traits.value" value="{{json traitTagifyData}}" data-dtype="JSON"
  50. {{#if (eq data.traits.value.length 0)}}placeholder="{{localize "PF2E.Traits"}}"{{/if}} />
  51. {{else if rarity}}
  52. <div class="paizo-style tags"></div>
  53. {{/if}}
  54. </div>
  55. </header>
  56. <nav class="sheet-navigation">
  57. {{#if hasSidebar}}
  58. <h4 class="sidebar-summary">{{sidebarTitle}}</h4>
  59. {{/if}}
  60. <h4 class="sheet-tabs tabs" data-tab-container="primary">
  61. <a class="list-row" data-tab="description">{{localize "PF2E.ItemDescription"}}</a>
  62. <a class="list-row" data-tab="details">{{localize "PF2E.ItemDetails"}}</a>
  63. {{#if (and isPhysical user.isGM)}}
  64. <a class="list-row" data-tab="mystification">{{localize "PF2E.ItemMystification"}}</a>
  65. {{/if}}
  66. {{#if (and enabledRulesUI (not isVariant))}}
  67. <a class="list-row" data-tab="rules">{{localize "PF2E.Item.Rules.Tab"}}</a>
  68. {{/if}}
  69. </h4>
  70. </nav>
  71. <!-- ITEM SHEET CONTENT -->
  72. <div class="sheet-content">
  73. <!-- ITEM SHEET SIDEBAR -->
  74. {{#if hasSidebar}}
  75. <section class="sidebar">
  76. {{> (lookup . "sidebarTemplate")}}
  77. </section>
  78. {{/if}}
  79. <!-- ITEM SHEET BODY -->
  80. <div class="sheet-body">
  81. <!-- Item Description -->
  82. <section class="tab description" data-tab="description">
  83. {{#if user.isGM}}
  84. <section class="editor-container gm-notes{{#if enrichedContent.gmNotes}} has-content{{/if}}">
  85. {{editor enrichedContent.gmNotes target="system.description.gm" button=true owner=owner editable=editable}}
  86. </section>
  87. {{/if}}
  88. <section class="main editor-container">
  89. {{#if (not isVariant)}}
  90. {{editor enrichedContent.description target="system.description.value" button=true owner=owner editable=editable}}
  91. {{else}}
  92. {{{enrichedContent.description}}}
  93. {{/if}}
  94. </section>
  95. </section>
  96. <!-- Item Details -->
  97. <section class="tab details" data-tab="details">
  98. {{> (lookup . "detailsTemplate")}}
  99. <fieldset class="publication">
  100. <legend>Publication</legend>
  101. <div class="data">
  102. {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.publication" data=data.publication}}
  103. </div>
  104. </fieldset>
  105. </section>
  106. <!-- Mystification Details -->
  107. {{#if (and isPhysical user.isGM)}}
  108. {{> "systems/pf2e/templates/items/mystify-panel.hbs"}}
  109. {{/if}}
  110. <!-- Rules Elements -->
  111. {{#if (not isVariant)}}
  112. <section class="tab rules" data-tab="rules">
  113. {{!-- Use ~ so that text areas don't add further indentation --}}
  114. {{~> systems/pf2e/templates/items/rules-panel.hbs item=item}}
  115. </section>
  116. {{/if}}
  117. </div>
  118. </div>
  119. </form>