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

<xf:form action="{{ link('users/banner', $user) }}" upload="true" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:if is="$user.Profile.banner_date">
				<xf:formrow label="{{ phrase('current_profile_banner') }}">
					<xf:profilebanner user="$user" size="l" class="memberProfileBanner--small" />
					<div><xf:checkbox standalone="true"><xf:option name="delete_banner" label="{{ phrase('delete_current_banner') }}" /></xf:checkbox></div>
				</xf:formrow>
			</xf:if>

			<xf:uploadrow name="upload" accept=".gif,.jpeg,.jpg,.jpe,.png"
				label="{{ phrase('upload_new_profile_banner') }}" />
		</div>
		<xf:submitrow icon="save" />
	</div>
</xf:form>