<form autocomplete="off" onsubmit="event.preventDefault();">
    {{> "dnd5e.trait-list" prefix="choices"}}

    {{#if customPath}}
        <div class="form-group stacked">
            <label>{{localize "DND5E.TraitSelectorSpecial"}}</label>
            <input type="text" name="{{customPath}}" value="{{custom}}">
        </div>
    {{/if}}

    {{#if bypassesPath}}
        <h3>{{localize "DND5E.DamagePhysicalBypass"}}</h3>
        <p class="note">{{localize "DND5E.DamagePhysicalBypassHint"}}</p>
        {{> "dnd5e.trait-list" choices=bypasses prefix="bypasses"}}
    {{/if}}

    <button type="submit"><i class="far fa-save"></i> {{localize "DND5E.TraitSave"}}</button>
</form>
