{# begin {templatelocation} #}

{start_block_mailstory2friend}
  <form action="{site_url}/profiles.php" method="post" id="contactauthorform" class="compact">

    <div class="user_basic">
      <dl class="form_block">
        <dt>{lang_title}</dt>
        <dd class="controls_text">{story_link}</dd>

        <dt><label for="contactauthorform-from">{lang_fromname}</label></dt>
        <dd><input type="text" maxlength="96" value="{name}" name="from" id="contactauthorform-from" class="uk-input size4"{xhtml}></dd>

        <dt><label for="contactauthorform-fromemail">{lang_fromemailaddress}</label></dt>
        <dd><input type="text" maxlength="96" value="{email}" name="fromemail" id="contactauthorform-fromemail" class="uk-input size4"{xhtml}></dd>

        <dt><label for="contactauthorform-to">{lang_toname}</label></dt>
        <dd><input type="text" maxlength="96" value="{toname}" name="to" id="contactauthorform-to" class="uk-input size4"{xhtml}></dd>

        <dt><label for="contactauthorform-toemail">{lang_toemailaddress}</label></dt>
        <dd><input type="text" maxlength="96" value="{toemail}" name="toemail" id="contactauthorform-toemail" class="uk-input size4"{xhtml}></dd>

        <dt><label for="contactauthorform-shortmsg">{lang_shortmessage}</label></dt>
        <dd><textarea rows="8" cols="50" name="shortmsg" id="contactauthorform-shortmsg" class="uk-textarea wide">{shortmsg}</textarea></dd>
        <dt{cc_enabled}><label for="contactauthorform-cc">{lang_cc}</label></dt>
        <dd{cc_enabled} class="controls_text"><label><input type="checkbox" name="cc" id="contactauthorform-cc" class="uk-checkbox"{cc}{xhtml}>&nbsp;{lang_cc_description}</label></dd>

      </dl>

      {captcha}

      <p class="description">{lang_warning}</p>

      <div class="submit">
        <input type="hidden" name="sid" value="{story_id}"{xhtml}>
        <input type="hidden" name="what" value="sendstory"{xhtml}>
        <button type="submit" value="{lang_sendmessage}" onclick="return postconfirm();" onkeypress="return postconfirm();" class="uk-button uk-button-primary g-recaptcha"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_sendmessage}</button>
        {recaptcha_v3}
      </div>
    </div>
  </form>
{end_block}

{# end {templatelocation} #}
