|
|
- <fieldset class="basics">
- {{!-- Category --}}
- <div class="form-group">
- <label for="{{fieldIdPrefix}}category">{{localize "PF2E.Category"}}</label>
- <select name="system.category" id="{{fieldIdPrefix}}category">
- {{#select data.category}}
- <option value="deity">{{localize "TYPES.Item.deity"}}</option>
- <option value="pantheon">{{localize "PF2E.Item.Deity.Category.Pantheon"}}</option>
- <option value="philosophy">{{localize "PF2E.Item.Deity.Category.Philosophy"}}</option>
- {{/select}}
- </select>
- <p class="hint">{{localize "PF2E.Item.Deity.Category.Hint"}}</p>
- </div>
-
- {{!-- Divine Sanctification --}}
- {{#unless (eq item.category "philosophy")}}
- <div class="form-group">
- <label for="{{fieldIdPrefix}}sanctification">{{localize "PF2E.Item.Deity.Sanctification.Label"}}</label>
- <select name="system.sanctification" id="{{fieldIdPrefix}}sanctification" data-dtype="JSON">
- {{#select (json data.sanctification)}}
- {{#each sanctifications as |sanctification|}}
- <option value="{{json sanctification.value}}">{{localize sanctification.label}}</option>
- {{/each}}
- {{/select}}
- </select>
- </div>
-
- {{!-- Divine Attribute --}}
- <div class="form-group form-group-trait">
- <label>{{localize "PF2E.Item.Deity.DivineAttribute.Label"}}</label>
- <input type="text" name="system.attribute" value="{{json data.attribute}}" class="pf2e-tagify" data-dtype="JSON" />
- <p class="hint">{{localize "PF2E.Item.Deity.DivineAttribute.Hint"}}</p>
- </div>
-
- {{!-- Divine Skill --}}
- <div class="form-group">
- <label for="{{fieldIdPrefix}}skill">{{localize "PF2E.Item.Deity.DivineSkill"}}</label>
- <select name="system.skill" id="{{fieldIdPrefix}}skill">
- {{#select data.skill}}
- <option value=""></option>
- {{#each skills as |label key|}}
- <option value="{{key}}">{{localize label}}</option>
- {{/each}}
- {{/select}}
- </select>
- </div>
-
- {{!-- Favored Weapon --}}
- <div class="form-group">
- <label>{{localize "PF2E.Item.Deity.FavoredWeapons.Label"}}</label>
- <input name="system.weapons" value="{{json data.weapons}}" class="pf2e-tagify" data-dtype="JSON" />
- <p class="hint">{{localize "PF2E.Item.Deity.FavoredWeapons.Hint"}}</p>
- </div>
- {{/unless}}
-
- {{> "systems/pf2e/templates/items/partials/other-tags.hbs"}}
- </fieldset>
-
- {{#unless (eq item.category "philosophy")}}
- <fieldset>
- <legend>Spellcasting</legend>
-
- {{!-- Primary Domains --}}
- <div class="form-group">
- <label>{{localize "PF2E.Item.Deity.Domains.Primary"}}</label>
- <div class="form-fields">
- <input name="system.domains.primary" class="pf2e-tagify" value="{{json data.domains.primary}}" data-dtype="JSON" />
- </div>
- </div>
-
- {{!-- Alternate Domains --}}
- <div class="form-group">
- <label>{{localize "PF2E.Item.Deity.Domains.Alternate.Label"}}</label>
- <div class="form-fields">
- <input name="system.domains.alternate" class="pf2e-tagify" value="{{json data.domains.alternate}}" data-dtype="JSON" />
- </div>
- <p class="hint">{{localize "PF2E.Item.Deity.Domains.Alternate.Hint"}}</p>
- </div>
-
- {{!-- Divine Font --}}
- <div class="form-group fonts">
- <label>{{localize "PF2E.Item.Deity.DivineFont.Label"}}</label>
- <div class="form-fields">
- {{#each divineFonts as |font|}}
- <label for="{{fieldIdPrefix}}font-{{font-value}}">{{font.label}}</label>
- <input
- type="checkbox"
- name="system.font"
- id="{{fieldIdPrefix}}font-{{font-value}}"
- value="{{font.value}}"
- data-dtype="String"
- {{checked font.selected}}
- />
- {{/each}}
- </div>
- </div>
-
- {{!-- Cleric Spells --}}
- <div class="form-group item-ref-group cleric-spells">
- <label>{{localize "PF2E.Item.Deity.ClericSpells.Label"}}</label>
- <ul class="item-refs{{#if (eq spells.length 0)}} empty{{/if}}">
- {{#each spells as |spell|}}
- <li data-uuid="{{spell.uuid}}">
- <img class="icon" src="{{spell.img}}" />
- <a class="name" data-action="view-spell">{{spell.name}}</a>
- <input type="number" class="level" value="{{spell.level}}" data-level="{{spell.level}}" data-action="update-spell-level" />
- {{#if @root.options.editable}}<a class="remove" data-action="remove-spell"><i class="fa-solid fa-times"></i></a>{{/if}}
- </li>
- {{/each}}
- </ul>
- <p class="hint">{{localize "PF2E.Item.Deity.ClericSpells.Hint"}}</p>
- </div>
- </fieldset>
- {{/unless}}
|