Files
modoboa/extensions/webmail/templates/webmail/compose.html
T
Antoine Nguyen 9ddb27573f At last, composing messages with attachments is possible!!
It is a really simple implementation but I think it will be enough for a begining. Users can add multiple attachments with a message, each attachment must not be larger than a customizable limit.

see #38
2011-09-08 09:13:13 +02:00

32 lines
985 B
HTML

{% load i18n %}
<form method="POST" action="{{ posturl }}" id="composemail">
<div id="compose-container">
<div id="mailheader">
{% include "common/genericform.html" %}
<div id="attachments" name="{% url extensions.webmail.views.attachments %}">
<div>
<img src="{{ MEDIA_URL }}pics/attachment.png" />
{% trans "Attachments" %}
</div>
<div id="list">
{% blocktrans count attachments|length as counter %}
{{ counter }} file
{% plural %}
{{ counter }} files
{% endblocktrans %}
<span class="shortlist">{{ short_att_list }}</span>
</div>
</div>
</div>
<div class="spacer"></div>
{% if body %}
<textarea id="id_body" name="id_body" class="editor">{% if bodyheader %}{{ bodyheader }}{% endif %}
{{ body }}
</textarea>
{% else %}
<textarea id="id_body" name="id_body" class="editor"></textarea>
{% endif %}
</div>
</form>