mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +00:00
* Added search to person, venue, organisation and event archive
* Added search to invoice archive
* Added event search to homepage
* Tidy up event search logic and optimise
* Fixed merge issues
* Stopped 404 on failed search
* Set default ordering of people, organisations & venues to alphabetical (rather than order of addition to database)
* Added invoice search to home page (if you have permissions)
* Made invoice archive sort by reverse invoice date (rather than order added to database)
* Added search help page (very pretty)
* Made single search box for all search types
* FIX: Missing date field breaking archive view
* FEAT: Add omnisearch to header
Tis a bit broken on mobile at the moment...
* CHORE: Conform old code to pep8
* FIX: Select the event form, not the search one in tests!
* Revert "FEAT: Add omnisearch to header"
This reverts commit 6bcb242d6b because it caused MANY more problems than anticipated...
* FIX: Stop 404 on failed search, again
* FEAT: Basic testing of search
* Use a tooltip to help explain the UX
Obviously since it needs a tooltip it isn't brilliant UX but the best I can think of for now...
Co-authored-by: Tom Price <tom@codedinternet.com>
Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: Arona Jones <aj@aronajones.com>
70 lines
3.8 KiB
HTML
70 lines
3.8 KiB
HTML
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
|
|
|
{% block title %}Search Help{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
{% if not request.is_ajax %}
|
|
<div class="col-sm-12">
|
|
<h1>Search Help</h1>
|
|
</div>
|
|
{% endif %}
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Searching Events</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
Searches for entire query in:
|
|
<button type="button" class="btn btn-default btn-xs">name</button>
|
|
<button type="button" class="btn btn-default btn-xs">description</button> and
|
|
<button type="button" class="btn btn-default btn-xs">notes</button>
|
|
</p>
|
|
<p>You can search for an event by <button type="button" class="btn btn-default btn-xs">event_id</button> by entering an integer, or using the format <code>N01234</code></p>
|
|
<p>On the search results page you can also specify the date range for the <button type="button" class="btn btn-default btn-xs">start_date</button> of the event</p>
|
|
<p>Events are sorted in reverse <button type="button" class="btn btn-default btn-xs">start_date</button> order (most recent events at the top)</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Searching People/Organisations/Venues</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
Searches for entire search phrase in:
|
|
<button type="button" class="btn btn-default btn-xs">name</button>
|
|
<button type="button" class="btn btn-default btn-xs">email</button>
|
|
<button type="button" class="btn btn-default btn-xs">address</button>
|
|
<button type="button" class="btn btn-default btn-xs">notes</button> and
|
|
<button type="button" class="btn btn-default btn-xs">phone</button>
|
|
</p>
|
|
<p>You can search for an entry by <button type="button" class="btn btn-default btn-xs">id</button> by entering an integer</p>
|
|
<p>Entries are sorted in alphabetical order by <button type="button" class="btn btn-default btn-xs">name</button></p>
|
|
</div>
|
|
</div>
|
|
|
|
{% if perms.RIGS.view_invoice %}
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Searching Invoices</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
Searches for entire search phrase in:
|
|
<button type="button" class="btn btn-default btn-xs">event__name</button>
|
|
</p>
|
|
<p>You can search for an event's invoice by entering the <button type="button" class="btn btn-default btn-xs">event_id</button> using the format <code>N01234</code></p>
|
|
<p>You can search for an invoice by <button type="button" class="btn btn-default btn-xs">invoice_id</button> using the format <code>#01234</code></p>
|
|
<p>Entering a raw integer will search by both <button type="button" class="btn btn-default btn-xs">invoice_id</button> and <button type="button" class="btn btn-default btn-xs">event_id</button></p>
|
|
<p>Entries are sorted in reverse <button type="button" class="btn btn-default btn-xs">invoice_date</button> order</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %} |