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

<xf:form action="{{ link('users/delete', $user) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('please_confirm_that_you_want_to_delete_following:') }}
				<strong><a href="{{ link('users/edit', $user) }}">{$user.username}</a></strong>
				<div class="blockMessage blockMessage--important"><b>{{ phrase('note:') }}</b> {{ phrase('this_will_not_remove_any_content_this_user_has_already_created') }}</div>
			</xf:inforow>
			<xf:if is="$user.is_super_admin">
				<xf:passwordboxrow name="visitor_password"
					label="{{ phrase('your_password') }}"
					explain="{{ phrase('you_must_enter_your_current_password_to_validate_this_request') }}" />
			</xf:if>
			<xf:radiorow name="rename">
				<xf:option value="0" selected="true">{{ phrase('do_not_rename_this_user') }}</xf:option>
				<xf:option value="1" label="{{ phrase('rename_this_user_to:') }}">
					<xf:textbox name="rename_to" value="{{ phrase('deleted_member') }} {$user.user_id}" maxlength="max_length($user, 'username')" />
				</xf:option>
				<xf:explain>{{ phrase('user_delete_rename_explain') }}</xf:explain>
			</xf:radiorow>
		</div>
		<xf:submitrow icon="delete" />
	</div>
	<xf:redirect />
</xf:form>