Bug 16065

Summary: Use Font Awesome icons in dialog when duplicate patron is suspected
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: brendan, testopia, veron
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/members/memberentry.pl
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14915
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 16066    
Attachments: Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected
Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected
Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected

Description Owen Leonard 2016-03-14 15:05:43 UTC
When adding a new patron, if a duplicate patron is suspected a dialog is shown. This dialog should use Font Awesome icons.
Comment 1 Owen Leonard 2016-03-14 15:14:27 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-03-14 16:06:16 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2016-03-15 15:01:23 UTC
Created attachment 49174 [details] [review]
Bug 16065 - Use Font Awesome icons in dialog when duplicate patron is suspected

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.

Followed test plan, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Brendan Gallagher 2016-03-21 21:29:52 UTC
Pushed to Master - Should be in the May 2016 release.  Thanks!