LP#1981774: use Bootstrap CSS classes for buttons instead of opac-button
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 15 Jul 2022 22:28:24 +0000 (15:28 -0700)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 31 Mar 2023 13:59:51 +0000 (09:59 -0400)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/templates-bootstrap/opac/course_browse.tt2
Open-ILS/src/templates-bootstrap/opac/course_search.tt2
Open-ILS/src/templates-bootstrap/opac/parts/cart.tt2
Open-ILS/src/templates-bootstrap/opac/parts/config-fresh.tt2
Open-ILS/src/templates-bootstrap/opac/parts/config.tt2
Open-ILS/src/templates-bootstrap/opac/parts/place_hold.tt2
Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2
Open-ILS/src/templates-bootstrap/opac/record/print_preview.tt2
Open-ILS/src/templates-bootstrap/opac/sms_cn.tt2

index 15c87fd..39cebeb 100644 (file)
         [% IF ctx.browse_results.size >= blimit %]
         <div class="browse-pager">
             [% IF lower_limit == 0 %]
-            <a class="opac-button" href="[% mkurl('', {didx => pivot_lower}) %]" 
+            <a class="btn btn-opac" href="[% mkurl('', {didx => pivot_lower}) %]"
               onclick="$('browse-pager-spinner-[% id %]').className = '';"
             >&larr; [%l ('Back') %]</a>
             [% END %]
             [% IF upper_limit == 0 %]
-            <a class="opac-button" href="[% mkurl('', {didx => pivot_higher}) %]"
+            <a class="btn btn-opac" href="[% mkurl('', {didx => pivot_higher}) %]"
               onclick="$('browse-pager-spinner-[% id %]').className = '';"
             >[%l ('Next') %] &rarr;</a>
             [% END %]
index 4fc7c8e..2fa1a6e 100644 (file)
         <div id='course_search_submit'>
           <input type="hidden" name="_course" value="1" />
           <span>
-            <input id='search-submit-go' type="submit" value="[% l('Search') %]" title="[% l('Search') %]" class="opac-button"
+            <input id='search-submit-go' type="submit" value="[% l('Search') %]" title="[% l('Search') %]" class="btn btn-opac"
               onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
             <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif[% ctx.cache_key %]'
               class='hidden' alt="[% l('Search in progress icon') %]"/>
           </span>
           <a href="[% mkurl(ctx.opac_root _ '/course_search', {$loc_name => loc_value}, 1) %]"
-            class="opac-button">[% l('Clear Form') %]</a>
+            class="btn btn-deny">[% l('Clear Form') %]</a>
         </div>
       </div>
     </div>
index 9a97f36..8943c47 100755 (executable)
@@ -14,7 +14,7 @@
       [% END %]
       <option value="[% mkurl(ctx.opac_root _ '/mylist/clear', {}) %]">[% l('Clear Basket') %]</option>
     </select>
-    <input class="opac-button" type="button" id="do_basket_action" value="[% l('Go') %]" />
+    <input class="btn btn-action" type="button" id="do_basket_action" value="[% l('Go') %]" />
   </div>
   <div id="record_basket_icon">
      <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
index 0cea9e4..764304e 100755 (executable)
@@ -206,7 +206,7 @@ ctx.depth_sel_checkbox = 1; # Results Page Checkbox Toggle
 ctx.depth_sel_button = 1; # Basic Search Submit Button
 ctx.depth_sel_depth = 0; # Depth to set to
 ctx.depth_sel_button_label = l('All Libraries');
-ctx.depth_sel_button_class = 'opac-button';
+ctx.depth_sel_button_class = 'btn-opac';
 ctx.depth_sel_checkbox_label = l('Show Results from All Libraries');
 ctx.depth_sel_tooltip = l('Select this option to expand your results to all libraries while retaining the priority of your selected library\'s holdings.');
 ctx.depth_sel_resultshint = l('Showing results from all libraries');
index 7409a4b..d9e929c 100755 (executable)
@@ -208,7 +208,7 @@ ctx.depth_sel_checkbox = 1; # Results Page Checkbox Toggle
 ctx.depth_sel_button = 1; # Basic Search Submit Button
 ctx.depth_sel_depth = 0; # Depth to set to
 ctx.depth_sel_button_label = l('All Libraries');
-ctx.depth_sel_button_class = 'opac-button';
+ctx.depth_sel_button_class = 'btn-opac';
 ctx.depth_sel_checkbox_label = l('Show Results from All Libraries');
 ctx.depth_sel_tooltip = l('Select this option to expand your results to all libraries while retaining the priority of your selected librarys holdings.');
 ctx.depth_sel_resultshint = l('Showing results from all libraries');
index 7af5d42..b645b59 100755 (executable)
@@ -116,7 +116,7 @@ function maybeToggleNumCopies(obj) {
               [% l('Patron barcode was not found') %]
             </span>
             [% IF ctx.is_browser_staff %]
-            <button id="hold_usr_search" type="button" class="opac-button" style="display: none;">[% l('Patron Search') %]</button>
+            <button id="hold_usr_search" type="button" class="btn btn-action" style="display: none;">[% l('Patron Search') %]</button>
             [% END %]
             <br />
             <input type="hidden" id="staff_barcode"
index de11514..ca0b90b 100755 (executable)
@@ -64,7 +64,7 @@ IF has_copies or ctx.foreign_copies;
 [% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %]
   <input type="hidden" name="[% p | html %]" value="[% CGI.params.$p | html %]"/>
 [% END %]
-   <button type="submit" class="opac-button">[% l('Use default item sort') %]</button>
+   <button type="submit" class="btn btn-opac">[% l('Use default item sort') %]</button>
 </form>
 [% END %]
 [% END %]
index 8880ba1..c72a217 100644 (file)
@@ -76,7 +76,7 @@
             </div>
             <hr />
             <div>
-                <a class="opac-button" href="[% ctx.redirect_to | html %]">[% l("Return") %]</a>
+                <a class="btn btn-opac" href="[% ctx.redirect_to | html %]">[% l("Return") %]</a>
             </div>
         [% END %]
         <br class="clear-both" />
index 7c958d1..b524724 100755 (executable)
@@ -37,7 +37,7 @@
                                     value="[% l('Submit') %]"
                                     title="[% l('Submit') %]"
                                     alt="[% l('Submit') %]"
-                                    class="opac-button" />
+                                    class="btn btn-action" />
                                 <br/>[% l('Note: carrier charges may apply'); %]
                         </form>
                     [% END %]