<div>
<form method="post" action="{{action}}"
enctype="multipart/form-data">
{% if show_subject %}
<input name="subject" style="width:90%"
value="{{value and (value.subject or '(no subject)')}}"/>
{% endif %}
<textarea name="text" style="width:90%">{{(value and 'text' in value) and value['text'] or ''}}</textarea>
<span class="arw"><span></span></span><br/>
<input type="button" value="Add attachment" class="attachment_form_add_button"/>
<ol class="attachment_form_fields" style="display:none">
<li>
<label for="{{att_name}}">File to upload</label>
<input type="file" class="text" name="{{att_name}}" id="{{att_name}}"/>
</li>
</ol>
<div style="clear:both"></div>
<input type="submit" value="{{submit_text}}"/>
</form>
</div>