<commit_before><script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
// ]]>
</script>

<fieldset>
	<!-- IF ERROR --><p class="alert alert-danger">{ERROR}</p><!-- ENDIF -->
	<div class="form-horizontal">
		<!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->
			<!-- IF S_ALLOW_MASS_PM -->
				<!-- IF .to_recipient -->
					<dl>
						<dt><label>{L_TO}:</label></dt>
						<dd>
							<!-- BEGIN to_recipient -->
								<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END to_recipient -->
						</dd>
					</dl>
				<!-- ENDIF -->
				<!-- IF .bcc_recipient -->
					<dl>
						<dt><label>{L_BCC}:</label></dt>
						<dd>
							<!-- BEGIN bcc_recipient -->
								<!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END bcc_recipient -->
						</dd>
					</dl>
				<!-- ENDIF -->
				<!-- IF not S_EDIT_POST -->
					<div class="form-group">
						<div class="col-md-6">
							<div class="input-group">
								<textarea id="username_list" name="username_list" class="form-control" cols="50" rows="1"></textarea>
								<div class="input-group-btn">
									<a class="btn btn-default" href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a>
									<button type="submit" name="add_to" value="{L_ADD}" class="btn btn-default">{L_ADD}</button>
									<button type="submit" name="add_bcc" value="{L_ADD_BCC}" class="btn btn-default">{L_ADD_BCC}</button>
								</div>
							</div>
						</div>
					</div>
				<!-- ENDIF -->
			<!-- ELSE -->
				<dl>
					<dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
					<!-- IF .to_recipient -->
						<dd>
							<!-- BEGIN to_recipient -->
								<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END to_recipient -->
						</dd>
					<!-- ENDIF -->
					<!-- IF not S_EDIT_POST -->
						<dd><input class="form-control" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="btn btn-default" /></dd>
					<!-- ENDIF -->
				</dl>
			<!-- ENDIF -->
			<!-- IF S_GROUP_OPTIONS -->
				<div class="column2">
					<dl>
						<dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="form-control">{S_GROUP_OPTIONS}</select></dd>
					</dl>
				</div>
			<!-- ENDIF -->
			<div class="clear"></div>
		<!-- ENDIF -->
		<!-- IF S_DELETE_ALLOWED -->
			<dl>
				<dt><label for="delete">{L_DELETE_POST}:</label></dt>
				<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
			</dl>
		<!-- ENDIF -->
		<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
			<div class="form-group">
				<label for="icon" class="col-md-2">{L_ICON}:</label>
				<div class="col-md-10">
					<label for="icon" class="radio-inline no-margin post-icon"><input type="radio" class="no-margin-left" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
					<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}" class="radio-inline no-margin post-icon"><input type="radio" class="no-margin-left" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
				</div>
			</div>
		<!-- ENDIF -->
		<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
			<dl style="clear: left;">
				<dt><label for="username">{L_USERNAME}:</label></dt>
				<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="form-control" /></dd>
			</dl>
		<!-- ENDIF -->
		<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
			<div class="form-group">
				<label for="subject" class="col-md-2">{L_SUBJECT}:</label>
				<div class="col-md-10">
					<input type="text" class="form-control" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="form-control autowidth" />
				</div>
			</div>
			<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
				<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
				<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
			<!-- ENDIF -->
		<!-- ENDIF -->
		<div class="form-group">
			<div class="col-md-9">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<!-- INCLUDE posting_buttons.html -->
					</div>
					<div class="panel-body no-padding">
						<div id="message-box">
							<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="form-control">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
						</div>
					</div>
				</div>
			</div>
			<div id="smiley-box" class="col-md-3">
				<div class="col-sm-6 col-md-12">
					<!-- IF S_SMILIES_ALLOWED and .smiley -->
						<strong>{L_SMILIES}</strong><br />
						<!-- BEGIN smiley -->
							<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
						<!-- END smiley -->
					<!-- ENDIF -->
					<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
						<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
					<!-- ENDIF -->
				</div>
				<div class="col-sm-6 col-md-12">
					<!-- IF BBCODE_STATUS -->
						<div class="visible-lg"><!-- IF .smiley --><hr /><!-- ENDIF --></div>
						{BBCODE_STATUS}<br />
						<!-- IF S_BBCODE_ALLOWED -->
							{IMG_STATUS}<br />
							{FLASH_STATUS}<br />
							{URL_STATUS}<br />
						<!-- ENDIF -->
						{SMILIES_STATUS}
					<!-- ENDIF -->
					<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
						<!-- IF S_DISPLAY_REVIEW --><hr /><!-- ENDIF -->
						<!-- IF S_EDIT_DRAFT --><strong><a href="{S_UCP_ACTION}">{L_BACK_TO_DRAFTS}</a></strong><!-- ENDIF -->
						<!-- IF S_DISPLAY_REVIEW --><strong><a href="#review">{L_TOPIC_REVIEW}</a></strong><!-- ENDIF -->
					<!-- ENDIF -->
				</div>
			</div>
		</div>
	</div>
</fieldset>
<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->
	<!-- IF S_HAS_ATTACHMENTS -->
		<div class="row well">
			<h3>{L_POSTED_ATTACHMENTS}</h3>
			<fieldset class="fields2">
				<!-- BEGIN attach_row -->
					<dl>
						<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
						<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="form-control">{attach_row.FILE_COMMENT}</textarea></dd>
						<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
						<dd style="margin-top: 5px;">
							<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');" class="btn btn-default" />&nbsp; <!-- ENDIF -->
							<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="btn btn-default" />
						</dd>
					</dl>
					{attach_row.S_HIDDEN}
					<!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
				<!-- END attach_row -->
			</fieldset>
		</div>
	<!-- ENDIF -->
	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="submit">
			<fieldset class="submit-buttons">
				{S_HIDDEN_ADDRESS_FIELD}
				{S_HIDDEN_FIELDS}
				<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="btn btn-warning" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
				<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" class="btn btn-warning" />&nbsp; <!-- ENDIF -->
				<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="btn btn-default"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
				<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="btn btn-primary default-submit-action" />
			</fieldset>
		</div>
	<!-- ENDIF -->
	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="opt_tabs">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#options-tab" data-toggle="tab"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li><a href="#attach-tab" data-toggle="tab"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li><a href="#poll-tab" data-toggle="tab"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
	<!-- ENDIF -->
	<div class="tab-content well post-tabs">
		<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
			<div class="tab-pane active" id="options-tab">
				<fieldset class="fields1">
					<!-- IF S_BBCODE_ALLOWED -->
						<div>
							<div class="checkbox">
								<label for="disable_bbcode">
									<input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}
								</label>
							</div>
						</div>
					<!-- ENDIF -->
					<!-- IF S_SMILIES_ALLOWED -->
						<div>
							<div class="checkbox">
								<label for="disable_smilies"><commit_msg>Editor button fix<commit_after><script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
// ]]>
</script>

<fieldset>
	<!-- IF ERROR --><p class="alert alert-danger">{ERROR}</p><!-- ENDIF -->
	<div class="form-horizontal">
		<!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->
			<!-- IF S_ALLOW_MASS_PM -->
				<!-- IF .to_recipient -->
					<dl>
						<dt><label>{L_TO}:</label></dt>
						<dd>
							<!-- BEGIN to_recipient -->
								<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END to_recipient -->
						</dd>
					</dl>
				<!-- ENDIF -->
				<!-- IF .bcc_recipient -->
					<dl>
						<dt><label>{L_BCC}:</label></dt>
						<dd>
							<!-- BEGIN bcc_recipient -->
								<!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END bcc_recipient -->
						</dd>
					</dl>
				<!-- ENDIF -->
				<!-- IF not S_EDIT_POST -->
					<div class="form-group">
						<div class="col-md-6">
							<div class="input-group">
								<textarea id="username_list" name="username_list" class="form-control" cols="50" rows="1"></textarea>
								<div class="input-group-btn">
									<a class="btn btn-default" href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a>
									<button type="submit" name="add_to" value="{L_ADD}" class="btn btn-default">{L_ADD}</button>
									<button type="submit" name="add_bcc" value="{L_ADD_BCC}" class="btn btn-default">{L_ADD_BCC}</button>
								</div>
							</div>
						</div>
					</div>
				<!-- ENDIF -->
			<!-- ELSE -->
				<dl>
					<dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
					<!-- IF .to_recipient -->
						<dd>
							<!-- BEGIN to_recipient -->
								<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
								<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
								<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="btn btn-danger btn-mini" />&nbsp;<!-- ENDIF -->
							<!-- END to_recipient -->
						</dd>
					<!-- ENDIF -->
					<!-- IF not S_EDIT_POST -->
						<dd><input class="form-control" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="btn btn-default" /></dd>
					<!-- ENDIF -->
				</dl>
			<!-- ENDIF -->
			<!-- IF S_GROUP_OPTIONS -->
				<div class="column2">
					<dl>
						<dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="form-control">{S_GROUP_OPTIONS}</select></dd>
					</dl>
				</div>
			<!-- ENDIF -->
			<div class="clear"></div>
		<!-- ENDIF -->
		<!-- IF S_DELETE_ALLOWED -->
			<dl>
				<dt><label for="delete">{L_DELETE_POST}:</label></dt>
				<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
			</dl>
		<!-- ENDIF -->
		<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
			<div class="form-group">
				<label for="icon" class="col-md-2">{L_ICON}:</label>
				<div class="col-md-10">
					<label for="icon" class="radio-inline no-margin post-icon"><input type="radio" class="no-margin-left" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
					<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}" class="radio-inline no-margin post-icon"><input type="radio" class="no-margin-left" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
				</div>
			</div>
		<!-- ENDIF -->
		<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
			<dl style="clear: left;">
				<dt><label for="username">{L_USERNAME}:</label></dt>
				<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="form-control" /></dd>
			</dl>
		<!-- ENDIF -->
		<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
			<div class="form-group">
				<label for="subject" class="col-md-2">{L_SUBJECT}:</label>
				<div class="col-md-10">
					<input type="text" class="form-control" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="form-control autowidth" />
				</div>
			</div>
			<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
				<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
				<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
			<!-- ENDIF -->
		<!-- ENDIF -->
		<div class="form-group">
			<div class="col-md-9">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<!-- INCLUDE posting_buttons.html -->
					</div>
					<div class="panel-body no-padding">
						<div id="message-box">
							<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="form-control">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
						</div>
					</div>
				</div>
			</div>
			<div id="smiley-box" class="col-md-3">
				<div class="col-sm-6 col-md-12">
					<!-- IF S_SMILIES_ALLOWED and .smiley -->
						<strong>{L_SMILIES}</strong><br />
						<!-- BEGIN smiley -->
							<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
						<!-- END smiley -->
					<!-- ENDIF -->
					<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
						<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
					<!-- ENDIF -->
				</div>
				<div class="col-sm-6 col-md-12">
					<!-- IF BBCODE_STATUS -->
						<div class="visible-lg"><!-- IF .smiley --><hr /><!-- ENDIF --></div>
						{BBCODE_STATUS}<br />
						<!-- IF S_BBCODE_ALLOWED -->
							{IMG_STATUS}<br />
							{FLASH_STATUS}<br />
							{URL_STATUS}<br />
						<!-- ENDIF -->
						{SMILIES_STATUS}
					<!-- ENDIF -->
					<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
						<!-- IF S_DISPLAY_REVIEW --><hr /><!-- ENDIF -->
						<!-- IF S_EDIT_DRAFT --><strong><a href="{S_UCP_ACTION}">{L_BACK_TO_DRAFTS}</a></strong><!-- ENDIF -->
						<!-- IF S_DISPLAY_REVIEW --><strong><a href="#review">{L_TOPIC_REVIEW}</a></strong><!-- ENDIF -->
					<!-- ENDIF -->
				</div>
			</div>
		</div>
	</div>
</fieldset>
<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->
	<!-- IF S_HAS_ATTACHMENTS -->
		<div class="row well">
			<h3>{L_POSTED_ATTACHMENTS}</h3>
			<fieldset class="fields2">
				<!-- BEGIN attach_row -->
					<dl>
						<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
						<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="form-control">{attach_row.FILE_COMMENT}</textarea></dd>
						<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
						<dd style="margin-top: 5px;">
							<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');" class="btn btn-default" />&nbsp; <!-- ENDIF -->
							<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="btn btn-default" />
						</dd>
					</dl>
					{attach_row.S_HIDDEN}
					<!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
				<!-- END attach_row -->
			</fieldset>
		</div>
	<!-- ENDIF -->
	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="submit">
			<fieldset class="submit-buttons">
				{S_HIDDEN_ADDRESS_FIELD}
				{S_HIDDEN_FIELDS}
				<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="btn btn-warning" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
				<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" class="btn btn-warning" />&nbsp; <!-- ENDIF -->
				<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="btn btn-primary"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
				<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="btn btn-success default-submit-action" />
			</fieldset>
		</div>
	<!-- ENDIF -->
	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="opt_tabs">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#options-tab" data-toggle="tab"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li><a href="#attach-tab" data-toggle="tab"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li><a href="#poll-tab" data-toggle="tab"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
	<!-- ENDIF -->
	<div class="tab-content well post-tabs">
		<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
			<div class="tab-pane active" id="options-tab">
				<fieldset class="fields1">
					<!-- IF S_BBCODE_ALLOWED -->
						<div>
							<div class="checkbox">
								<label for="disable_bbcode">
									<input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}
								</label>
							</div>
						</div>
					<!-- ENDIF -->
					<!-- IF S_SMILIES_ALLOWED -->
						<div>
							<div class="checkbox">
								<label for="disable_smilies">
{'fraction_non_alphanumeric': 0.23038907359151767, 'fraction_numerical': 0.006110162638152575, 'mean_word_length': 3.2406172604305583, 'pattern_counts': {'":': 0, '<': 729, '<?xml version=': 0, '>': 729, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2947826', 'n_tokens_mistral': 9928, 'n_tokens_neox': 8011, 'n_words': 1413}