From 97da25f286aa91d903ee874c3bd49dad78992523 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 26 Jan 2012 14:24:07 -0500 Subject: [PATCH] kpac : basic search box Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/src/templates/kpac/parts/searchbox.tt2 | 43 +++++++++++++++++++++++++ Open-ILS/src/templates/kpac/parts/subpage.tt2 | 40 ++--------------------- 2 files changed, 45 insertions(+), 38 deletions(-) create mode 100644 Open-ILS/src/templates/kpac/parts/searchbox.tt2 diff --git a/Open-ILS/src/templates/kpac/parts/searchbox.tt2 b/Open-ILS/src/templates/kpac/parts/searchbox.tt2 new file mode 100644 index 0000000000..d53cb9e654 --- /dev/null +++ b/Open-ILS/src/templates/kpac/parts/searchbox.tt2 @@ -0,0 +1,43 @@ +
[% l('New Search') %]
+
+
+ +
+ + + [% + types = [ + {keyword => l('Word')}, + {title => l('Title')}, + {author => l('Author')} + ]; + FOR qtype_blob IN types; + qtype = qtype_blob.keys.0 %] + + + [% IF !loop.last %] + + [% END %] + [% END %] + +
+ +
 
+
 
+
+ + +
+
 
+
+ +
+
+ diff --git a/Open-ILS/src/templates/kpac/parts/subpage.tt2 b/Open-ILS/src/templates/kpac/parts/subpage.tt2 index 785f2d8cc5..29d3a18a7c 100644 --- a/Open-ILS/src/templates/kpac/parts/subpage.tt2 +++ b/Open-ILS/src/templates/kpac/parts/subpage.tt2 @@ -1,8 +1,6 @@ [% PROCESS 'kpac/parts/util.tt2'; WRAPPER "kpac/parts/base.tt2" %] - +
@@ -20,41 +18,7 @@ subpage is the main wrapper page for everything except 'index'
-
New Search
-
- -
- - - - - - - - - - - -
- -
 
- -
 
- -
-
 
-
- -
-
 
-
- search -
+ [% INCLUDE 'kpac/parts/searchbox.tt2' %]
 
-- 2.11.0