changeset 108:f075650d3e1d

Disable "save query" button in timeseries search view.
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 23 Aug 2011 19:11:25 +0200
parents 22b950fee548
children 598f84f0db4e
files src/ltpdarepo/templates/query.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/templates/query.html	Tue Aug 23 18:04:12 2011 +0200
+++ b/src/ltpdarepo/templates/query.html	Tue Aug 23 19:11:25 2011 +0200
@@ -80,7 +80,7 @@
 
     <input type="submit" value="search" />
 
-    {% if 'admin' in g.identity.roles %}
+    {% if 'query' in request.endpoint and 'admin' in g.identity.roles %}
     <input id="save" type="submit" name="save" value="save query" />
     {% endif %}