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

<xf:breadcrumb href="{{ link('conversations') }}">{{ phrase('conversations') }}</xf:breadcrumb>
<xf:breadcrumb href="{{ link('conversations', $conversation) }}">{$conversation.title}</xf:breadcrumb>

<xf:form action="{{ link('conversations/edit', $conversation) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="title" value="{$conversation.title}"
				maxlength="{{ max_length($conversation, 'title') }}"
				label="{{ phrase('title') }}" />

			<xf:checkboxrow>
				<xf:option name="open_invite" checked="{{ $conversation.open_invite ? 'checked' : '' }}"
					label="{{ phrase('allow_anyone_in_conversation_to_invite_others') }}" />

				<xf:option name="conversation_locked" checked="{{ $conversation.conversation_open ? '' : 'checked' }}"
					label="{{ phrase('lock_conversation') }}"
					hint="{{ phrase('no_responses_will_be_allowed') }}" />
			</xf:checkboxrow>
		</div>
		<xf:submitrow icon="save" />
	</div>
</xf:form>