{% extends theme("message/message_layout.html") %}

{% block message_content %}
{% from theme("macros.html") import horizontal_field %}
<form class="form-horizontal" role="form" method="post" name="new">
    <legend>Compose Message</legend>
    {{ form.hidden_tag() }}
    {{ horizontal_field(form.to_user)}}
    {{ horizontal_field(form.subject)}}
    {{ horizontal_field(form.message, rows=7)}}

    <div class="form-group row">
        <div class="col-sm-offset-3 col-lg-9">
            <button class="btn btn-success" type="submit" name="send_message">Send Message</button>
            <button class="btn btn-info" type="submit" name="save_message">Save as Draft</button>
        </div>
    </div>
</form>
{% endblock %}
