Bug 18917: Use font-awesome buttons for CSV profiles
authorAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 10 Jul 2017 02:12:18 +0000 (02:12 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Jul 2017 19:42:04 +0000 (16:42 -0300)
To test:
1) Go to Tools -> CSV profiles
2) Notice old style of links for Edit and Delete
3) Apply patch and refresh page
4) Notice buttons for Edit and Delete
5) Confirm they work as expected

Sponsored-by: Catalyst IT
Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt

index cd5c78a..40f64f5 100644 (file)
@@ -273,8 +273,7 @@ function reloadPage(p) {
                 <th>CSV separator</th>
                 <th>CSV type</th>
                 <th>Usage</th>
-                <th>&nbsp;</th>
-                <th>&nbsp;</th>
+                <th>Actions</th>
             </thead>
             <tbody>
                 [% FOREACH csv_profile IN csv_profiles %]
@@ -286,8 +285,10 @@ function reloadPage(p) {
                     <td>[% csv_profile.csv_separator %]</td>
                     <td>[% PROCESS type_description type_code = csv_profile.type %]</td>
                     <td>[% PROCESS used_for_description used_for_code = csv_profile.used_for %]</td>
-                    <td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&amp;export_format_id=[% csv_profile.export_format_id %]">Edit</a></td>
-                    <td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&amp;export_format_id=[% csv_profile.export_format_id %]">Delete</a></td>
+                    <td class="actions">
+                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&amp;export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
+                        <a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&amp;export_format_id=[% csv_profile.export_format_id %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
+                    </td>
                 </tr>
                 [% END %]
             </tbody>