<xf:if is="$definition.isInsert()">
	<xf:title>{{ phrase('add_activity_summary_definition') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_activity_summary_definition:') }} {$definition.title}</xf:title>
</xf:if>

<xf:pageaction if="$definition.isUpdate()">
	<xf:button href="{{ link('activity-summary/definitions/delete', $definition) }}" icon="delete" overlay="true" />
</xf:pageaction>

<xf:form action="{{ link('activity-summary/definitions/save', $definition) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="definition_id" value="{$definition}"
				label="{{ phrase('definition_id') }}"
				dir="ltr" />

			<xf:textboxrow name="title" value="{$definition}"
				label="{{ phrase('title') }}" />

			<xf:textarearow name="description" value="{$definition}" autosize="true"
				label="{{ phrase('description') }}" />

			<xf:textboxrow name="definition_class" value="{$definition}"
				label="{{ phrase('definition_class') }}"
				explain="{{ phrase('class_implement_relevant_activity_summary_section_behaviors') }}"
				dir="ltr" />

			<xf:macro id="addon_macros::addon_edit" arg-addOnId="{$definition.addon_id}" />
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>
</xf:form>