<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.content_type}" maxlength="{{ max_length($field, 'content_type') }}"
				label="{{ phrase('content_type') }}"
				dir="ltr" />
			<xf:textboxrow name="field_name" value="{$field.field_name}" maxlength="{{ max_length($field, 'field_name') }}"
				label="{{ phrase('field') }}"
				dir="ltr" />
			<xf:textboxrow name="field_value" value="{$field.field_value}" maxlength="{{ max_length($field, 'field_value') }}"
				label="{{ phrase('value') }}"
				dir="ltr" />

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