<div class="form-group">
    <label for="{{fieldIdPrefix}}action-type">{{localize "PF2E.ActionActionsLabel"}}</label>
    <div class="form-fields">
        <select name="system.actionType.value" id="{{fieldIdPrefix}}action-type">
            {{selectOptions actionTypes selected=data.actionType.value localize=true}}
        </select>
        {{#if (eq data.actionType.value "action")}}
            <select name="system.actions.value" data-dtype="Number">
                {{selectOptions actionsNumber selected=data.actions.value localize=true}}
            </select>
        {{else}}
            <input type="hidden" name="system.actions.value" value="" data-dtype="Number" />
        {{/if}}
    </div>
</div>

<div class="form-group">
    <label for="{{fieldIdPrefix}}frequency">{{localize "PF2E.Frequency.Label"}}</label>
    <div class="form-fields">
        {{#if data.frequency}}
            <div class="frequency">
                <input type="number" name="system.frequency.max" id="{{fieldIdPrefix}}frequency" min="1" max="99" value="{{data.frequency.max}}" />
                <span>{{localize "PF2E.Frequency.per"}}</span>
                <select name="system.frequency.per">
                    {{selectOptions @root.frequencies selected=data.frequency.per localize=true}}
                </select>
                <a data-action="frequency-delete"><i class="fa-solid fa-fw fa-times"></i></a>
            </div>
        {{else}}
            <span class="frequency empty">
                {{localize "PF2E.Frequency.AtWill"}}
                <a data-action="frequency-add">({{localize "PF2E.AddShortLabel"}})</a>
            </span>
        {{/if}}
    </div>
</div>

