diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-06-24 16:48:35 -0400 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-06-24 16:48:35 -0400 |
commit | 135667fb2cc820abe02826e378a68f3aead527af (patch) | |
tree | 9f0af1fce2ddd1180e939d257d1e15a49373b327 | |
parent | 3a92168e52989e39bc3e0d553e79ae278c7f95bf (diff) | |
download | hyperkitty-135667fb2cc820abe02826e378a68f3aead527af.tar.gz hyperkitty-135667fb2cc820abe02826e378a68f3aead527af.tar.xz hyperkitty-135667fb2cc820abe02826e378a68f3aead527af.zip |
Moved add_tag_form to templates/threads/
-rw-r--r-- | templates/threads/add_tag_form.html (renamed from templates/add_tag_form.html) | 7 | ||||
-rw-r--r-- | views/thread.py | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/templates/add_tag_form.html b/templates/threads/add_tag_form.html index 9a0f68c..da1014d 100644 --- a/templates/add_tag_form.html +++ b/templates/threads/add_tag_form.html @@ -1,14 +1,11 @@ {% extends "base.html" %} -{% block title %}{{ app_name }}{% endblock %} - {% block header %} {% endblock %} + {% block content %} - <div class="content"> <form action="/addtag/{{list_address}}/{{email_id}}/" method="post"> {% csrf_token %} {{ addtag_form }} <button type="submit">Add</button> - </form> - </div> <!-- end of content --> + </form> {% endblock %} diff --git a/views/thread.py b/views/thread.py index b18583c..d34e57b 100644 --- a/views/thread.py +++ b/views/thread.py @@ -26,7 +26,7 @@ class AddTagForm(forms.Form): @login_required def add_tag(request, mlist_fqdn, email_id): """ Add a tag to a given message. """ - t = loader.get_template('add_tag_form.html') + t = loader.get_template('threads/add_tag_form.html') if request.method == 'POST': form = AddTagForm(request.POST) if form.is_valid(): |