<xf:title>{{ phrase('edit_provider:') }} {$provider.title}</xf:title>

<xf:if is="{{ $provider.isDeprecated() }}">
	<div class="blockMessage blockMessage--error blockMessage--iconic">
		{{ phrase('two_step_provider_is_deprecated_admin') }}
	</div>
</xf:if>

<xf:if is="{{ !$provider.canEdit() }}">
	<div class="blockMessage blockMessage--important blockMessage--iconic">
		{{ phrase('only_limited_fields_in_item_may_be_edited') }}
	</div>
</xf:if>

<xf:form action="{{ link('two-step/save', $provider) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:formrow label="{{ phrase('provider_id') }}">
				{$provider.provider_id}
			</xf:formrow>

			<xf:formrow label="{{ phrase('provider_class') }}">
				{$provider.provider_class}
			</xf:formrow>

			<xf:formrow label="{{ phrase('title') }}">
				{$provider.title}
			</xf:formrow>

			<xf:formrow label="{{ phrase('description') }}">
				{$provider.description}
			</xf:formrow>

			<xf:macro id="display_order_macros::row"
				arg-name="priority" arg-value="{$provider}" />

			<xf:if contentcheck="true">
				<hr class="formRowSep" />
				<xf:contentcheck>
					{$provider.renderOptions()|raw}
				</xf:contentcheck>
			</xf:if>
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>
</xf:form>