Bug 16075: Making numbering patterns actions buttons
authorAleisha <aleishaamohia@hotmail.com>
Tue, 15 Mar 2016 06:26:06 +0000 (06:26 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 23 Mar 2016 01:04:42 +0000 (01:04 +0000)
To test:

1) Go to Serials -> Manage numbering patterns
2) Confirm that buttons 'Edit' and 'Delete' show as buttons and work as
   expected
3) Confirm that when you make your window narrow, the column with the
   buttons does not wrap
4) Confirm that column heading is now 'Actions'

Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Buttons look correct and work correctly.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt

index e1a15e2..f960c5f 100644 (file)
@@ -316,7 +316,7 @@ $(document).ready(function(){
                 <th>Description</th>
                 <th>Numbering formula</th>
                 <th>Display order</th>
-                <th>&nbsp;</th>
+                <th>Actions</th>
               </tr>
             </thead>
             <tbody>
@@ -326,9 +326,9 @@ $(document).ready(function(){
                   <td>[% numberpattern.description %]</td>
                   <td>[% numberpattern.numberingmethod %]</td>
                   <td>[% numberpattern.displayorder %]</td>
-                  <td>
-                    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]">Edit</a> |
-                    <a class="delete_pattern" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]">Delete</a>
+                  <td class="actions">
+                    <a class="btn btn-mini" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]"><i class="fa fa-pencil"></i> Edit</a>
+                    <a class="delete_pattern btn btn-mini" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]"><i class="fa fa-trash"></i> Delete</a>
                   </td>
                 </tr>
               [% END %]