Clean-up of expert and numeric forms.
authorBill Ott <bott@grpl.org>
Wed, 18 Sep 2013 15:12:20 +0000 (11:12 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:41:41 +0000 (18:41 -0400)
Again, toward the mobilization of advanced searches.  Allow the forms to resize happily.

Signed-off-by: Bill Ott <bott@grpl.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/advanced/expert.tt2
Open-ILS/src/templates/opac/parts/advanced/numeric.tt2

index 722e7ed..c31abd4 100644 (file)
@@ -1169,6 +1169,8 @@ a.dash-link:hover { text-decoration: underline !important; }
 .staff-hold { background-color: [% css_colors.accent_lightest %]; }
 .expert-search tbody tr th { text-align: right; padding-left: 2em; }
 .expert-search-row { padding-top: 10px; }
+#adv_expert_row label { font-weight: bold; }
+
 .bookshelf thead tr td {
     border-bottom: 1px dashed [% css_colors.accent_dark %];
     padding-bottom: 1ex;
index 4d069d0..1abc365 100644 (file)
@@ -4,12 +4,16 @@
     <table class="expert-search">
         <tbody id="adv_expert_rows_here">
             <tr id="adv_expert_row">
-                <th><label for="expert_tag">[% l("Tag:") %]</label></th>
-                <td><input id="expert_tag" type="text" name="tag" size="3" autofocus /></td>
-                <th><label for="expert_subfield">[% l("Subfield:") %]</label></th>
-                <td><input id="expert_subfield" type="text" name="subfield" size="1" /></td>
-                <th><label for="expert_term">[% l("Value:") %]</label></th>
-                <td><input id="expert_term" type="text" name="term" size="16" /></td>
+                <td>
+                   <label for="expert_tag">[% l("Tag:") %]</label>
+                    <input id="expert_tag" type="text" name="tag" size="3" autofocus />
+                    <label for="expert_subfield">[% l("Subfield:") %]</label>
+                    <input id="expert_subfield" type="text" name="subfield" size="1" />
+                   <span style="white-space:nowrap">
+                       <label for="expert_term">[% l("Value:") %]</label>
+                       <input id="expert_term" type="text" name="term" size="16" />
+                   </span>
+               </td>
                 <td>
                     <a href="javascript:;" class="row-remover"
                         title="[% l('Remove row') %]" alt="[% l('Remove row') %]"
index d5df951..d471308 100644 (file)
@@ -2,9 +2,8 @@
     <div class="header_middle">[% l("Numeric Search") %]</div>
     <input type="hidden" name="contains" value="contains" />
     <input type="hidden" name="_special" value="1" />
-    <table>
-        <tr>
-            <td><label for="numeric_qtype"><strong>[% l("Field:") %]</strong></label>
+    <div id='adv_numeric_block'>
+            <label for="numeric_qtype"><strong>[% l("Field:") %]</strong></label>
                 <select id="numeric_qtype" name="qtype">
                     <!-- TODO: Pull labels from config.metabib_field.label -->
                     <option value="identifier|isbn">[% l('ISBN') %]</option>
                     <option value="item_barcode">[% l('Item Barcode') %]</option>
                 </select>
                 </label>
-            </td>
-            <td>
+       
                 <input type="text" name="query" size="16" autofocus placeholder='[% l("Identifier") %]' />
-            </td>
-        </tr>
-        <tr>
+           <br/>
             [%- lib_select_id="numeric_search_library" -%]
-            <td colspan="2"><label for="[% lib_select_id %]"><strong>[% l("Search Library:") %]</strong>
+            <label for="[% lib_select_id %]"><strong>[% l("Search Library:") %]</strong>
                   [% PROCESS "opac/parts/org_selector.tt2";
                      INCLUDE build_org_selector id=lib_select_id show_loc_groups=1
                   %]
-                </label>
-            </td>
-        </tr>
-        <tr>
-            <td colspan="2" align="right">
+            </label>
+           <br/>
                 <input type="submit" alt="[% l('Search') %]"
                     value="[% l('Search') %]" class="opac-button" />
-            </td>
-    </table>
+    </div>
 </form>