The following pages don't have primary buttons:

  • admin/config/people/accounts/fields
  • admin/config/people/accounts/form-display
  • admin/config/people/accounts/display
  • admin/config/people/accounts/display/compact
  • admin/config/people/accounts/display/full
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LewisNyman’s picture

chrisfromredfin’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.51 KB

This is actually a fix in the field_ui base classes so this might have larger-scale implications (in a good way).

tompagabor’s picture

Status: Needs review » Needs work
FileSize
64.96 KB

Tested, and it works on these URL-s too:
admin/config/people/accounts/display/compact
admin/config/people/accounts/display/full

Suggestions:
1 - remove whitespace:
2229157-primary_button_types_account_forms-2.patch:12: trailing whitespace.
'#button_type' => 'primary',
2229157-primary_button_types_account_forms-2.patch:28: trailing whitespace.
'#type' => 'submit',

2 - We can add primary class to the ajax forms on the manage display pages. I atttach a screenshot about it:
Need primary button on the ajax form

chrisfromredfin’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
1.93 KB

Sure! Fixed the trailing whitespace and added support for the field settings on manage display in the base class. Also updated issue summary.

tompagabor’s picture

FileSize
96.1 KB

Looks good!
Please test one more person, and if everything is OK, then go RTBC.

tompagabor’s picture

tompagabor’s picture

Status: Needs review » Reviewed & tested by the community

I tested it again.
Everything is working.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Very nice! :)

Committed and pushed to 8.x. Thanks!

  • Commit bd4b9ae on 8.x by webchick:
    Issue #2229157 by cwells, LewisNyman, tompagabor: Add correct button...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.