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.

ticket_edit.html 1.0KB

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