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.

140 lines
5.9 KiB

1 year ago
  1. <form class="{{cssClass}} flexcol" autocomplete="off">
  2. {{!-- Item Sheet Header --}}
  3. <header class="sheet-header flexrow">
  4. <img class="profile" src="{{item.img}}" data-tooltip="{{item.name}}" data-edit="img"/>
  5. <div class="header-details flexrow">
  6. <h1 class="charname">
  7. <input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'DND5E.SpellName' }}"/>
  8. </h1>
  9. <div class="item-subtitle">
  10. <h4 class="item-type">{{itemType}}</h4>
  11. <span class="item-status">{{itemStatus}}</span>
  12. </div>
  13. <ul class="summary flexrow">
  14. <li>
  15. {{labels.level}}
  16. </li>
  17. <li>
  18. {{labels.school}}
  19. </li>
  20. <li>
  21. <input type="text" name="system.source" value="{{system.source}}" placeholder="{{ localize 'DND5E.Source' }}"/>
  22. </li>
  23. </ul>
  24. </div>
  25. </header>
  26. {{!-- Item Sheet Navigation --}}
  27. <nav class="sheet-navigation tabs" data-group="primary">
  28. <a class="item active" data-tab="description">{{ localize "DND5E.Description" }}</a>
  29. <a class="item" data-tab="details">{{ localize "DND5E.Details" }}</a>
  30. <a class="item" data-tab="effects">{{ localize "DND5E.Effects" }}</a>
  31. </nav>
  32. {{!-- Item Sheet Body --}}
  33. <section class="sheet-body">
  34. {{!-- Description Tab --}}
  35. {{> "dnd5e.item-description"}}
  36. {{!-- Details Tab --}}
  37. <div class="tab details" data-group="primary" data-tab="details">
  38. <h3 class="form-header">{{ localize "DND5E.SpellDetails" }}</h3>
  39. {{!-- Spell Level --}}
  40. <div class="form-group">
  41. <label>{{ localize "DND5E.SpellLevel" }}</label>
  42. <select name="system.level" data-dtype="Number">
  43. {{#select system.level}}
  44. {{#each config.spellLevels as |name lvl|}}
  45. <option value="{{lvl}}">{{name}}</option>
  46. {{/each}}
  47. {{/select}}
  48. </select>
  49. </div>
  50. {{!-- Spell School --}}
  51. <div class="form-group">
  52. <label>{{ localize "DND5E.SpellSchool" }}</label>
  53. <select name="system.school">
  54. {{selectOptions config.spellSchools selected=system.school blank=""}}
  55. </select>
  56. </div>
  57. {{!-- Spell Components --}}
  58. <div class="spell-components form-group stacked">
  59. <label>{{ localize "DND5E.SpellComponents" }}</label>
  60. {{#each spellComponents as |component key|}}
  61. <label class="checkbox">
  62. <input type="checkbox" name="system.components.{{key}}" {{checked (lookup ../system.components key)}}>
  63. {{component.label}}
  64. </label>
  65. {{/each}}
  66. </div>
  67. {{!-- Material Components --}}
  68. <div class="form-group stacked">
  69. <label>{{ localize "DND5E.SpellMaterials" }}</label>
  70. <input class="materials" type="text" name="system.materials.value" value="{{system.materials.value}}"/>
  71. {{#if system.materials.value}}
  72. <div class="spell-materials flexrow">
  73. <label>{{ localize "DND5E.Supply" }}</label>
  74. {{numberInput system.materials.supply name="system.materials.supply" placeholder="0"}}
  75. <label>{{ localize "DND5E.CostGP" }}</label>
  76. {{numberInput system.materials.cost name="system.materials.cost" placeholder="&mdash;"}}
  77. <label>{{ localize "DND5E.Consumed" }}</label>
  78. <input type="checkbox" name="system.materials.consumed" {{checked system.materials.consumed}}/>
  79. </div>
  80. {{/if}}
  81. </div>
  82. {{!-- Preparation Mode --}}
  83. <div class="form-group input-select">
  84. <label>{{ localize "DND5E.SpellPreparationMode" }}</label>
  85. <div class="form-fields">
  86. <label class="checkbox prepared">
  87. {{ localize "DND5E.SpellPrepared" }} <input type="checkbox" name="system.preparation.prepared" {{checked system.preparation.prepared}}/>
  88. </label>
  89. <select name="system.preparation.mode">
  90. {{ selectOptions config.spellPreparationModes selected=system.preparation.mode }}
  91. </select>
  92. </div>
  93. </div>
  94. <h3 class="form-header">{{ localize "DND5E.SpellCastingHeader" }}</h3>
  95. {{!-- Item Activation Template --}}
  96. {{> "dnd5e.item-activation"}}
  97. <h3 class="form-header">{{ localize "DND5E.SpellEffects" }}</h3>
  98. {{!-- Item Action Template --}}
  99. {{> "dnd5e.item-action"}}
  100. {{!-- Spell Level Scaling --}}
  101. <div class="form-group">
  102. <label>{{ localize "DND5E.LevelScaling" }}</label>
  103. <div class="form-fields">
  104. <select name="system.scaling.mode">
  105. {{#select system.scaling.mode}}
  106. {{#each config.spellScalingModes as |name key|}}
  107. <option value="{{key}}">{{name}}</option>
  108. {{/each}}
  109. {{/select}}
  110. </select>
  111. <input type="text" name="system.scaling.formula" value="{{system.scaling.formula}}"
  112. placeholder="{{ localize 'DND5E.ScalingFormula' }}" data-formula-editor/>
  113. </div>
  114. </div>
  115. </div>
  116. {{!-- Effects Tab --}}
  117. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  118. {{> "dnd5e.active-effects"}}
  119. </div>
  120. </section>
  121. </form>