<form method="post"
action="{{action}}"
enctype="multipart/form-data">
<input type="button" value="Add attachment" class="attachment_form_add_button"/>
<ol class="attachment_form_fields" style="display:none">
<li>
<label for="{{name}}">File to upload</label>
<input type="file" class="text" name="{{name}}" id="{{name}}"/>
</li>
<li>
<label> </label>
<input type="submit" value="Attach file"/>
</li>
</ol>
</form>