{# begin {templatelocation} #}

{start_block_postacomment}
<div id="commenteditform">

<form action="{form_url}" method="post" id="commentform" class="linear">

  <div class="user_basic">
    <dl>
      <dt class="username">{lang_username}</dt>
      <dd class="username">{cid}
         <input type="hidden" name="order" value="{order}"{xhtml}>
         <input type="hidden" name="format" value="{format}"{xhtml}>
         <input type="hidden" name="cpage" value="{cpage}"{xhtml}>
         <input type="hidden" name="{nprefix}sid" value="{sid}"{xhtml}>
         <input type="hidden" name="{nprefix}pid" value="{pid}"{xhtml}>
         <input type="hidden" name="{nprefix}type" value="{type}"{xhtml}>
         <input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
         {username}<span{hidewhenediting}>&nbsp;<a href="{action_url}" rel="nofollow" class="logoutorcreateaccount">{lang_logoutorcreateaccount}</a></span>
      </dd>
      <dt class="title"><label for="commentform-title">{lang_title}</label></dt>
      <dd class="title"><input type="text" size="32" value="{title}" maxlength="96" name="title" id="commentform-title" class="text"{xhtml}></dd>

      <dt><label for="comment_text">{lang_comment}</label></dt>
      <dd><textarea rows="10" cols="90" name="comment" id="comment_text">{comment}</textarea></dd>
      <dd class="description">{allowed_html}</dd>
      {record_edit}

      <dt><label for="commentform-postmode">{lang_postmode}</label></dt>
      <dd>
        <select name="postmode" id="commentform-postmode">
          {postmode_options}
        </select>
      </dd>
    </dl>

    <dl class="importantstuff">
      <dt>{lang_importantstuff}</dt>
      <dd>
        <ul>
          <li>{lang_instr_line1}</li>
          <li>{lang_instr_line2}</li>
          <li>{lang_instr_line3}</li>
          <li>{lang_instr_line4}</li>
          {!if is_anon}
          <li>{lang_instr_line6}</li>
          {!else}
          <li>{lang_instr_line5}</li>
          {!endif}
        </ul>
      </dd>
    </dl>

    {!if captcha}
    <dl class="form_block">
      <dt></dt>
        <dd>{captcha}</dd>
    </dl>
    {!endif}

    <ul class="submit">
      <li><input type="submit" name="{nprefix}mode" value="{lang_preview}" class="submit"{xhtml}></li>
      <li>
        <input type="hidden" name="formtype" value="{formtype}"{xhtml}>
{!if allow_save}
        <button type="submit" name="{nprefix}mode" value="{lang_save}" class="g-recaptcha"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_save}</button>
        <input type="hidden" name="{nprefix}mode" value="{lang_save}"{xhtml}> {# Needed for Invisible reCaptcha Error message and must be before preview #}
        {recaptcha_v3}
{!endif}
        <input type="submit" value="{lang_cancel}" name="{nprefix}mode"{xhtml}>
{!if allow_delete}
        <button type="submit" name="{nprefix}mode" value="{lang_delete}" class="g-recaptcha" onclick="return confirm('{confirm_message}');"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_delete}</button>
{!endif}
{!if allow_notify}
        <p><input type="checkbox" name="notify"{notify_checked}>{lang_notify}</p>
{!endif}
      </li>
    </ul>
  </div>

</form>

</div>
{end_block}

<!-- BEGIN record_edit -->
<dd><input type="checkbox" name="record_edit" {record_edit_checked} value="1">{lang_record_edit}</dd>
<!-- END record_edit -->

<!-- BEGIN username_anon -->
<input type="text" name="{nprefix}username" size="16" value="{username_value}" maxlength="32"{xhtml}> ({lang_anonymous})
<!-- END username_anon -->

{# end {templatelocation} #}
