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.

131 lines
5.8 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" data-tooltip="{{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" data-tooltip-class="pf2e" data-tooltip-direction="UP">
  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. <div class="editor">
  93. <div class="editor-content">{{{enrichedContent.description}}}</div>
  94. </div>
  95. {{/if}}
  96. </section>
  97. </section>
  98. <!-- Item Details -->
  99. <section class="tab details" data-tab="details" data-tooltip-class="pf2e" data-tooltip-direction="UP">
  100. {{> (lookup . "detailsTemplate")}}
  101. <fieldset class="publication">
  102. <legend>{{localize "PF2E.Publication.Label"}}</legend>
  103. <div class="data">
  104. {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.publication" data=data.publication}}
  105. </div>
  106. </fieldset>
  107. </section>
  108. <!-- Mystification Details -->
  109. {{#if (and isPhysical user.isGM)}}
  110. {{> "systems/pf2e/templates/items/mystify-panel.hbs"}}
  111. {{/if}}
  112. <!-- Rules Elements -->
  113. {{#if (not isVariant)}}
  114. <section class="tab rules" data-tab="rules" data-tooltip-class="pf2e" data-tooltip-direction="UP">
  115. {{!-- Use ~ so that text areas don't add further indentation --}}
  116. {{~> systems/pf2e/templates/items/rules-panel.hbs item=item}}
  117. </section>
  118. {{/if}}
  119. </div>
  120. </div>
  121. </form>