<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.definition_id}"
				maxlength="{{ max_length($definition, 'definition_id') }}"
				label="{{ phrase('definition_id') }}"
				dir="ltr" />

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

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

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

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