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

<xf:form action="{{ link('moderators/add') }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="username" value="{$username}" type="search" ac="single"
				placeholder="{{ phrase('user_name...') }}"
				label="{{ phrase('moderator_user_name') }}" />

			<xf:radiorow name="type" value="{$type}"
				label="{{ phrase('type_of_moderator') }}">

				<xf:option value="_super" selected="true"
					label="{{ phrase('super_moderator') }}"
					hint="{{ phrase('super_moderator_can_moderate_entire_board') }}" />

				<xf:foreach loop="$typeChoices" key="$contentType" value="$options">
					<xf:option value="{$contentType}" label="{$options.label}">
						<xf:select name="{$options.name}" value="{$options.value}">
							<xf:foreach loop="$options.choices" value="$choice">
								<xf:option value="{$choice.value}" label="{$choice.label}" disabled="{$choice.disabled}" />
							</xf:foreach>
						</xf:select>
					</xf:option>
				</xf:foreach>
			</xf:radiorow>
		</div>
		<xf:submitrow submit="{{ phrase('add_moderator...') }}" />
	</div>
</xf:form>