{# begin {templatelocation} #}

<form action="{php_self}" method="post" id="admin-mailform" class="compact">

  <div class="admin_basic">
    <dl class="form_block">
      <dt><label for="admin-mailform-to_group">{lang_to}</label></dt>
      <dd>
        <select name="to_group" id="admin-mailform-to_group" class="uk-select uk-width-auto">
          <option value="">{lang_selectgroup}</option>
          {group_options}
        </select>
      </dd>

      <dt><label for="admin-mailform-fra">{lang_from}</label></dt>
      <dd><input type="text" value="{site_name}" name="fra" class="uk-input size5" id="admin-mailform-fra"{xhtml}></dd>

      <dt><label for="admin-mailform-fraepost">{lang_replyto}</label></dt>
      <dd><input type="text" value="{site_mail}" name="fraepost" class="uk-input size5" id="admin-mailform-fraepost" readonly="readonly"{xhtml}></dd>

      <dt><label for="admin-mailform-subject">{lang_subject}</label></dt>
      <dd><input type="text" value="{subject}" name="subject" class="uk-input size5" id="admin-mailform-subject"{xhtml}></dd>

      <dt><label for="admin-mailform-message">{lang_body}</label></dt>
      <dd><textarea rows="12" cols="44" name="message" id="admin-mailform-message" class="uk-textarea wide">{message}</textarea></dd>

      <dt><label for="admin-mailform-html">{lang_options}</label></dt>
      <dd class="controls_text">
        <label><input type="checkbox" name="html" id="admin-mailform-html" class="uk-checkbox"{html}{xhtml}>{lang_HTML}</label>
        <label><input type="checkbox" name="priority" class="uk-checkbox"{priority}{xhtml}>{lang_urgent}</label>
        <label><input type="checkbox" name="overstyr" class="uk-checkbox"{overstyr}{xhtml}>{lang_ignoreusersettings}</label>
        <p>{lang_mail_templatevars}</p>
      </dd>
    </dl>

    <div class="submit">
      <input type="hidden" name="mail" value="mail"{xhtml}>
      <button type="submit" value="{lang_send}" onclick="return postconfirm()" class="uk-button uk-button-primary">{lang_send}</button>
      <input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
    </div>
  </div>
</form>

{# end {templatelocation} #}
