Bootstrap external ticket view

This commit is contained in:
Scot Hacker 2018-03-24 16:42:16 -07:00
parent c03bc3579c
commit d8cdd268d5

View file

@ -9,56 +9,39 @@
<form action="" method="POST"> <form action="" method="POST">
{% csrf_token %} {% csrf_token %}
{% comment %}
{% if task.note %}
<div class="task_note">
<strong>Note:</strong>
{{ task.note|safe|urlize|linebreaks }}</div>
{% endif %}
<h3>File Trouble Ticket</h3> <h3>File Trouble Ticket</h3>
<p>Do you have a support issue? <p>
<br/> Have a support issue? Use this form to report the difficulty - we'll get right back to you.
Use this form to report the difficulty - we'll get right back to you.
</p> </p>
{% if form.errors %} {% if form.errors %}
{% for error in form.errors %} {% for error in form.errors %}
<ul class="errorlist"> <ul class="errorlist">
<li> <li>
<strong>The <strong>The {{ error|escape }} field is required.</strong>
{{ error|escape }}
field is required.</strong>
</li> </li>
</ul> </ul>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<table> <form action="" name="add_task" method="post">
<tr> {% csrf_token %}
<td>Summary:</td> <div class="form-group">
<td>{{ form.title }} <label for="id_title" name="title">Subject</label>
<br/> <input type="text" class="form-control" id="id_title" name="title" required placeholder="Our spaceship doesn't go"
Include the workstation number in your summary, e.g. value="{% if form.title.value %}{{ form.title.value }}{% endif %}">
<br/> </div>
"Radio Lab # 4: Purple smoke pouring out the back." <div class="form-group">
</td> <label for="id_note">Description</label>
</tr> <textarea class="form-control" id="id_note" name="note" rows="5"
aria-describedby="inputNoteHelp">{% if form.note.value %}{{ form.note.value }}{% endif %}</textarea>
<small id="inputNoteHelp" class="form-text text-muted">
Describe the issue. Please include essential details.
</small>
</div>
<tr> <input type="hidden" id="id_priority" name="priority" value="50">
<td valign="top">Note:</td> <p><input type="submit" class="btn btn-primary" name="add_task" value="Submit"></p>
<td valign="top">{{ form.note }}<br/> </form>
Please describe the problem.
</td>
</tr>
</table>
<p><input type="submit" class="btn btn-primary" name="add_task" value="Submit"></p>
{% endcomment %}
{{ form.as_p }}
<p><input type="submit" class="btn btn-primary" name="add_task" value="Submit"></p>
</form>
{% endblock %} {% endblock %}