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...
This commit is contained in:
2020-02-15 12:33:18 +00:00
parent d5f54b1d88
commit 3a7dc061bb

View File

@@ -1,6 +1,14 @@
{% extends 'base_rigs.html' %} {% extends 'base_rigs.html' %}
{% block title %}RIGS{% endblock %} {% block title %}RIGS{% endblock %}
{% block js %}
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip();
})
</script>
{% endblock %}
{% block content %} {% block content %}
<div class="col-sm-12"> <div class="col-sm-12">
<h1>R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></h1> <h1>R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></h1>
@@ -55,11 +63,11 @@
<div class="list-group"> <div class="list-group">
<div class="list-group-item"> <div class="list-group-item">
<form id="searchForm" class="form" role="form" method="GET"> <form id="searchForm" class="form" role="form" method="GET">
<div class="input-group"> <div class="input-group" data-toggle="tooltip" title="Use the dropdown button to select what to search. The default is Event Archive.">
<input id="id_search_input" type="search" name="q" class="form-control" placeholder="Search Phrase" /> <input id="id_search_input" type="search" name="q" class="form-control" placeholder="Search..." />
<span class="input-group-btn"> <span class="input-group-btn">
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-search"></span> <span class="caret"></button> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-search"></span> Search <span class="caret"></span></button>
<ul id="search-options" class="dropdown-menu"> <ul id="search-options" class="dropdown-menu">
<li><a data-action="{% url 'event_archive' %}" href="#">Events</a></li> <li><a data-action="{% url 'event_archive' %}" href="#">Events</a></li>
<li><a data-action="{% url 'person_list' %}" href="#">People</a></li> <li><a data-action="{% url 'person_list' %}" href="#">People</a></li>
@@ -68,7 +76,6 @@
{% if perms.RIGS.view_invoice %} {% if perms.RIGS.view_invoice %}
<li><a data-action="{% url 'invoice_archive' %}" href="#">Invoices</a></li> <li><a data-action="{% url 'invoice_archive' %}" href="#">Invoices</a></li>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</span> </span>