Bootstrap Opac: Personal Information Page contains Links as Buttons

Bug #2040314 reported by Garry Collum
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.10
Fix Released
Medium
Unassigned
3.11
Fix Released
Medium
Unassigned

Bug Description

The account information and preferences page in the bootstrap opac (Preferences -> Personal Information) contains several links disguised as buttons: change username, change password, change email, send test email, and change preferred language. These should be changed to buttons.

Garry Collum (gcollum)
Changed in evergreen:
assignee: nobody → Garry Collum (gcollum)
tags: added: bootstrap opac
Revision history for this message
Garry Collum (gcollum) wrote :

A proposed patch is at https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=2a3057e129c994626139a7e02e9865726ca743de

To test the change username button, you must enable "allow multiple username changes" in library settings.

To test the send email button, I set up postfix on my machine to send messages locally and added opensrf@localhost to a patron's record.

Garry Collum (gcollum)
Changed in evergreen:
assignee: Garry Collum (gcollum) → nobody
tags: added: pullrequest
Revision history for this message
Elizabeth Davis (elidavis) wrote :

I have tested this and was able to change username, change password, change email, send test email and changed preferred language.

I will consent to the sign-off on this code with my name, Elizabeth Davis and my email address is <email address hidden>

Revision history for this message
Stephanie Leary (stephanieleary) wrote :

The only one of these links that needs to be changed to a <button> is Send Test Email (the one with href="#" that doesn't go anywhere, but triggers a JS function). The rest of these are legitimately links that take the user to other URLs, and it's fine that they're styled with the Bootstrap button classes.

tags: added: accessibility needswork ux-buttons
removed: pullrequest
Revision history for this message
Stephanie Leary (stephanieleary) wrote :

Here's a branch that copies Garry's changes, but only for the "Send Test Email" button: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sleary/lp2040314-opac-test-email-link-button

His testing notes in #1 still apply for email. We no longer need to enable username changes in the library settings to test this, since that button isn't changing.

tags: added: pullrequest
removed: needswork
Changed in evergreen:
milestone: none → 3.12-beta
status: New → Confirmed
importance: Undecided → Medium
Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
Revision history for this message
Terran McCanna (tmccanna) wrote :

Stephanie - it looks like your branch in comment #4 changes the file in templates, but not in templates-bootstrap.

tags: added: needswork
removed: pullrequest
Changed in evergreen:
assignee: Terran McCanna (tmccanna) → nobody
Revision history for this message
Stephanie Leary (stephanieleary) wrote :

You are right! I've pushed a second commit to handle the templates-bootstrap version as well.

tags: added: pullrequest
removed: needswork
Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
Changed in evergreen:
milestone: 3.12-beta → 3.12-rc
Revision history for this message
Terran McCanna (tmccanna) wrote :

Looks great! Thanks Garry and Stephanie!

Fix merged and pushed back as far as 3_10

Changed in evergreen:
status: Confirmed → Fix Committed
tags: added: signedoff
Changed in evergreen:
assignee: Terran McCanna (tmccanna) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.