<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:if is="$profileUsed">
	<div class="block">
		<div class="block-container">
			<div class="block-body">
				<xf:inforow rowtype="confirm">
					{{ phrase('this_payment_profile_cannot_be_deleted_because_it_is_in_use:') }}
					<ul class="listInline listInline--comma">
						<xf:foreach loop="$profileUsed" value="$purchasable"><xf:trim>
							<li><a href="{$purchasable.link}">{$purchasable.title}</a></li>
						</xf:trim></xf:foreach>
					</ul>
				</xf:inforow>
			</div>
		</div>
	</div>
<xf:else />
	<xf:form action="{{ link('payment-profiles/delete', $profile) }}" ajax="true" class="block">
		<div class="block-container">
			<div class="block-body">
				<xf:inforow rowtype="confirm">
					<div class="blockMessage blockMessage--important blockMessage--iconic">{{ phrase('note_deleting_payment_profiles_will_not_affect_any_existing_purchases') }}</div>

					{{ phrase('please_confirm_that_you_want_to_delete_following:') }}
					<strong><a href="{{ link('payment-profiles/edit', $profile) }}">{$profile.title}</a></strong>
				</xf:inforow>
			</div>
			<xf:submitrow rowtype="simple" icon="delete" />
		</div>
	</xf:form>
</xf:if>