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

<xf:form action="{{ link('users/remove-reactions', $user) }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:formrow label="{{ phrase('user') }}">{$user.username}</xf:formrow>
			<xf:formrow rowtype="input"
				label="{{ phrase('remove_reactions_within_last') }}">

				<div class="inputGroup">
					<xf:numberbox name="cutoff[amount]" value="1" min="0" />
					<span class="inputGroup-splitter"></span>
					<xf:select name="cutoff[unit]" value="days" class="input--inline">
						<xf:option value="hours">{{ phrase('hours') }}</xf:option>
						<xf:option value="days">{{ phrase('days') }}</xf:option>
						<xf:option value="weeks">{{ phrase('weeks') }}</xf:option>
						<xf:option value="months">{{ phrase('months') }}</xf:option>
					</xf:select>
				</div>
			</xf:formrow>
		</div>
		<xf:submitrow icon="delete" />
	</div>
</xf:form>