<%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%def name="title()">${_("Message %s") % c.page_user.name}</%def>

<%def name="breadcrumbs()">
    ${h.user.breadcrumbs(c.page_user)|n} &raquo; ${_("Message %s") % c.page_user.name}
</%def>

<%block name="main_content">
  <form name="create_message" class="inplace" method="POST" action="${h.entity_url(c.page_user, instance=c.instance, member='message')}">
      ${h.field_token()|n}
      <div class="page_title">
          <input autofocus="autofocus" class="title" name="subject" placeholder="${_('Subject')}" />
      </div>

      <div class="mainbar">
          <textarea class="description" name="body" placeholder="${_('Dear %s, ...') % c.page_user.name}"></textarea>
      </div>

      <div style="clear:both;"></div>

      <p class="help-block">${_("Please note that your e-mail address may be included in this message to give the recipient a method to reply to you.")}</p>

      <div class="mainbar">
          ${components.savebox(h.base_url("/user/%s" % c.page_user.user_name), save_text=_("Send"))}
      </div>
  </form>
</%block>
