2008-05-07 11:04:18 +02:00
{% extends "helpdesk/public_base.html" %}{% load i18n %}
2008-01-16 04:23:43 +01:00
2008-01-16 01:26:24 +01:00
{% block helpdesk_body %}
2008-05-07 11:04:18 +02:00
< h2 > {% trans "View a Ticket" %}< / h2 >
2008-01-16 01:26:24 +01:00
< form method = 'get' action = '{% url helpdesk_public_view %}' >
< fieldset >
< dl >
2008-05-07 11:04:18 +02:00
< dt > < label for = 'id_ticket' > {% trans "Ticket" %}< / label > < / dt >
2008-01-16 01:26:24 +01:00
< dd > < input type = 'text' name = 'ticket' / > < / dd >
2008-05-07 11:04:18 +02:00
< dt > < label for = 'id_email' > {% trans "Your E-mail Address" %}< / label > < / dt >
2008-01-16 01:26:24 +01:00
< dd > < input type = 'text' name = 'email' / > < / dd >
< / dl >
2008-05-07 11:04:18 +02:00
< input type = 'submit' value = '{% trans "View Ticket" %}' / >
2008-01-16 01:26:24 +01:00
< / fieldset >
< / form >
2008-05-07 11:04:18 +02:00
< h2 name = 'submit' > {% trans "Submit a Ticket" %}< / h2 >
2008-01-16 01:26:24 +01:00
2008-05-07 11:04:18 +02:00
< p > {% trans "All fields are required. Please provide as descriptive a title and description as possible." %}< / p >
2008-01-16 01:26:24 +01:00
2009-01-22 09:08:22 +01:00
< form method = 'post' action = './#submit' enctype = 'multipart/form-data' >
2008-01-16 01:26:24 +01:00
< fieldset >
< dl >
2009-01-22 09:08:22 +01:00
{% for field in form %}
{% if field.is_hidden %}
{{ field }}
{% else %}
< dt > < label for = 'id_{{ field.name }}' > {{ field.label }}< / label > {% if not field.field.required %} < span class = 'form_optional' > {% trans "(Optional)" %}< / span > {% endif %}< / dt >
< dd > {{ field }}< / dd >
{% if field.errors %}< dd class = 'error' > {{ field.errors }}< / dd > {% endif %}
{% if field.help_text %}< dd class = 'form_help_text' > {{ field.help_text }}< / dd > {% endif %}< / label >
{% endif %}
{% endfor %}
2008-01-16 01:26:24 +01:00
< / dl >
< div class = 'buttons' >
2008-05-07 11:04:18 +02:00
< input type = 'submit' value = '{% trans "Submit Ticket" %}' / >
2008-01-16 01:26:24 +01:00
< / div >
< / fieldset >
< / form >
{% endblock %}