[rfdoc] push by janne.piironen@gmail.com - Minor UI improvements. Wrote help for search options. on 2014-03-27 12:30 GMT

5 views
Skip to first unread message

codesite...@google.com

unread,
Mar 27, 2014, 8:30:43 AM3/27/14
to rfdoc-...@googlegroups.com
Revision: a2d60ab5510f
Branch: default
Author: Janne Piironen <janne.p...@gmail.com>
Date: Thu Mar 27 12:27:53 2014 UTC
Log: Minor UI improvements. Wrote help for search options.
http://code.google.com/p/rfdoc/source/detail?r=a2d60ab5510f

Modified:
/src/rfdoc/rfdocapp/static/default.css
/src/rfdoc/rfdocapp/static/rfdoc.js
/src/rfdoc/rfdocapp/templates/search_form.html

=======================================
--- /src/rfdoc/rfdocapp/static/default.css Thu Mar 27 06:30:35 2014 UTC
+++ /src/rfdoc/rfdocapp/static/default.css Thu Mar 27 12:27:53 2014 UTC
@@ -147,6 +147,24 @@
.form-options {
border: 1px dashed #eee;
}
+a.help {
+ font-size: 0.5em;
+}
+div.help {
+ display: none;
+ border: 1px solid #000;
+ background-color: #eee;
+}
+div.help h3 {
+ margin: 10px;
+}
+div.help table {
+ margin: 10px;
+ border-spacing: 10px;
+}
+div.help th {
+ text-align: right;
+}

/* Search */
table#search {
=======================================
--- /src/rfdoc/rfdocapp/static/rfdoc.js Wed Mar 26 21:51:18 2014 UTC
+++ /src/rfdoc/rfdocapp/static/rfdoc.js Thu Mar 27 12:27:53 2014 UTC
@@ -2,4 +2,8 @@
$('.versions-current').click(function(){
$('#versions dl').toggle();
});
+
+ $('a.help').click(function(){
+ $('div.help').toggle();
+ });
});
=======================================
--- /src/rfdoc/rfdocapp/templates/search_form.html Tue Feb 25 11:54:12 2014
UTC
+++ /src/rfdoc/rfdocapp/templates/search_form.html Thu Mar 27 12:27:53 2014
UTC
@@ -14,13 +14,41 @@
</td>
</tr>
<tr>
- <td><label for="id_search_version">Filter version</label></td>
+ <td><label for="id_search_version">Version filter</label></td>
<td>{{ form.search_version }}</td>
<td></td>
<td></td>
</tr>
+ <tr>
+ <td></td>
+ <td>
+ <input type="submit" name="search_button" value="Search" />
+ <a class="help" href="#">Show help</a>
+ </td>
+ <td></td>
+ <td></td>
+ </tr>
</table>
- <p>
- <input type="submit" name="search_button" value="Search" />
- </p>
+ <div class="help">
+ <h3>Search options:</h3>
+ <table>
+ <tr>
+ <th>Search term</th>
+ <td>Text needs to only match a part of the keywords and/or
documentation.</td>
+ </tr>
+ <tr>
+ <th>Also Documentation</th>
+ <td>Search also keyword documentation.</td>
+ </tr>
+ <tr>
+ <th>Case-insensitive</th>
+ <td>Make the search term case-insensitive.</td>
+ </tr>
+ <tr>
+ <th>Version filter</th>
+ <td>Only match the versions matching the filter term. The
term be an exact match but wild cards
+ ? (one character) and * (any number of characters) are
supported.</td>
+ </tr>
+ </table>
+ </div>
</form>
Reply all
Reply to author
Forward
0 new messages