Bug 15989 [Follow-up] Making classification sources actions buttons
authorOwen Leonard <oleonard@myacpl.org>
Fri, 11 Mar 2016 17:56:11 +0000 (12:56 -0500)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 23 Mar 2016 21:03:50 +0000 (21:03 +0000)
This trivial follow-up adds an "actions" class to the table cell
containing the new buttons. In conjunction with the style update in Bug
16048, this will prevent the buttons from wrapping at narrow browser
window widths.

Also changed in this patch: A couple of capitalization errors.

To test, apply the patch for Bug 16048 and go to Administration ->
Classification sources. Confirm that the "Edit" and "Delete" buttons do
not stack on top of each other even at narrow browser widths.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt

index 71a1c39..4b233d2 100644 (file)
@@ -247,8 +247,8 @@ function CheckRuleForm(f) {
   <tr>
     <th>Code</th>
     <th>Description</th>
-    <th>In Use</th>
-    <th>Filing Rule</th>
+    <th>In use</th>
+    <th>Filing rule</th>
     <th>Actions</th>
   </tr>
   [% FOREACH class_source IN class_sources %]
@@ -257,7 +257,7 @@ function CheckRuleForm(f) {
     <td>[% class_source.description %]</td>
     <td>[% IF ( class_source.used ) %]Yes[% ELSE %]No[% END %]</td>
     <td>[% class_source.sortrule %]</td>
-    <td>
+    <td class="actions">
       <a class="btn btn-mini" href="[% class_source.script_name %]?op=edit_source&amp;class_source=[% class_source.code |html %]"><i class="fa fa-pencil"></i> Edit</a>
       <a class="btn btn-mini" href="[% class_source.script_name %]?op=delete_source&amp;class_source=[% class_source.code |html %]"><i class="fa fa-trash"></i> Delete</a>
     </td>
@@ -289,7 +289,7 @@ function CheckRuleForm(f) {
     <td>[% class_sort_rule.rule %]</td>
     <td>[% class_sort_rule.description %]</td>
     <td>[% class_sort_rule.sort_routine %]</td>
-    <td>
+    <td class="actions">
       <a class="btn btn-mini" href="[% class_sort_rule.script_name %]?op=edit_sort_rule&amp;sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-pencil"></i> Edit</a>
       <a class="btn btn-mini" href="[% class_sort_rule.script_name %]?op=delete_sort_rule&amp;sort_rule=[% class_sort_rule.rule |html %]"><i class="fa fa-trash"></i> Delete</a>
     </td>