diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/list/list.html.tmpl | 10 | ||||
-rw-r--r-- | template/en/default/search/knob.html.tmpl | 13 |
2 files changed, 21 insertions, 2 deletions
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index c0291024c..80348906f 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -22,6 +22,7 @@ [%# INTERFACE: # searchtype: string. Type of search - either "series", "saved" or undef. # ... + # defaultsavename: string. The default name for saving the query. #%] [%############################################################################%] @@ -159,7 +160,11 @@ [% END %] <td valign="middle"> - <a href="query.cgi?[% urlquerypart FILTER html %]">Edit Search</a> + [% editqueryname = searchname OR defaultsavename OR '' %] + <a href="query.cgi?[% urlquerypart FILTER html %] + [% IF editqueryname != '' %]&known_name= + [% editqueryname FILTER url_quote %] + [% END %]">Edit Search</a> </td> [% IF searchtype == "saved" %] @@ -179,7 +184,8 @@ value="[% urlquerypart FILTER html %]"> <input type="hidden" name="cmdtype" value="doit"> <input type="hidden" name="remtype" value="asnamed"> - <input type="text" name="newqueryname" size="20"> + <input type="text" name="newqueryname" size="20" + value="[% defaultsavename FILTER html %]"> </form> </td> [% END %] diff --git a/template/en/default/search/knob.html.tmpl b/template/en/default/search/knob.html.tmpl index c92ad92cc..68d279047 100644 --- a/template/en/default/search/knob.html.tmpl +++ b/template/en/default/search/knob.html.tmpl @@ -21,6 +21,15 @@ # Jouni Heikniemi <jouni@heikniemi.net> #%] +[%# INTERFACE: + # (incomplete!) + # ... + # known_name: string. Possibly known stored name for the query being + # edited. This value is just passed through in a + # hidden field. + #%] + + [% PROCESS global/variables.none.tmpl %] [%# This is not necessary for English templates, but useful for localisers. %] @@ -46,6 +55,10 @@ <p> <input type="submit" value="[% button_name FILTER html %]"> + [% IF known_name %] + <input type="hidden" name="query_based_on" + value="[% known_name FILTER html %]"> + [% END %] </p> <p> |