A simple ticketing application written in Python/Django
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.

followup_edit.html 983B

123456789101112131415161718192021222324252627282930313233
  1. {% extends "main/base.html" %}
  2. {% block title %}Tickets - Edit followup{% endblock %}
  3. {% block header_icon %}<i class="fa fa-pencil-square-o fa-5x"></i>{% endblock %}
  4. {% block headline %}{% if 'edit' in request.path %}Edit Followup{% else %}Create new Followup{% endif %}{% endblock %}
  5. {% block head-message %}Please fill out the form{% endblock %}
  6. {% block content %}
  7. {% load crispy_forms_tags %}
  8. {% if 'edit' in request.path %}
  9. <div class="page-header"><h1>Edit Followup</h1></div>
  10. <form action="#" method="post">
  11. {% csrf_token %}
  12. {{ form | crispy }}
  13. <input class="btn btn-primary" type="submit" value="Save Followup" />
  14. </form>
  15. {% else %}
  16. <div class="page-header"><h1>Create a new Followup</h1></div>
  17. <form action="/followup/new/" method="post">
  18. {% csrf_token %}
  19. {{ form | crispy }}
  20. <input class="btn btn-primary" type="submit" value="Create new Followup" />
  21. </form>
  22. {% endif %}
  23. {% endblock %}