Website for the bigbrother awards
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5KB

  1. {% extends "pages/richtextpage.html" %}
  2. {% load i18n mezzanine_tags pages_tags form_filters %}
  3. {% block main %}
  4. {% editable page.get_content_model.content %}
  5. {{page.get_content_model.content|safe}}
  6. {% endeditable %}
  7. {% nevercache %}
  8. {% if messages %}
  9. {% for message in messages %}
  10. {% if message.extra_tags == 'general' %}
  11. <p class="alert alert-{{ message.level_tag }}">{{message}}</p>
  12. {% endif %}
  13. {% endfor %}
  14. {% endif %}
  15. {% endnevercache %}
  16. <form id="nominations-form" class="mezzanine-form" method="post" action="/nominierungen/">
  17. {% csrf_token %}
  18. {% if form.non_field_errors %}
  19. <div class="alert alert-error">{{ form.non_field_errors }}</div>
  20. {% endif %}
  21. {% for field in form %}
  22. <div class="form-group">
  23. {% if field.field.widget|is_checkbox %}
  24. {% if field.help_text %}
  25. <p>{{field.help_text}}</p>
  26. {% endif %}
  27. {{ field }} {{ field.label_tag }}
  28. {% else %}
  29. {{ field.label_tag }}
  30. {{ field }}
  31. {% if field.help_text %}
  32. <p class="help-block">{{field.help_text}}</p>
  33. {% endif %}
  34. {% endif %}
  35. {% nevercache %}
  36. {% if field.errors %}
  37. <p class="alert alert-error">{{field.errors}}</p>
  38. {% endif %}
  39. {% endnevercache %}
  40. </div>
  41. {% endfor %}
  42. <div class="form-actions">
  43. <input class="btn btn-primary btn-lg" type="submit" value="Nominieren">
  44. </div>
  45. </form>
  46. {% endblock %}