Bug 16048: Making notices actions buttons
authorAleisha <aleishaamohia@hotmail.com>
Thu, 10 Mar 2016 22:45:25 +0000 (22:45 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 11 Mar 2016 23:01:38 +0000 (23:01 +0000)
EDIT: Adding no wrap class to Actions column for when libraries with longer names mess up formatting

To test:
1) Go to Tools -> Notices and slips (tools/letter.pl)
2) Confirm that all actions (Copy, Edit and Delete) now show as font awesome buttons and work as expected

Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
I have a couple of corrections in a follow-up.

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/tools/letter.tt

index 1f7ad2b..91f6f10 100644 (file)
@@ -200,8 +200,7 @@ $(document).ready(function() {
                 <th>Code</th>
                 <th>Name</th>
                 <th>Copy notice</th>
-                <th>&nbsp;</th>
-                <th>&nbsp;</th>
+                <th>Actions</th>
               </tr>
             </thead>
             <tbody>
@@ -224,18 +223,16 @@ $(document).ready(function() {
                         [% ELSE %]
                           [% select_for_copy %]
                         [% END %]
-                        <input type="submit" value="Copy" />
+                        <button class="btn btn-mini"><i class="fa fa-clone"></i> Copy</button>
                       </form>
                     [% END %]
                   </td>
-                  <td>
+                  <td style="white-space: nowrap">
                     [% IF can_edit %]
-                      <a href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;branchcode=[% lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]">Edit</a>
+                      <a class="btn btn-mini" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;branchcode=[% lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]"><i class="fa fa-pencil"></i> Edit</a>
                     [% END %]
-                  </td>
-                  <td>
                     [% IF !lette.protected && can_edit %]
-                      <a href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&amp;branchcode=[%lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]">Delete</a>
+                      <a class="btn btn-mini" href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&amp;branchcode=[%lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]"><i class="fa fa-trash"></i> Delete</a>
                     [% END %]
                   </td>
                 </tr>