<xf:if is="!$options.poll_id">

	<xf:textboxrow name="options[content_url]" type="url"
		label="{{ phrase('poll_content_url') }}"
		explain="{{ phrase('poll_content_url_explain') }}" />

<xf:elseif is="$poll" />

	<xf:formrow label="{{ phrase('poll_for_content') }}">
		<a href="{$contentLink}" target="_blank">{$contentTitle}</a>
	</xf:formrow>

	<xf:hiddenval name="options[poll_id]">{$poll.poll_id}</xf:hiddenval>

	<xf:checkboxrow explain="{{ phrase('poll_change_content_url_explain') }}">
		<xf:option name="options[change_url]"
			label="{{ phrase('poll_change_content_url:') }}">

			<xf:dependent>
				<xf:textbox name="options[content_url]" type="url" />
			</xf:dependent>
		</xf:option>
	</xf:checkboxrow>

<xf:else />

	<xf:formrow>
		<div class="blockMessage blockMessage--error blockMessage--iconic">{{ phrase('poll_for_this_content_cannot_be_found') }}</div>
	</xf:formrow>

	<xf:textboxrow name="options[content_url]" type="url"
		label="{{ phrase('poll_content_url') }}"
		explain="{{ phrase('poll_content_url_explain') }}" />

</xf:if>