diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-11 13:20:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-11 13:20:26 +0100 |
commit | 2b93b526a5e8acf48e4ee112e2f5feb8436be1d2 (patch) | |
tree | ec10fdced7c8748684f3cd16a07f6eb23e324b11 /templates | |
parent | 5accaad402d24f37851d8b85084fda2859b1ae16 (diff) | |
parent | beca2f7f8c96260541387d7135235f72ac86565b (diff) |
Merge remote-tracking branch 'origin/bromley' into bromley
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/dashboard/index.html | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/templates/web/default/dashboard/index.html b/templates/web/default/dashboard/index.html index c54635b2a..a0ef7b911 100644 --- a/templates/web/default/dashboard/index.html +++ b/templates/web/default/dashboard/index.html @@ -11,19 +11,23 @@ #overview tr:nth-child(2) { background-color: #fee; } </style> -<p>Ward: <select name="ward"><option>All</option> - [% FOR ward IN children.values.sort('name') %] - <option value="[% ward.id %]">[% ward.name %]</option> +<form> + +<p>Ward: <select name="ward"><option value=''>All</option> + [% FOR w IN children.values.sort('name') %] + <option value="[% w.id %]"[% ' selected' IF w.id == ward %]>[% w.name %]</option> [% END %] </select> +<input type="submit" value="Look up"> <h2>Performance Overview</h2> -<p>Report category: <select name="category"><option>All</option> - [% FOR category IN categories %] - <option></option> +<p>Report category: <select name="category"><option value=''>All</option> + [% FOR cat_op IN category_options %] + <option value='[% cat_op | html %]'[% ' selected' IF category == cat_op %]>[% cat_op | html %]</option> [% END %] -</select> + </select> +<input type="submit" value="Look up"> <table width="100%" id="overview"> <tr> @@ -111,7 +115,16 @@ <h2>Reports</h2> -<p>Report state: <select name="state"><option>All</option></select> + </select> +<p>Report state: <select name="state"> +<option value=''>All</option> + [% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating', + loc('Investigating')], ['planned', loc('Planned')], ['in progress', + loc('In Progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %] + <option [% 'selected ' IF state.0 == q_state %] value="[% state.0 %]">[% state.1 %]</option> + [% END %] +</select> +<input type="submit" value="Look up"> <table width="100%"> <tr> @@ -128,4 +141,6 @@ </tr> </table> +</form> + [% INCLUDE 'footer.html' %] |