Bugzilla – Attachment 49099 Details for
Bug 16065
Use Font Awesome icons in dialog when duplicate patron is suspected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected
Bug-16065---Use-Font-Awesome-icons-in-dialog-when-.patch (text/plain), 3.36 KB, created by
Owen Leonard
on 2016-03-14 15:14:27 UTC
(
hide
)
Description:
Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-03-14 15:14:27 UTC
Size:
3.36 KB
patch
obsolete
>From c9656490a3e5ce8b56578117376a8d182b9cda5a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 14 Mar 2016 11:07:14 -0400 >Subject: [PATCH] Bug 16065 - Use Font Awesome icons in dialog when duplicate > patron is suspected >Content-Type: text/plain; charset="utf-8" > >This patch updates the new patron template to use Font Awesome icons in >the dialog which is shown when a duplicate patron is suspected. > >The patch modifies the CSS rules for a dialog button with "white-space: >pre-line" so that line breaks in button text markup are treated as line >breaks on display. Allowing the text to wrap prevents the buttons from >being too wide and stacking one below the other. > >To test, apply the patch and go to Patrons -> New patron. > >- Attempt to save a new patron with details matching an existing patron > in order to trigger the duplicate patron warning. >- Confirm that the resulting dialog is styled correctly. >- Confirm the behavior of both the 'Edit existing' and 'Save as new' > buttons. >--- > koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 8 +++++--- > 2 files changed, 6 insertions(+), 3 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 e6116ce..25a940c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -1203,6 +1203,7 @@ div.alert strong { > border-left-color: #666; > margin : .4em; > padding : .4em; >+ white-space: pre-line; > } > > .dialog button:hover { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index d470166..3a8f7c3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -206,16 +206,18 @@ function select_user(borrowernumber, borrower) { > [% IF ( check_member ) %] > <div class="dialog alert"> > <h3>Duplicate patron record?</h3> >- <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');" >View existing record</a></p> >+ <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');return false;" >View existing record</a></p> > <form action="/cgi-bin/koha/members/memberentry.pl" method="get"> > <input type="hidden" name="op" value="modify" /> > <input type="hidden" name="borrowernumber" value="[% check_member %]" /> >- <input class="edit" type="submit" value="It is a duplicate. Edit existing record" /> >+ <button type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate. >+ Edit existing record</button> > </form> > > <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off"> > <input type="hidden" name="nodouble" value="1" /> >- <input class="new" type="submit" value="Not a duplicate. Save as new record" /> >+ <button type="submit" class="new"><i class="fa fa-plus"></i> Not a duplicate. >+ Save as new record</button> > </div> > [% 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 16065
:
49099
|
49112
|
49174