byceps/byceps

View on GitHub
byceps/blueprints/site/user_message/templates/site/user_message/create_form.html

Summary

Maintainability
Test Coverage
{% extends 'layout/base.html' %}
{% from 'macros/forms.html' import form_buttons, form_field %}
{% from 'macros/user.html' import render_user_avatar_and_link %}
{% set simple_layout = true %}
{% set current_page = 'user_message' %}
{% set page_title = _('Send message') %}

{% block body %}

  <h1 class="title">{{ _('Send message') }}</h1>

  <p style="margin-top: 2rem;">{{ _('You can send a message to the person using this form.') }}</p>
  <p>{{ _('They will get an email with your message text. Your email address will <em>not</em> be exposed, though.') }}</p>
  <p>{{ _('The person can reply to you using the contact form linked on your profile page.') }}</p>

  <form action="{{ url_for('.create', recipient_id=recipient.id) }}" method="post">
    <div class="main-body-box">
      <label class="form-label">{{ _('Recipient') }}</label>
      <div class="mb">
        {{ render_user_avatar_and_link(recipient, size=20) }}
      </div>
      {{ form_field(form.body, autofocus='autofocus') }}
    </div>

    {{ form_buttons(_('Send')) }}
  </form>

{%- endblock %}