mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-15 03:10:55 +01:00
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
{% extends "helpdesk/base.html" %}{% load i18n %}
|
|
|
|
{% block helpdesk_title %}{% trans "Create Ticket" %}{% endblock %}
|
|
|
|
{% block helpdesk_body %}
|
|
{% blocktrans %}<h2>Submit a Ticket</h2>
|
|
|
|
<p>Unless otherwise stated, all fields are required. Please provide as descriptive a title and description as possible.</p>{% endblocktrans %}
|
|
|
|
<form method='post' action='./' enctype='multipart/form-data'>
|
|
<fieldset>
|
|
<dl>
|
|
{% 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 %}
|
|
</dl>
|
|
|
|
<div class='buttons'>
|
|
<input type='submit' value='{% trans "Submit Ticket" %}' />
|
|
</div>
|
|
</fieldset>
|
|
|
|
</form>
|
|
{% endblock %}
|