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.

105 lines
4.2 KiB

  1. <div class="inventory-details">
  2. <div class="form-group">
  3. <label for="{{fieldIdPrefix}}quantity">{{localize "PF2E.QuantityLabel"}}</label>
  4. <input type="number" name="system.quantity" id="{{fieldIdPrefix}}quantity" value="{{data.quantity}}" />
  5. </div>
  6. {{#if (eq item.type "weapon")}}
  7. <div class="form-group">
  8. <label for="{{fieldIdPrefix}}usage">{{localize "PF2E.Item.Weapon.HandsLabel"}}</label>
  9. <select name="system.usage.value" id="{{fieldIdPrefix}}usage">
  10. {{#select data.usage.value}}
  11. <option value="worngloves">0</option>
  12. <option value="held-in-one-hand">1</option>
  13. <option value="held-in-one-plus-hands">1+</option>
  14. <option value="held-in-two-hands">2</option>
  15. {{/select}}
  16. </select>
  17. </div>
  18. {{else if (nor (eq item.type "armor") (eq item.type "shield"))}}
  19. <div class="form-group">
  20. <label for="{{fieldIdPrefix}}usage">{{localize "PF2E.Usage"}}</label>
  21. <select name="system.usage.value" id="{{fieldIdPrefix}}usage">
  22. {{#select data.usage.value}}
  23. {{#each usages as |label key|}}
  24. <option value="{{key}}">{{localize label}}</option>
  25. {{/each}}
  26. {{/select}}
  27. </select>
  28. </div>
  29. {{/if}}
  30. <div class="form-group">
  31. <label for="{{fieldIdPrefix}}bulk">
  32. {{~localize "PF2E.Item.Physical.Bulk.Label"}}
  33. {{#if adjustedBulkHint}}<i class="fa-solid fa-info-circle" data-tooltip="{{adjustedBulkHint}}"></i>{{/if~}}
  34. </label>
  35. <select
  36. {{#if bulkAdjustment}}class="{{bulkAdjustment}}"{{/if}}
  37. id="{{fieldIdPrefix}}bulk"
  38. data-property="system.bulk.value"
  39. data-dtype="Number"
  40. {{disabled bulkDisabled}}
  41. >
  42. {{#select data.bulk.value}}
  43. {{#each bulks as |bulk|}}
  44. <option value="{{bulk.value}}">{{bulk.label}}</option>
  45. {{/each}}
  46. {{/select}}
  47. </select>
  48. </div>
  49. <div class="form-group">
  50. <label for="{{fieldIdPrefix}}size">{{localize "PF2E.Size"}}</label>
  51. <select id="{{fieldIdPrefix}}size" data-property="system.size">
  52. {{#select data.size}}
  53. {{#each sizes as |name value|}}
  54. <option value="{{value}}">{{localize name}}</option>
  55. {{/each}}
  56. {{/select}}
  57. </select>
  58. </div>
  59. <div class="form-group price">
  60. <label for="{{fieldIdPrefix}}price">
  61. {{localize "PF2E.PriceLabel"}}
  62. {{#if adjustedPriceHint}}<i class="fa-solid fa-info-circle" data-tooltip="{{adjustedPriceHint}}"></i>{{/if}}
  63. </label>
  64. <div class="form-fields">
  65. <input
  66. type="text"
  67. {{#if priceAdjustment}}class="{{priceAdjustment}}"{{/if}}
  68. id="{{fieldIdPrefix}}price"
  69. value="{{item.system.price.value}}"
  70. data-property="system.price.value"
  71. data-value-base="{{basePrice}}"
  72. spellcheck="false"
  73. />
  74. {{#if (eq item.type "consumable")}}
  75. / <input type="number" class="per" name="system.price.per" value="{{item.system.price.per}}" />
  76. {{/if}}
  77. </div>
  78. </div>
  79. {{#if stackGroups}}
  80. <div class="form-group">
  81. <label for="{{fieldIdPrefix}}stack-group">{{localize "PF2E.StackGroupLabel"}}</label>
  82. <select name="system.stackGroup" id="{{filedIdPrefix}}stack-group">
  83. {{#select data.stackGroup}}
  84. <option value="">{{localize "None"}}</option>
  85. {{#each stackGroups as |name type|}}
  86. <option value="{{type}}">{{localize name}}</option>
  87. {{/each}}
  88. {{/select}}
  89. </select>
  90. </div>
  91. {{/if}}
  92. <ol class="item-tags tags">
  93. {{#if otherTags}}
  94. {{#each otherTags as |tag|}}
  95. <li class="tag tag_transparent">{{tag.label}}</li>
  96. {{/each}}
  97. {{/if}}
  98. </ol>
  99. </div>