<xf:macro id="summary" arg-errors="{{ [] }}" arg-warnings="{{ [] }}">
	<xf:if contentcheck="true">
		<div class="block-row">
			<xf:contentcheck>
				<xf:macro id="addon_action_macros::errors" arg-errors="{$errors}" />
				<xf:macro id="addon_action_macros::warnings" arg-warnings="{$warnings}" />
			</xf:contentcheck>
		</div>
	</xf:if>
</xf:macro>

<xf:macro id="action" arg-errors="{{ [] }}" arg-warnings="{{ [] }}" arg-submit="!">
	<xf:if is="!$errors">
		<xf:if is="$warnings">
			<div class="block-body">
				<xf:checkboxrow rowtype="fullWidth noLabel">
					<xf:option name="confirm" data-xf-init="disabler" data-container=".js-submitDisable">
						<xf:label>{{ phrase('i_have_reviewed_warnings_and_i_still_wish_to_proceed') }}</xf:label>
					</xf:option>
				</xf:checkboxrow>
			</div>
		</xf:if>
		<xf:submitrow submit="{$submit}" rowtype="simple" rowclass="js-submitDisable" />
	</xf:if>
</xf:macro>

<xf:macro id="errors" arg-errors="{{ [] }}">
	<xf:if is="$errors">
		<div class="block-rowMessage block-rowMessage--error block-rowMessage--iconic">
			{{ phrase('following_errors_must_be_resolved_before_continuing:') }}
			<ul>
				<xf:foreach loop="$errors" value="$error">
					<li>{$error}</li>
				</xf:foreach>
			</ul>
		</div>
	</xf:if>
</xf:macro>

<xf:macro id="warnings" arg-warnings="{{ [] }}">
	<xf:if is="$warnings">
		<div class="block-rowMessage block-rowMessage--warning block-rowMessage--iconic">
			{{ phrase('prevent_potential_issues_please_resolve_following_warnings_before_continuing:') }}
			<ul>
				<xf:foreach loop="$warnings" value="$warning">
					<li>{$warning}</li>
				</xf:foreach>
			</ul>
		</div>
	</xf:if>
</xf:macro>