<xf:if is="$field.isInsert()">
	<xf:title>{{ phrase('add_content_type_field') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_content_type_field:') }} {$field.content_type}</xf:title>
</xf:if>

<xf:pageaction if="$field.isUpdate()">
	<xf:button href="{{ link('content-types/delete', $field) }}" icon="delete" overlay="true" />
</xf:pageaction>

<xf:form action="{{ link('content-types/save', $field) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="content_type" value="{$field}"
				label="{{ phrase('content_type') }}"
				dir="ltr" />
			<xf:textboxrow name="field_name" value="{$field}"
				label="{{ phrase('field') }}"
				dir="ltr" />
			<xf:textboxrow name="field_value" value="{$field}"
				label="{{ phrase('value') }}"
				dir="ltr" />

			<xf:macro id="addon_macros::addon_edit" arg-addOnId="{$field.addon_id}" />
		</div>

		<xf:hiddenval name="group" value="{$group}" />

		<xf:submitrow sticky="true" icon="save">
			<xf:html>
				<xf:if is="$field.isUpdate()">
					<xf:button href="{{ link('content-types/delete', $field) }}" icon="delete" overlay="true" />
				</xf:if>
			</xf:html>
		</xf:submitrow>
	</div>
</xf:form>