[Koha-patches] [PATCH] Bug 9677 - Style button on notices and slips page with Bootstrap

Owen Leonard oleonard at myacpl.org
Thu Feb 20 15:49:54 CET 2014


The toolbar button on the Notices & Slips page isn't styled with
Bootstrap as other toolbar buttons are. This patch corrects this.

The patch also removes some obsolete CSS.

To test go to Tools -> Notices and Slips. The toolbar button should look
correct and work correctly.
---
 .../intranet-tmpl/prog/en/css/staff-global.css     |    6 ------
 .../intranet-tmpl/prog/en/modules/tools/letter.tt  |    4 ++--
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
index 4aa7b83..2a04c35 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -397,17 +397,11 @@ dd {
 
 div#toolbar {
        background-color : #EDF4F6;
-	margin-bottom : .7em;
      padding: 5px 5px 5px 5px;
       border-radius: 5px 5px 0 0;
     border: 1px solid #E6F0F2;
 }
 
-div#toolbar .yui-menu-button button,
-div#toolbar .yui-button-button button {
-	line-height : 1.7em;
-}
-
 ul.toolbar {
 	padding-left : 0;
 }
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
index d4c864b..c414787 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
@@ -135,8 +135,8 @@ $(document).ready(function() {
             </select>
       </p>
     [% END %]
-      <div id="toolbar">
-	      <input type="submit" id="newnotice" value="New Notice" />
+      <div id="toolbar" class="btn-toolbar">
+          <button type="submit" class="btn btn-small" id="newnotice"><i class="icon-plus"></i> New notice</button>
         <input type="hidden" id="op" name="op" />
       </div>
     </form>
-- 
1.7.9.5


More information about the Koha-patches mailing list