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

<xf:breadcrumb source="$breadcrumbs" />

<xf:form action="{{ $poll.getLink('edit') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:macro template="poll_macros" name="add_edit_inputs" arg-poll="{$poll}"/>
		</div>
		<xf:submitrow icon="save" sticky="true" />
	</div>
</xf:form>

<xf:if is="$poll && $poll.canDelete()">
	<xf:macro template="poll_macros" name="delete_block" arg-poll="{$poll}" />
</xf:if>