{# begin {templatelocation} #}

<form action="{site_url}/submit.php" method="post" id="submitstory" class="compact">

  <div class="user_basic">
    <dl>
      <dt>{lang_username}</dt>
      <dd>{story_username}
        <ul class="navi">
          <li><a href="{status_url}" rel="nofollow">{lang_loginout}</a></li>
          <li>{create_account}</li>
        </ul>
      </dd>

      <dt><label for="submitstory-title">{lang_title}</label></dt>
      <dd><input type="text" size="36" maxlength="96" value="{story_title}" name="title" id="submitstory-title" class="text"{xhtml}></dd>

      <dt><label for="submitstory-tid">{lang_topic}</label></dt>
      <dd>{topic_selection}</dd>

      <dt{hide_meta}><label for="admin-storyeditor-metadescription">{lang_metadescription}</label></dt>
      <dd{hide_meta}><textarea cols="45" rows="2" name="meta_description" id="admin-storyeditor-metadescription">{meta_description}</textarea></dd>

      <dt{hide_meta}><label for="admin-storyeditor-metakeywords">{lang_metakeywords}</label></dt>
      <dd{hide_meta}><textarea cols="45" rows="2" name="meta_keywords" id="admin-storyeditor-metakeywords">{meta_keywords}</textarea></dd>

      <dt><label for="introtext">{lang_introtext}</label></dt>
      <dd><textarea cols="45" rows="15" name="introtext" id="introtext">{story_introtext}</textarea></dd>

      <dt><label for="bodytext">{lang_bodytext}</label></dt>
      <dd><textarea cols="45" rows="15" name="bodytext" id="bodytext">{story_bodytext}</textarea></dd>

      <dt><label for="submitstory-postmode">{lang_postmode}</label></dt>
      <dd>
        <select name="postmode" id="submitstory-postmode">
          {story_postmode_options}
        </select>
      </dd>
      <dd class="description">{allowed_html}</dd>
    </dl>

    {captcha}

    <ul class="submit">
      <li><input name="mode" type="submit" value="{lang_preview}" class="submit"{xhtml}></li>
      <li>
        <input type="hidden" name="type" value="story"{xhtml}>
        <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
        <input type="hidden" name="sid" value="{story_sid}"{xhtml}>
        <input type="hidden" name="date" value="{story_date}"{xhtml}>
        {!if allow_save}
        <button type="submit" name="mode" value="{lang_save}" class="g-recaptcha"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_save}</button>
        <input type="hidden" name="mode" value="{lang_save}"{xhtml}>
        {recaptcha_v3}
        {!endif}
      </li>
    </ul>
  </div>
</form>

{# end {templatelocation} #}
