mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-29 03:13:15 +01:00
Updated CSS for Ticket list and Ticket editing pages, added Font Awesome's LICENSE to list
This commit is contained in:
parent
c2480d4d57
commit
e0875b212b
@ -12,6 +12,7 @@ distributed with Jutda Helpdesk.
|
|||||||
9. License for Flot
|
9. License for Flot
|
||||||
10. License for Metis Menu
|
10. License for Metis Menu
|
||||||
11. License for Bootstrap CSS
|
11. License for Bootstrap CSS
|
||||||
|
12. License for Font Awesome
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -286,3 +287,39 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
12. License for Font Awesome
|
||||||
|
|
||||||
|
|
||||||
|
Font License
|
||||||
|
|
||||||
|
Applies to all desktop and webfont files in the following directory:
|
||||||
|
font-awesome/fonts/.
|
||||||
|
License: SIL OFL 1.1
|
||||||
|
URL: http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
Code License
|
||||||
|
|
||||||
|
Applies to all CSS and LESS files in the following directories:
|
||||||
|
font-awesome/css/, font-awesome/less/, and font-awesome/scss/.
|
||||||
|
License: MIT License
|
||||||
|
URL: http://opensource.org/licenses/mit-license.html
|
||||||
|
|
||||||
|
Documentation License
|
||||||
|
|
||||||
|
Applies to all Font Awesome project files that are not a part of the Font or
|
||||||
|
Code licenses.
|
||||||
|
License: CC BY 3.0
|
||||||
|
URL: http://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
|
Brand Icons
|
||||||
|
|
||||||
|
All brand icons are trademarks of their respective owners.
|
||||||
|
The use of these trademarks does not indicate endorsement of the trademark
|
||||||
|
holder by Font Awesome, nor vice versa.
|
||||||
|
Brand icons should only be used to represent the company or product to which
|
||||||
|
they refer.
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,12 @@
|
|||||||
<p>{% blocktrans %}You have shared this query, so other users may be using it. If you delete it, they will have to manually create their own query.{% endblocktrans %}</p>
|
<p>{% blocktrans %}You have shared this query, so other users may be using it. If you delete it, they will have to manually create their own query.{% endblocktrans %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p><a href='../'>{% trans "No, Don't Delete It" %}</a></p>
|
|
||||||
|
|
||||||
<form method='post' action='./'><input class="btn btn-primary" type='submit' value='{% trans "Yes - Delete It" %}' />{% csrf_token %}</form>
|
<p><a href='../'><button class="btn btn-primary btn-lg">{% trans "No, Don't Delete It" %}</button></a></p>
|
||||||
|
|
||||||
|
<form method='post' action='./'>
|
||||||
|
<button class="btn btn-danger" type='submit'>{% trans "Yes I Understand - Delete It Anyway" %}</button>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
<p>{% blocktrans with ticket.title as ticket_title %}Are you sure you want to delete this ticket (<em>{{ ticket_title }}</em>)? All traces of the ticket, including followups, attachments, and updates will be irreversibly removed.{% endblocktrans %}</p>
|
<p>{% blocktrans with ticket.title as ticket_title %}Are you sure you want to delete this ticket (<em>{{ ticket_title }}</em>)? All traces of the ticket, including followups, attachments, and updates will be irreversibly removed.{% endblocktrans %}</p>
|
||||||
|
|
||||||
<p><a href='../'>{% trans "No, Don't Delete It" %}</a></p>
|
<p><a href='../'><button class="btn btn-primary btn-lg">{% trans "No, Don't Delete It" %}</button></a></p>
|
||||||
|
|
||||||
<form method='post' action='./'><input class="btn btn-primary" type='submit' value='{% trans "Yes - Delete It" %}' />{% csrf_token %}</form>
|
<form method='post' action='./'>
|
||||||
|
<button class="btn btn-danger" type='submit'>{% trans "Yes I Understand - Delete It Anyway" %}</button>
|
||||||
|
{% csrf_token %}</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,7 +7,11 @@
|
|||||||
|
|
||||||
<p>{% blocktrans with ignore.email_address as email_address %}Are you sure you wish to stop removing this email address (<em>{{ email_address }}</em>) and allow their e-mails to automatically create tickets in your system? You can re-add this e-mail address at any time.{% endblocktrans %}</p>
|
<p>{% blocktrans with ignore.email_address as email_address %}Are you sure you wish to stop removing this email address (<em>{{ email_address }}</em>) and allow their e-mails to automatically create tickets in your system? You can re-add this e-mail address at any time.{% endblocktrans %}</p>
|
||||||
|
|
||||||
<p><a href='../../'>{% trans "Keep Ignoring It" %}</a></p>
|
<p><a href='../../'><button class="btn btn-primary btn-lg">{% trans "Keep Ignoring It" %}</button></a></p>
|
||||||
|
|
||||||
|
<form method='post' action='./'>
|
||||||
|
<button class="btn btn-danger" type='submit'>{% trans "Stop Ignoring It" %}</button>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
|
||||||
|
|
||||||
<form method='post' action='./'><input class="btn btn-primary" type='submit' value='{% trans "Stop Ignoring It" %}' />{% csrf_token %}</form>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -5,26 +5,54 @@
|
|||||||
{% block helpdesk_body %}{% blocktrans %}
|
{% block helpdesk_body %}{% blocktrans %}
|
||||||
<h2>Ignored E-Mail Addresses</h2>
|
<h2>Ignored E-Mail Addresses</h2>
|
||||||
|
|
||||||
<p>The following e-mail addresses are currently being ignored by the incoming e-mail processor. You can <a href='add/'>add a new e-mail address to the list</a> or delete any of the items below as required.</p>{% endblocktrans %}
|
<p>The following e-mail addresses are currently being ignored by the incoming e-mail processor. You can add a new item or delete any of the items below as required.</p>{% endblocktrans %}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
{% trans "Ignored E-Mail Addresses" %}
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-heading -->
|
||||||
|
<div class="panel-body">
|
||||||
|
<div><a href='add/'><button class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i>{% trans "Add an Email" %}</button></a></div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Name" %}</th>
|
||||||
|
<th>{% trans "E-Mail Address" %}</th>
|
||||||
|
<th>{% trans "Date Added" %}</th>
|
||||||
|
<th>{% trans "Queues" %}</th>
|
||||||
|
<th>{% trans "Keep in mailbox?" %}</th>
|
||||||
|
<th>{% trans "Delete" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for ignore in ignore_list %}
|
||||||
|
<tr class='row_{% cycle 'odd' 'even' %}'>
|
||||||
|
<td>{{ ignore.name }}</td>
|
||||||
|
<td>{{ ignore.email_address }}</td>
|
||||||
|
<td>{{ ignore.date }}</td>
|
||||||
|
<td>{% for queue in ignore.queues.all %}{{ queue.slug }}{% if not forloop.last %}, {% endif %}{% empty %}{% trans "All" %}{% endfor %}</td>
|
||||||
|
<td>{% if ignore.keep_in_mailbox %}{% trans "Keep" %}{% endif %}</td>
|
||||||
|
<td><a href='{% url 'helpdesk_email_ignore_del' ignore.id %}'><button class="btn btn-danger btn-xs">{% trans "Delete" %}</button></a></td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /.table-responsive -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-body -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
|
||||||
<table class="table table-hover table-bordered">
|
|
||||||
<caption>{% trans "Ignored E-Mail Addresses" %}</caption>
|
|
||||||
<thead>
|
|
||||||
<tr><th>{% trans "Name" %}</th><th>{% trans "E-Mail Address" %}</th><th>{% trans "Date Added" %}</th><th>{% trans "Queues" %}</th><th>{% trans "Keep in mailbox?" %}</th><th>{% trans "Delete" %}</th></tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for ignore in ignore_list %}
|
|
||||||
<tr class='row_{% cycle 'odd' 'even' %}'>
|
|
||||||
<td>{{ ignore.name }}</td>
|
|
||||||
<td>{{ ignore.email_address }}</td>
|
|
||||||
<td>{{ ignore.date }}</td>
|
|
||||||
<td>{% for queue in ignore.queues.all %}{{ queue.slug }}{% if not forloop.last %}, {% endif %}{% empty %}{% trans "All" %}{% endfor %}</td>
|
|
||||||
<td>{% if ignore.keep_in_mailbox %}{% trans "Keep" %}{% endif %}</td>
|
|
||||||
<td><a href='{% url 'helpdesk_email_ignore_del' ignore.id %}'>{% trans "Delete" %}</a></td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<p>{% trans "<strong>Note:</strong> If the 'Keep' option is not selected, emails sent from that address will be deleted permanently." %}</p>
|
<p>{% trans "<strong>Note:</strong> If the 'Keep' option is not selected, emails sent from that address will be deleted permanently." %}</p>
|
||||||
|
|
||||||
|
@ -7,30 +7,55 @@
|
|||||||
<p>{% trans "The following RSS feeds are available for you to monitor using your preferred RSS software. With the exception of the 'Latest Activity' feed, all feeds provide information only on Open and Reopened cases. This ensures your RSS reader isn't full of information about closed or historical tasks." %}</p>
|
<p>{% trans "The following RSS feeds are available for you to monitor using your preferred RSS software. With the exception of the 'Latest Activity' feed, all feeds provide information only on Open and Reopened cases. This ensures your RSS reader isn't full of information about closed or historical tasks." %}</p>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><a href='{% url 'helpdesk_rss_user' user.get_username %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "My Open Tickets" %}' border='0' />{% trans "My Open Tickets" %}</a></dt>
|
<dt><a href='{% url 'helpdesk_rss_user' user.get_username %}'><i class="fa fa-rss-square fa-fw"></i>{% trans "My Open Tickets" %}</a></dt>
|
||||||
<dd>{% trans "A summary of your open tickets - useful for getting alerted to new tickets opened for you" %}</dd>
|
<dd>{% trans "A summary of your open tickets - useful for getting alerted to new tickets opened for you" %}</dd>
|
||||||
|
|
||||||
<dt><a href='{% url 'helpdesk_rss_activity' %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "Latest Activity" %}' border='0' />{% trans "Latest Activity" %}</a></dt>
|
<dt><a href='{% url 'helpdesk_rss_activity' %}'><i class="fa fa-rss-square fa-fw"></i>{% trans "Latest Activity" %}</a></dt>
|
||||||
<dd>{% trans "A summary of all helpdesk activity - including comments, emails, attachments, and more" %}</dd>
|
<dd>{% trans "A summary of all helpdesk activity - including comments, emails, attachments, and more" %}</dd>
|
||||||
|
|
||||||
<dt><a href='{% url 'helpdesk_rss_unassigned' %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "Unassigned Tickets" %}' border='0' />{% trans "Unassigned Tickets" %}</a></dt>
|
<dt><a href='{% url 'helpdesk_rss_unassigned' %}'><i class="fa fa-rss-square fa-fw"></i>{% trans "Unassigned Tickets" %}</a></dt>
|
||||||
<dd>{% trans "All unassigned tickets - useful for being alerted to new tickets opened by the public via the web or via e-mail" %}</dd>
|
<dd>{% trans "All unassigned tickets - useful for being alerted to new tickets opened by the public via the web or via e-mail" %}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<p>{% trans "These RSS feeds allow you to view a summary of either your own tickets, or all tickets, for each of the queues in your helpdesk. For example, if you manage the staff who utilise a particular queue, this may be used to view new tickets coming into that queue." %}</p>
|
<p>{% trans "These RSS feeds allow you to view a summary of either your own tickets, or all tickets, for each of the queues in your helpdesk. For example, if you manage the staff who utilise a particular queue, this may be used to view new tickets coming into that queue." %}</p>
|
||||||
|
|
||||||
<table class="table table-hover table-bordered">
|
|
||||||
<caption>{% trans "Per-Queue Feeds" %}</caption>
|
<div class="row">
|
||||||
<thead>
|
<div class="col-lg-12">
|
||||||
<tr><th>{% trans "Queue" %}</th><th align='center'>{% trans "All Open Tickets" %}</th><th align='center'>{% trans "My Open Tickets" %}</th></tr>
|
<div class="panel panel-primary">
|
||||||
</thead>
|
<div class="panel-heading">
|
||||||
<tbody>
|
{% trans "Per-Queue Feeds" %}
|
||||||
{% for queue in queues %}
|
</div>
|
||||||
<tr>
|
<!-- /.panel-heading -->
|
||||||
<td>{{ queue.title }}</td>
|
<div class="panel-body">
|
||||||
<td align='center'><a href='{% url 'helpdesk_rss_queue' queue.slug %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "Open Tickets" %}' border='0' /></a></td>
|
<div class="table-responsive">
|
||||||
<td align='center'><a href='{% url 'helpdesk_rss_user_queue' user.get_username queue.slug %}'><img src='{% static "helpdesk/rss_icon.png" %}' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "My Open Tickets" %}' border='0' /></a></td>
|
<table class="table table-striped table-bordered table-hover">
|
||||||
{% endfor %}
|
<thead>
|
||||||
</tbody>
|
<tr>
|
||||||
</table>
|
<th>{% trans "Queue" %}</th>
|
||||||
|
<th align='center'>{% trans "All Open Tickets" %}</th>
|
||||||
|
<th align='center'>{% trans "My Open Tickets" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for queue in queues %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ queue.title }}</td>
|
||||||
|
<td align='center'><a href='{% url 'helpdesk_rss_queue' queue.slug %}'><i class="fa fa-rss-square fa-fw"></i></a></td>
|
||||||
|
<td align='center'><a href='{% url 'helpdesk_rss_user_queue' user.get_username queue.slug %}'><i class="fa fa-rss-square fa-fw"></i></a></td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /.table-responsive -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-body -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
<p>Are you sure you wish to delete this email address (<em>{{ email_address }}</em>) from the CC list for this ticket? They will stop receiving updates.</p>
|
<p>Are you sure you wish to delete this email address (<em>{{ email_address }}</em>) from the CC list for this ticket? They will stop receiving updates.</p>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
<p><a href='../../'>{% trans "Don't Delete" %}</a></p>
|
|
||||||
|
|
||||||
<form method='post' action='./'><input class="btn btn-primary" type='submit' value='{% trans "Yes, Delete" %}' />{% csrf_token %}</form>
|
<p><a href='../../'><button class="btn btn-primary btn-lg">{% trans "Don't Delete" %}</button></a></p>
|
||||||
|
|
||||||
|
<form method='post' action='./'>
|
||||||
|
<button class="btn btn-danger" type='submit'>{% trans "Yes I Understand - Delete" %}</button>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,25 +7,51 @@
|
|||||||
|
|
||||||
<p>The following people will receive an e-mail whenever <em><a href='../'>{{ ticket_title }}</a></em> is updated. Some people can also view or edit the ticket via the public ticket views.</p>
|
<p>The following people will receive an e-mail whenever <em><a href='../'>{{ ticket_title }}</a></em> is updated. Some people can also view or edit the ticket via the public ticket views.</p>
|
||||||
|
|
||||||
<p>You can <a href='add/'>add a new e-mail address to the list</a> or delete any of the items below as required.</p>{% endblocktrans %}
|
<p>You can add a new recipient to the list or delete any of the items below as required.</p>{% endblocktrans %}
|
||||||
|
|
||||||
<table class="table table-hover table-bordered">
|
|
||||||
<caption>{% trans "Ticket CC List" %}</caption>
|
|
||||||
<thead>
|
|
||||||
<tr><th>{% trans "E-Mail Address" %}</th><th>{% trans "View?" %}</th><th>{% trans "Update?" %}</th><th>{% trans "Delete" %}</th></tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for person in copies_to %}
|
|
||||||
<tr class='row_{% cycle 'odd' 'even' %}'>
|
|
||||||
<td>{{ person.display }}</td>
|
|
||||||
<td>{{ person.can_view }}</td>
|
|
||||||
<td>{{ person.can_update }}</td>
|
|
||||||
<td><a href='{% url 'helpdesk_ticket_cc_del' ticket.id person.id %}'>{% trans "Delete" %}</a></td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<p><a href='{% url 'helpdesk_view' ticket.id %}'>{% blocktrans with ticket.title as ticket_title %}Return to <em>{{ ticket_title }}</em>{% endblocktrans %}</a></p>
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
{% trans "Ticket CC List" %}
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-heading -->
|
||||||
|
<div class="panel-body">
|
||||||
|
<div><a href='add/'><button class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i>{% trans "Add an Email or Helpdesk User" %}</button></a></div>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "E-Mail Address or Helpdesk User" %}</th>
|
||||||
|
<th>{% trans "View?" %}</th>
|
||||||
|
<th>{% trans "Update?" %}</th>
|
||||||
|
<th>{% trans "Delete" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for person in copies_to %}
|
||||||
|
<tr class='row_{% cycle 'odd' 'even' %}'>
|
||||||
|
<td>{{ person.display }}</td>
|
||||||
|
<td>{{ person.can_view }}</td>
|
||||||
|
<td>{{ person.can_update }}</td>
|
||||||
|
<td><a href='{% url 'helpdesk_ticket_cc_del' ticket.id person.id %}'><button class="btn btn-danger btn-xs">{% trans "Delete" %}</button></a></td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /.table-responsive -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-body -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
|
||||||
|
<p><a href='{% url 'helpdesk_view' ticket.id %}'><button class="btn btn-primary btn-lg">{% blocktrans with ticket.title as ticket_title %}Return to <em>{{ ticket_title }}</em>{% endblocktrans %}</button></a></p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -49,215 +49,240 @@ $(document).ready(function() {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>{% endcomment %}
|
</ul>{% endcomment %}
|
||||||
|
|
||||||
<div class="panel-group filter-options" id="accordion">
|
|
||||||
<div id='tabfilter' class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">
|
|
||||||
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
|
|
||||||
{% trans "Change Query" %}
|
|
||||||
</a>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div id="collapseOne" class="panel-collapse collapse in">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form>
|
|
||||||
<select name='select' id='filterBuilderSelect'>
|
|
||||||
<option value='Sort'>{% trans "Sorting" %}</option>
|
|
||||||
<option value='Owner'>{% trans "Owner" %}</option>
|
|
||||||
<option value='Queue'>{% trans "Queue" %}</option>
|
|
||||||
<option value='Status'>{% trans "Status" %}</option>
|
|
||||||
<option value='Keywords'>{% trans "Keywords" %}</option>
|
|
||||||
<option value='Dates'>{% trans "Date Range" %}</option>
|
|
||||||
</select>
|
|
||||||
<input type='button' id='filterBuilderButton' value='+' />
|
|
||||||
{% csrf_token %}</form>
|
|
||||||
|
|
||||||
<form method='get' action='./'>
|
<div class="row">
|
||||||
<div class='thumbnail filterBox{% if query_params.sorting %} filterBoxShow{% endif %}' id='filterBoxSort'>
|
<div class="col-lg-12">
|
||||||
<label for='id_sort'>{% trans "Sorting" %}</label>
|
<div class="panel panel-primary">
|
||||||
<select id='id_sort' name='sort'>
|
<div class="panel-heading">
|
||||||
<option value='created'{% ifequal query_params.sorting "created"%} selected='selected'{% endifequal %}>
|
{% trans "Query Selection" %}
|
||||||
{% trans "Created" %}
|
</div>
|
||||||
</option>
|
<!-- .panel-heading -->
|
||||||
<option value='title'{% ifequal query_params.sorting "title"%} selected='selected'{% endifequal %}>
|
<div class="panel-body">
|
||||||
{% trans "Title" %}
|
<div class="panel-group" id="accordion">
|
||||||
</option>
|
<div class="panel panel-primary">
|
||||||
<option value='queue'{% ifequal query_params.sorting "queue"%} selected='selected'{% endifequal %}>
|
<div class="panel-heading">
|
||||||
{% trans "Queue" %}
|
<h4 class="panel-title">
|
||||||
</option>
|
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">{% trans "Change Query" %}</a>
|
||||||
<option value='status'{% ifequal query_params.sorting "status"%} selected='selected'{% endifequal %}>
|
</h4>
|
||||||
{% trans "Status" %}
|
</div>
|
||||||
</option>
|
<div id="collapseOne" class="panel-collapse collapse in">
|
||||||
<option value='priority'{% ifequal query_params.sorting "priority"%} selected='selected'{% endifequal %}>
|
<div class="panel-body">
|
||||||
{% trans "Priority" %}
|
<form>
|
||||||
</option>
|
<select name='select' id='filterBuilderSelect'>
|
||||||
<option value='assigned_to'{% ifequal query_params.sorting "assigned_to"%} selected='selected'{% endifequal %}>
|
<option value='Sort'>{% trans "Sorting" %}</option>
|
||||||
{% trans "Owner" %}
|
<option value='Owner'>{% trans "Owner" %}</option>
|
||||||
</option>
|
<option value='Queue'>{% trans "Queue" %}</option>
|
||||||
</select>
|
<option value='Status'>{% trans "Status" %}</option>
|
||||||
<label for='id_sortreverse'>{% trans "Reverse" %}</label>
|
<option value='Keywords'>{% trans "Keywords" %}</option>
|
||||||
<input type='checkbox' name='sortreverse' id='id_sortreverse'{% if query_params.sortreverse %} checked='checked'{% endif %} />
|
<option value='Dates'>{% trans "Date Range" %}</option>
|
||||||
<p class='filterHelp'>{% trans "Ordering applied to tickets" %}</p>
|
</select>
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
<button class='btn btn-success btn-xs' id='filterBuilderButton'><i class="fa fa-plus-circle"></i></button>
|
||||||
</div>
|
{% csrf_token %}</form>
|
||||||
|
|
||||||
<div class='thumbnail filterBox{% if query_params.filtering.assigned_to__id__in %} filterBoxShow{% endif %}' id='filterBoxOwner'>
|
<form method='get' action='./'>
|
||||||
<label for='id_owners'>{% trans "Owner(s)" %}</label>
|
<div class='thumbnail filterBox{% if query_params.sorting %} filterBoxShow{% endif %}' id='filterBoxSort'>
|
||||||
<select id='id_owners' name='assigned_to' multiple='selected' size='5'>
|
<label for='id_sort'>{% trans "Sorting" %}</label>
|
||||||
{% for u in user_choices %}
|
<select id='id_sort' name='sort'>
|
||||||
<option value='{{ u.id }}'{% if u.id|in_list:query_params.filtering.assigned_to__id__in %} selected='selected'{% endif %}>
|
<option value='created'{% ifequal query_params.sorting "created"%} selected='selected'{% endifequal %}>
|
||||||
{{ u.get_username }}{% ifequal u user %} {% trans "(ME)" %}{% endifequal %}
|
{% trans "Created" %}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
<option value='title'{% ifequal query_params.sorting "title"%} selected='selected'{% endifequal %}>
|
||||||
</select>
|
{% trans "Title" %}
|
||||||
<p class='filterHelp'>{% trans "Ctrl-Click to select multiple options" %}</p>
|
</option>
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
<option value='queue'{% ifequal query_params.sorting "queue"%} selected='selected'{% endifequal %}>
|
||||||
</div>
|
{% trans "Queue" %}
|
||||||
|
</option>
|
||||||
|
<option value='status'{% ifequal query_params.sorting "status"%} selected='selected'{% endifequal %}>
|
||||||
|
{% trans "Status" %}
|
||||||
|
</option>
|
||||||
|
<option value='priority'{% ifequal query_params.sorting "priority"%} selected='selected'{% endifequal %}>
|
||||||
|
{% trans "Priority" %}
|
||||||
|
</option>
|
||||||
|
<option value='assigned_to'{% ifequal query_params.sorting "assigned_to"%} selected='selected'{% endifequal %}>
|
||||||
|
{% trans "Owner" %}
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
<label for='id_sortreverse'>{% trans "Reverse" %}</label>
|
||||||
|
<input type='checkbox' name='sortreverse' id='id_sortreverse'{% if query_params.sortreverse %} checked='checked'{% endif %} />
|
||||||
|
<p class='filterHelp'>{% trans "Ordering applied to tickets" %}</p>
|
||||||
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class='thumbnail filterBox{% if query_params.filtering.queue__id__in %} filterBoxShow{% endif %}' id='filterBoxQueue'>
|
<div class='thumbnail filterBox{% if query_params.filtering.assigned_to__id__in %} filterBoxShow{% endif %}' id='filterBoxOwner'>
|
||||||
<label for='id_queues'>{% trans "Queue(s)" %}</label><select id='id_queues' name='queue' multiple='selected' size='5'>{% for q in queue_choices %}<option value='{{ q.id }}'{% if q.id|in_list:query_params.filtering.queue__id__in %} selected='selected'{% endif %}>{{ q.title }}</option>{% endfor %}</select>
|
<label for='id_owners'>{% trans "Owner(s)" %}</label>
|
||||||
<p class='filterHelp'>{% trans "Ctrl-click to select multiple options" %}</p>
|
<select id='id_owners' name='assigned_to' multiple='selected' size='5'>
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
{% for u in user_choices %}
|
||||||
</div>
|
<option value='{{ u.id }}'{% if u.id|in_list:query_params.filtering.assigned_to__id__in %} selected='selected'{% endif %}>
|
||||||
|
{{ u.get_username }}{% ifequal u user %} {% trans "(ME)" %}{% endifequal %}
|
||||||
|
</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
<p class='filterHelp'>{% trans "Ctrl-Click to select multiple options" %}</p>
|
||||||
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class='thumbnail filterBox{% if query_params.filtering.status__in %} filterBoxShow{% endif %}' id='filterBoxStatus'>
|
<div class='thumbnail filterBox{% if query_params.filtering.queue__id__in %} filterBoxShow{% endif %}' id='filterBoxQueue'>
|
||||||
<label for='id_statuses'>{% trans "Status(es)" %}</label><select id='id_statuses' name='status' multiple='selected' size='5'>{% for s in status_choices %}<option value='{{ s.0 }}'{% if s.0|in_list:query_params.filtering.status__in %} selected='selected'{% endif %}>{{ s.1 }}</option>{% endfor %}</select>
|
<label for='id_queues'>{% trans "Queue(s)" %}</label><select id='id_queues' name='queue' multiple='selected' size='5'>{% for q in queue_choices %}<option value='{{ q.id }}'{% if q.id|in_list:query_params.filtering.queue__id__in %} selected='selected'{% endif %}>{{ q.title }}</option>{% endfor %}</select>
|
||||||
<p class='filterHelp'>{% trans "Ctrl-click to select multiple options" %}</p>
|
<p class='filterHelp'>{% trans "Ctrl-click to select multiple options" %}</p>
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='thumbnail filterBox{% if query_params.filtering.created__gte or query_params.filtering.created__lte %} filterBoxShow{% endif %}' id='filterBoxDates'>
|
<div class='thumbnail filterBox{% if query_params.filtering.status__in %} filterBoxShow{% endif %}' id='filterBoxStatus'>
|
||||||
<label for='id_date_from'>{% trans "Date (From)" %}</label><input type='text' name='date_from' value='{{ query_params.filtering.created__gte }}' id='id_date_from' />
|
<label for='id_statuses'>{% trans "Status(es)" %}</label><select id='id_statuses' name='status' multiple='selected' size='5'>{% for s in status_choices %}<option value='{{ s.0 }}'{% if s.0|in_list:query_params.filtering.status__in %} selected='selected'{% endif %}>{{ s.1 }}</option>{% endfor %}</select>
|
||||||
<label for='id_date_to'>{% trans "Date (To)" %}</label><input type='text' name='date_to' value='{{ query_params.filtering.created__lte }}' id='id_date_to' />
|
<p class='filterHelp'>{% trans "Ctrl-click to select multiple options" %}</p>
|
||||||
<p class='filterHelp'>{% trans "Use YYYY-MM-DD date format, eg 2011-05-29" %}</p>
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button>
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class='thumbnail filterBox{% if query %} filterBoxShow{% endif %}' id='filterBoxKeywords'>
|
<div class='thumbnail filterBox{% if query_params.filtering.created__gte or query_params.filtering.created__lte %} filterBoxShow{% endif %}' id='filterBoxDates'>
|
||||||
<label for='id_query'>{% trans "Keywords" %}</label><input type='text' name='q' value='{{ query }}' id='id_query' />
|
<label for='id_date_from'>{% trans "Date (From)" %}</label><input type='text' name='date_from' value='{{ query_params.filtering.created__gte }}' id='id_date_from' />
|
||||||
<p class='filterHelp'>{% trans "Keywords are case-insensitive, and will be looked for in the title, body and submitter fields." %}</p>
|
<label for='id_date_to'>{% trans "Date (To)" %}</label><input type='text' name='date_to' value='{{ query_params.filtering.created__lte }}' id='id_date_to' />
|
||||||
<input type='button' class='filterBuilderRemove' value='-' />
|
<p class='filterHelp'>{% trans "Use YYYY-MM-DD date format, eg 2011-05-29" %}</p>
|
||||||
</div>
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button>
|
||||||
<hr style='clear: both;' />
|
</div>
|
||||||
<input class="btn btn-primary" type='submit' value='{% trans "Apply Filter" %}' />
|
|
||||||
{% if from_saved_query and saved_query.user == user %}
|
<div class='thumbnail filterBox{% if query %} filterBoxShow{% endif %}' id='filterBoxKeywords'>
|
||||||
<p>{% blocktrans with saved_query.title as query_name %}You are currently viewing saved query <strong>"{{ query_name }}"</strong>.{% endblocktrans %} <a href='{% url 'helpdesk_delete_query' saved_query.id %}'>{% trans "Delete Saved Query" %}</a></p>
|
<label for='id_query'>{% trans "Keywords" %}</label><input type='text' name='q' value='{{ query }}' id='id_query' />
|
||||||
{% endif %}
|
<p class='filterHelp'>{% trans "Keywords are case-insensitive, and will be looked for in the title, body and submitter fields." %}</p>
|
||||||
{% if from_saved_query %}
|
<button class='filterBuilderRemove btn btn-danger btn-xs'><i class="fa fa-trash-o"></i></button>
|
||||||
<p>{% blocktrans with saved_query.id as query_id %}<a href='../reports/?saved_query={{ query_id }}'>Run a report</a> on this query to see stats and charts for the data listed below.{% endblocktrans %}</p>
|
</div>
|
||||||
{% endif %}
|
<hr style='clear: both;' />
|
||||||
{% csrf_token %}</form>
|
<input class="btn btn-primary" type='submit' value='{% trans "Apply Filter" %}' />
|
||||||
</div>
|
{% if from_saved_query and saved_query.user == user %}
|
||||||
</div>
|
<p>{% blocktrans with saved_query.title as query_name %}You are currently viewing saved query <strong>"{{ query_name }}"</strong>.{% endblocktrans %} <a href='{% url 'helpdesk_delete_query' saved_query.id %}'>{% trans "Delete Saved Query" %}</a></p>
|
||||||
</div>
|
{% endif %}
|
||||||
|
{% if from_saved_query %}
|
||||||
|
<p>{% blocktrans with saved_query.id as query_id %}<a href='../reports/?saved_query={{ query_id }}'>Run a report</a> on this query to see stats and charts for the data listed below.{% endblocktrans %}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h4 class="panel-title">
|
||||||
|
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">{% trans "Save Query" %}</a>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div id="collapseTwo" class="panel-collapse collapse">
|
||||||
|
<div class="panel-body">
|
||||||
|
<form method='post' action='{% url 'helpdesk_savequery' %}'>
|
||||||
|
<input type='hidden' name='query_encoded' value='{{ urlsafe_query }}' />
|
||||||
|
<dl>
|
||||||
|
<dt><label for='id_title'>{% trans "Query Name" %}</label></dt>
|
||||||
|
<dd><input type='text' name='title' id='id_title' /></dd>
|
||||||
|
<dd class='form_help_text'>{% trans "This name appears in the drop-down list of saved queries. If you share your query, other users will see this name, so choose something clear and descriptive!" %}</dd>
|
||||||
|
|
||||||
|
<dt><label for='id_shared'>{% trans "Shared?" %}</label></dt>
|
||||||
|
<dd><input type='checkbox' name='shared' id='id_shared' /> {% trans "Yes, share this query with other users." %}</dd>
|
||||||
|
<dd class='form_help_text'>{% trans "If you share this query, it will be visible by <em>all</em> other logged-in users." %}</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
<div class='buttons'>
|
||||||
|
<input class="btn btn-primary" type='submit' value='{% trans "Save Query" %}'>
|
||||||
|
</div>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h4 class="panel-title">
|
||||||
|
<a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">{% trans "Use Saved Query" %}</a>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div id="collapseThree" class="panel-collapse collapse">
|
||||||
|
<div class="panel-body">
|
||||||
|
<form method='get' action='{% url 'helpdesk_list' %}'>
|
||||||
|
<p><label for='id_query_selector'>{% trans "Query" %}</label> <select name='saved_query' id='id_query_selector'>
|
||||||
|
{% for q in user_saved_queries %}
|
||||||
|
<option value='{{ q.id }}'>{{ q.title }}{% if q.shared %} (Shared{% ifnotequal user q.user %} by {{ q.user.get_username }}{% endifnotequal %}){% endif %}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select></p>
|
||||||
|
<input class="btn btn-primary" type='submit' value='{% trans "Run Query" %}'>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- .panel-body -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-success">
|
||||||
|
<div class="panel-heading">
|
||||||
|
{% trans "Query Results" %} - {{ search_message|safe }}
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-heading -->
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<form method='post' action='{% url 'helpdesk_mass_update' %}' id="ticket_mass_update">
|
||||||
|
<table class="table table-striped table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>{% trans "Pr" %}</th>
|
||||||
|
<th>{% trans "Title" %}</th>
|
||||||
|
<th>{% trans "Queue" %}</th>
|
||||||
|
<th>{% trans "Status" %}</th>
|
||||||
|
<th>{% trans "Created" %}</th>
|
||||||
|
<th>{% trans "Owner" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for ticket in tickets.object_list %}
|
||||||
|
<tr class="{{ ticket.get_priority_css_class }}">
|
||||||
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.ticket }}</a></th>
|
||||||
|
<td><input type='checkbox' name='ticket_id' value='{{ ticket.id }}' class='ticket_multi_select' /></td>
|
||||||
|
<td>{{ ticket.priority }}</td>
|
||||||
|
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.title }}</a></th>
|
||||||
|
<td>{{ ticket.queue }}</td>
|
||||||
|
<td>{{ ticket.get_status }}</td>
|
||||||
|
<td><span title='{{ ticket.created|date:"r" }}'>{{ ticket.created|naturaltime }}</span></td>
|
||||||
|
<td>{{ ticket.get_assigned_to }}</td>
|
||||||
|
</tr>
|
||||||
|
{% empty %}
|
||||||
|
<tr><td colspan='5'>{% trans "No Tickets Match Your Selection" %}</td></tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% csrf_token %}</form>
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
<span class="step-links">
|
||||||
|
{% if tickets.has_previous %}
|
||||||
|
<a href="?{% if query_string %}{{ query_string }}&{% endif %}page={{ tickets.previous_page_number }}">{% trans "Previous" %}</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<span class="current">
|
||||||
|
{% blocktrans with tickets.number as ticket_num and tickets.paginator.num_pages as num_pages %}Page {{ ticket_num }} of {{ num_pages }}.{% endblocktrans %}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{% if tickets.has_next %}
|
||||||
|
<a href="?{% if query_string %}{{ query_string }}&{% endif %}page={{ tickets.next_page_number }}">{% trans "Next" %}</a>
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p><label>{% trans "Select:" %} </label> <a href='#select_all' id='select_all'><button class="btn btn-primary btn-sm">{% trans "All" %}</button></a> <a href='#select_none' id='select_none'><button class="btn btn-primary btn-sm">{% trans "None" %}</button></a> <a href='#select_inverse' id='select_inverse'><button class="btn btn-primary btn-sm">{% trans "Invert" %}</button></a></p>
|
||||||
|
|
||||||
|
<p><label for='id_mass_action'>{% trans "With Selected Tickets:" %}</label> <select name='action' id='id_mass_action'><option value='take'>{% trans "Take (Assign to me)" %}</option><option value='delete'>{% trans "Delete" %}</option><optgroup label='{% trans "Close" %}'><option value='close'>{% trans "Close (Don't Send E-Mail)" %}</option><option value='close_public'>{% trans "Close (Send E-Mail)" %}</option></optgroup><optgroup label='{% trans "Assign To" %}'><option value='unassign'>{% trans "Nobody (Unassign)" %}</option>{% for u in user_choices %}<option value='assign_{{ u.id }}'>{{ u.get_username }}</option>{% endfor %}</optgroup></select> <button class="btn btn-primary btn-sm">{% trans "Go" %}</button></p>
|
||||||
|
</div>
|
||||||
|
<!-- /.table-responsive -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel-body -->
|
||||||
|
</div>
|
||||||
|
<!-- /.panel -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
|
||||||
|
|
||||||
{% if not from_saved_query %}
|
|
||||||
<div class='panel panel-default' id='tabsave'>
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">
|
|
||||||
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
|
|
||||||
{% trans "Save Query" %}</a>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div id="collapseTwo" class="panel-collapse collapse">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form method='post' action='{% url 'helpdesk_savequery' %}'>
|
|
||||||
<input type='hidden' name='query_encoded' value='{{ urlsafe_query }}' />
|
|
||||||
<dl>
|
|
||||||
<dt><label for='id_title'>{% trans "Query Name" %}</label></dt>
|
|
||||||
<dd><input type='text' name='title' id='id_title' /></dd>
|
|
||||||
<dd class='form_help_text'>{% trans "This name appears in the drop-down list of saved queries. If you share your query, other users will see this name, so choose something clear and descriptive!" %}</dd>
|
|
||||||
|
|
||||||
<dt><label for='id_shared'>{% trans "Shared?" %}</label></dt>
|
|
||||||
<dd><input type='checkbox' name='shared' id='id_shared' /> {% trans "Yes, share this query with other users." %}</dd>
|
|
||||||
<dd class='form_help_text'>{% trans "If you share this query, it will be visible by <em>all</em> other logged-in users." %}</dd>
|
|
||||||
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<div class='buttons'>
|
|
||||||
<input class="btn btn-primary" type='submit' value='{% trans "Save Query" %}'>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% csrf_token %}</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">
|
|
||||||
<a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
|
|
||||||
{% trans "Use Saved Query" %}
|
|
||||||
</a>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div id="collapseThree" class="panel-collapse collapse">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form method='get' action='{% url 'helpdesk_list' %}'>
|
|
||||||
<p><label for='id_query_selector'>{% trans "Query" %}</label> <select name='saved_query' id='id_query_selector'>
|
|
||||||
{% for q in user_saved_queries %}
|
|
||||||
<option value='{{ q.id }}'>{{ q.title }}{% if q.shared %} (Shared{% ifnotequal user q.user %} by {{ q.user.get_username }}{% endifnotequal %}){% endif %}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select></p>
|
|
||||||
<input class="btn btn-primary" type='submit' value='{% trans "Run Query" %}'>
|
|
||||||
{% csrf_token %}</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
{{ search_message|safe }}
|
|
||||||
<form method='post' action='{% url 'helpdesk_mass_update' %}' id="ticket_mass_update">
|
|
||||||
<table class="table table-hover table-bordered table-striped">
|
|
||||||
<caption>{% trans "Tickets" %}</caption>
|
|
||||||
<thead>
|
|
||||||
<tr><th>#</th><th> </th><th>{% trans "Pr" %}</th><th>{% trans "Title" %}</th><th>{% trans "Queue" %}</th><th>{% trans "Status" %}</th><th>{% trans "Created" %}</th><th>{% trans "Owner" %}</th></tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for ticket in tickets.object_list %}
|
|
||||||
<tr class="{{ ticket.get_priority_css_class }}">
|
|
||||||
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.ticket }}</a></th>
|
|
||||||
<td><input type='checkbox' name='ticket_id' value='{{ ticket.id }}' class='ticket_multi_select' /></td>
|
|
||||||
<td>{{ ticket.priority }}</td>
|
|
||||||
<th><a href='{{ ticket.get_absolute_url }}'>{{ ticket.title }}</a></th>
|
|
||||||
<td>{{ ticket.queue }}</td>
|
|
||||||
<td>{{ ticket.get_status }}</td>
|
|
||||||
<td><span title='{{ ticket.created|date:"r" }}'>{{ ticket.created|naturaltime }}</span></td>
|
|
||||||
<td>{{ ticket.get_assigned_to }}</td>
|
|
||||||
</tr>
|
|
||||||
{% empty %}
|
|
||||||
<tr><td colspan='5'>{% trans "No Tickets Match Your Selection" %}</td></tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="pagination">
|
|
||||||
<span class="step-links">
|
|
||||||
{% if tickets.has_previous %}
|
|
||||||
<a href="?{% if query_string %}{{ query_string }}&{% endif %}page={{ tickets.previous_page_number }}">{% trans "Previous" %}</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<span class="current">
|
|
||||||
{% blocktrans with tickets.number as ticket_num and tickets.paginator.num_pages as num_pages %}Page {{ ticket_num }} of {{ num_pages }}.{% endblocktrans %}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
{% if tickets.has_next %}
|
|
||||||
<a href="?{% if query_string %}{{ query_string }}&{% endif %}page={{ tickets.next_page_number }}">{% trans "Next" %}</a>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p><label>{% trans "Select:" %} </label> <a href='#select_all' id='select_all'>{% trans "All" %}</a> <a href='#select_none' id='select_none'>{% trans "None" %}</a> <a href='#select_inverse' id='select_inverse'>{% trans "Inverse" %}</a></p>
|
|
||||||
|
|
||||||
<p><label for='id_mass_action'>{% trans "With Selected Tickets:" %}</label> <select name='action' id='id_mass_action'><option value='take'>{% trans "Take (Assign to me)" %}</option><option value='delete'>{% trans "Delete" %}</option><optgroup label='{% trans "Close" %}'><option value='close'>{% trans "Close (Don't Send E-Mail)" %}</option><option value='close_public'>{% trans "Close (Send E-Mail)" %}</option></optgroup><optgroup label='{% trans "Assign To" %}'><option value='unassign'>{% trans "Nobody (Unassign)" %}</option>{% for u in user_choices %}<option value='assign_{{ u.id }}'>{{ u.get_username }}</option>{% endfor %}</optgroup></select> <input type='submit' value='Go' /></p>
|
|
||||||
{% csrf_token %}</form>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user