<xf:if is="$isWatched">
	<xf:title>{{ phrase('unwatch_forum') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('watch_forum') }}</xf:title>
</xf:if>

<xf:breadcrumb source="{$forum.getBreadcrumbs()}" />

<xf:form action="{{ link('forums/watch', $forum) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:if is="$isWatched">
				<xf:inforow rowtype="confirm">
					{{ phrase('you_sure_you_want_to_unwatch_this_forum') }}
				</xf:inforow>
				<xf:hiddenval name="stop">1</xf:hiddenval>
			<xf:else />
				<xf:if is="$forum.allowed_watch_notifications != 'none'">
					<xf:radiorow name="notify" value="thread"
						label="{{ phrase('send_notifications_for') }}">

						<xf:option value="thread">{{ phrase('new_threads') }}</xf:option>
						<xf:if is="$forum.allowed_watch_notifications == 'all'">
							<xf:option value="message">{{ phrase('new_messages') }}</xf:option>
						</xf:if>
						<xf:option value="" hint="{{ phrase('no_notifications_forum_watch_description') }}">{{ phrase('dont_send_notifications') }}</xf:option>
					</xf:radiorow>

					<xf:checkboxrow label="{{ phrase('send_notifications_via') }}">
						<xf:option name="send_alert" value="1" selected="true">{{ phrase('alerts') }}</xf:option>
						<xf:option name="send_email" value="1">{{ phrase('emails') }}</xf:option>
					</xf:checkboxrow>
				</xf:if>
			</xf:if>
		</div>
		<xf:if is="$isWatched">
			<xf:submitrow submit="{{ phrase('unwatch') }}" rowtype="simple" icon="notificationsOff" />
		<xf:else />
			<xf:submitrow submit="{{ phrase('watch') }}" icon="notificationsOn" />
		</xf:if>
	</div>
</xf:form>