<form autocomplete="off" onsubmit="event.preventDefault();">
    <label>{{localize "PF2E.CastingItemCreateDialog.label"}}</label>
    {{#if (ne itemType "cantripDeck5")}}
        <div class="form-group">
            <p><label>{{localize "PF2E.CastingItemCreateDialog.spellLevelLabel"}}</label>
            <select name="level" data-dtype="Number">
                {{selectOptions validLevels selected=level valueAttr="label"}}
            </select></p>
        </div>
    {{/if}}
    <div class="form-group">
        <p><label>{{localize "PF2E.CastingItemCreateDialog.itemTypeLabel"}}</label>
        <select name="itemType" data-dtype="String">
            {{selectOptions itemTypeOptions selected=itemType localize=true}}
        </select></p>
    </div>
    <button type="submit"><i class="fa-regular fa-floppy-disk"></i>{{localize "PF2E.CastingItemCreateDialog.submit"}}</button>
</form>
