mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-26 01:43:10 +01:00
dfb821336e
text to assist with future translation efforts. I've no doubt missed a few. Also we don't have a "Change Language" view in here, unsure if this should be a helpdesk function or a function of the parent project. * Updated svn:ignore to ignore .pyc files * Added new function to replace cursor.dictfetchall() which is available in psycopg1 but not psycopg2. New function should work across other database systems, but is untested.
71 lines
2.5 KiB
HTML
71 lines
2.5 KiB
HTML
{% extends "helpdesk/public_base.html" %}{% load i18n %}
|
|
|
|
{% block helpdesk_head %}
|
|
<script src="http://media.jutda.com.au/helpdesk/nicEdit.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
nic = new nicEditor({buttonList: ['bold','italic','underline','strikeThrough','undo','redo','subscript','superscript','html']}).panelInstance('id_body');
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block helpdesk_body %}
|
|
<h2>{% trans "View a Ticket" %}</h2>
|
|
|
|
<form method='get' action='{% url helpdesk_public_view %}'>
|
|
<fieldset>
|
|
<dl>
|
|
<dt><label for='id_ticket'>{% trans "Ticket" %}</label></dt>
|
|
<dd><input type='text' name='ticket' /></dd>
|
|
|
|
<dt><label for='id_email'>{% trans "Your E-mail Address" %}</label></dt>
|
|
<dd><input type='text' name='email' /></dd>
|
|
</dl>
|
|
|
|
<input type='submit' value='{% trans "View Ticket" %}' />
|
|
</fieldset>
|
|
</form>
|
|
|
|
<h2 name='submit'>{% trans "Submit a Ticket" %}</h2>
|
|
|
|
<p>{% trans "All fields are required. Please provide as descriptive a title and description as possible." %}</p>
|
|
|
|
<form method='post' action='./#submit'>
|
|
<fieldset>
|
|
<dl>
|
|
<dt><label for='id_queue'>{{ form.queue.label }}</label></dt>
|
|
<dd>{{ form.queue }}</dd>
|
|
{% if form.queue.errors %}
|
|
<dd class='error'>{{ form.queue.errors }}</dd>{% endif %}
|
|
|
|
<dt><label for='id_title'>{{ form.title.label }}</label></dt>
|
|
<dd>{{ form.title }}</dd>
|
|
{% if form.title.errors %}
|
|
<dd class='error'>{{ form.title.errors }}</dd>{% endif %}
|
|
|
|
<dt><label for='id_submitter_email'>{{ form.submitter_email.label }}</label></dt>
|
|
<dd>{{ form.submitter_email }}</dd>
|
|
{% if form.submitter_email.errors %}
|
|
<dd class='error'>{{ form.submitter_email.errors }}</dd>{% endif %}
|
|
<dd class='form_help_text'>{{ form.submitter_email.help_text }}</dd>
|
|
|
|
<dt><label for='id_body'>{{ form.body.label }}</label></dt>
|
|
<dd>{{ form.body }}</dd>
|
|
{% if form.body.errors %}
|
|
<dd class='error'>{{ form.body.errors }}</dd>{% endif %}
|
|
|
|
<dt><label for='id_priority'>{{ form.priority.label }}</label></dt>
|
|
<dd>{{ form.priority }}</dd>
|
|
{% if form.priority.errors %}
|
|
<dd class='error'>{{ form.priority.errors }}</dd>{% endif %}
|
|
<dd class='form_help_text'>{{ form.priority.help_text }}</dd>
|
|
</dl>
|
|
|
|
<div class='buttons'>
|
|
<input type='submit' value='{% trans "Submit Ticket" %}' />
|
|
</div>
|
|
</fieldset>
|
|
|
|
</form>
|
|
{% endblock %}
|