<fieldset name="triggershistoryfields" class="panel">
    <fieldset>
        <div><@form.datagrid name="triggershistory" columns=["eventId", "trigger", "status", "starttime", "endtime", "runtime", "action"]; col><@i18n.message key="Triggers.column.${col}" /></@form.datagrid></div>

        <div class="viewpane-toolbar">
            <div class="toolbar-selection">
                <@form.button name="purge"><@i18n.message key="Triggers.button.purge" /></@>
                <@form.button name="delete"><@i18n.message key="Triggers.button.delete" /></@>
            </div>
            <div class="toolbar-management">
                <@form.button name="view"><@i18n.message key="Triggers.button.view" /></@>
                <@form.button name="pause"><@i18n.message key="Triggers.button.pause" /></@>
                <@form.button name="resume"><@i18n.message key="Triggers.button.resume" /></@>
                <@form.button name="rerun"><@i18n.message key="Triggers.button.rerun" /></@>
                <@form.button name="kill"><@i18n.message key="Triggers.button.kill" /></@>
            </div>
        </div>
    </fieldset>
</fieldset>


<@form.dialog id="d-trigger-state-clear" title=i18n.text("Triggers.ClearStateDialog.title")>
    <fieldset name="cleartriggerstatefields" class="x-large">
        <@form.fields_title title=i18n.text("Triggers.ClearStateDialog.info.short") description=i18n.text("Triggers.ClearStateDialog.info.long")/>
        <div><@form.number name="period" maxlength="8"><@i18n.message key="Triggers.label.recentTriggerExpirationPeriod" /></@>&nbsp;<span><@i18n.message key="Triggers.label.recentTriggerExpirationPeriodUnit" /></span></div>
    </fieldset>
</@form.dialog>

<@form.dialog id="d-trigger-recent" title=i18n.text("Triggers.StateDialog.title")>
    <@form.fields name="recenttriggerstatefields" title=i18n.text("Triggers.StateDialog.info.short") description=i18n.text("Triggers.StateDialog.info.long")>
        <dl class="group">
            <dt><@i18n.message key="Triggers.StateDialog.label.eventId" /></dt><dd><code aria-label="event-id"></code></dd>
            <dt><@i18n.message key="Triggers.StateDialog.label.eventType" /></dt><dd><code aria-label="event-type"></code></dd>
            <dt><@i18n.message key="Triggers.StateDialog.label.triggerName" /></dt><dd><code aria-label="trigger-name"></code></dd>
            <dt><@i18n.message key="Triggers.StateDialog.label.startTime" /></dt><dd><code aria-label="start-time"></code></dd>
            <dt><@i18n.message key="Triggers.StateDialog.label.endTime" /></dt><dd><code aria-label="end-time"></code></dd>
            <dt><@i18n.message key="Triggers.StateDialog.label.status" /></dt><dd><code aria-label="status"></code></dd>
        </dl>
        <div>
            <label><@i18n.message key="Triggers.StateDialog.label.actionHistory" /></label>
            <p><@form.datagrid name="action-history" columns=["action", "status", "actionMessage", "triggerError", "startTime", "endTime"] height="150px"; col><@i18n.message key="Triggers.StateDialog.column.${col}" /></@></p>
        </div>
        <div>
            <label><@i18n.message key="Triggers.StateDialog.label.eventVariables" /></label>
            <p><@form.datagrid name="event-parameters" columns=[] height="170px"/></p>
        </div>
    </@form.fields>
</@form.dialog>