Bugzilla – Attachment 49008 Details for
Bug 16048
Making notices actions buttons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16048 [Follow-up] Making notices actions buttons
Bug-16048-Follow-up-Making-notices-actions-buttons.patch (text/plain), 3.49 KB, created by
Owen Leonard
on 2016-03-11 13:11:52 UTC
(
hide
)
Description:
Bug 16048 [Follow-up] Making notices actions buttons
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-03-11 13:11:52 UTC
Size:
3.49 KB
patch
obsolete
>From de962f44ab7dba95bd0327c7dbbce0ee0c49ca8b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 11 Mar 2016 08:06:30 -0500 >Subject: [PATCH] Bug 16048 [Follow-up] Making notices actions buttons >Content-Type: text/plain; charset="utf-8" > >This followup adds a "td.actions" style with "white-space:nowrap" and >replaces the inline styles. Also modified is the way non-sorting table >columns are defined. This corrects a problem with non-sortable columns >introducted by the previous patch's column changes. > >To test, apply the patch and clear your browser cache if necessary. > >- Go to Tools -> Notices and confirm that even at narrow browser widths > the "Edit" and "Delete" buttons stay side by side. >- Confirm that all columns are sortable except "Copy notice" and > "Actions." >--- > koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 10 +++++----- > 2 files changed, 9 insertions(+), 5 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 8abb9ee..e6116ce 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -237,6 +237,10 @@ table.indexes td { > vertical-align : middle; > } > >+td.actions { >+ white-space: nowrap; >+} >+ > td.borderless { > border-collapse : separate; > border : 0 none; >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 91f6f10..7b86d93 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -12,7 +12,7 @@ $(document).ready(function() { > $("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, { > "sDom": 't', > "aoColumnDefs": [ >- { "aTargets": [ -1,-2, -3 ], "bSortable": false, "bSearchable": false } >+ { "bSortable": false, "bSearchable": false, 'aTargets': [ 'nosort' ] } > ], > "bPaginate": false > })); >@@ -199,8 +199,8 @@ $(document).ready(function() { > <th>Module</th> > <th>Code</th> > <th>Name</th> >- <th>Copy notice</th> >- <th>Actions</th> >+ <th class="nosort">Copy notice</th> >+ <th class="nosort">Actions</th> > </tr> > </thead> > <tbody> >@@ -211,7 +211,7 @@ $(document).ready(function() { > <td>[% lette.module %]</td> > <td>[% lette.code %]</td> > <td>[% lette.name %]</td> >- <td style="white-space: nowrap"> >+ <td class="actions"> > [% IF !independant_branch || !lette.branchcode %] > <form method="post" action="/cgi-bin/koha/tools/letter.pl"> > <input type="hidden" name="op" value="copy_form" /> >@@ -227,7 +227,7 @@ $(document).ready(function() { > </form> > [% END %] > </td> >- <td style="white-space: nowrap"> >+ <td class="actions"> > [% IF can_edit %] > <a class="btn btn-mini" href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode %]&module=[% lette.module %]&code=[% lette.code %]"><i class="fa fa-pencil"></i> Edit</a> > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16048
:
48979
|
48980
|
49007
|
49008
|
49010
|
49011