- Converts all Enabled/Disabled radios to simple checkboxes.
- Rearrange the settings so the huge fieldset for the e-mails is located at the bottom of the page and doesn't obscure the user pictures setting any longer.
- Rename fieldsets, so the word "settings" isn't repeated over and over again. It's quite obvious we're at a settings page.
- Merge the signature and account cancellation settings into a "User account" fieldset, since they are both about settings directly related to user accounts and do not require a fieldset of their own like the user pictures settings do.

These are two 'after' pics:
- The top part of the page containing all changed fields
- Overview of the entire page

Comments

tstoeckler’s picture

Anything that cleans that page up...

Nice work, works great.

catch’s picture

tagging. Screenshots look good, didn't look at patch yet.

yoroy’s picture

Looking good but a 'before' page would still be helpful.

Oooh, look there it is: http://img.skitch.com/20090507-nnm1at43ure82iw4ifd8dys7my.jpg

dries’s picture

I'm delegating this patch to catch. I will commit it when catch thinks it is ready. (@catch, if you don't want to champion this patch, let us know please.)

mcrittenden’s picture

catch’s picture

Status: Needs review » Needs work

All looks good except signatures is now lumped in with user account cancellation. I think we should try to keep it grouped with user pictures if possible (not sure what the fieldset for that should be called though). I kept thinking the checkbox was a setting related to the radios, which of course it isn't.

xano’s picture

The 'problem' with user pictures is that enabling them also enables a bunch of other elements, making things kind of messy if they're not in a dedicated fieldset.

yoroy’s picture

Agree with catch. Extra mess when enabling user pics is not an argument, it's actually pretty nice these only show up after choosing to enable them. So yes, group signatures with user pictures, put it above user pictures and all the extra form fields (screenshot of those) for user pics will not break anything. Then rename the cancellation fieldset to "account cancellation".

Only local images are allowed.

xano’s picture

I don't like the idea of putting only a single form element in a fieldset without a real good reason. Also, can't we convert the four radios used for account cancellation into something simpler? With the current options radios are the best solution, but what if we rephrase or split the options?

Status -> Needs thought.

yoroy’s picture

Then group cancellation with signup options, makes sense to group the options for 'in' and 'out', no?

____ Registration & cancellation ___    <- not pretty, but let's not focus too much on copy writing in this issue

Registration
…
Account cancellation
…
____________________________________


____ Personalisation _______________

Signatures
…
User pictures
…
____________________________________
xano’s picture

Makes sense. I'll post a follow-up this evening :)

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new23.01 KB

I tried using vertical tabs for the e-mail fieldsets, just to see how it looked. I must say it's quite an improvement, although we do need a title for the tabs to indicate it's about the e-mail settings.
Only local images are allowed.

catch’s picture

That looks good, but yeah it needs a title.

xano’s picture

There is currently no way to set a title for vertical tabs. We could either improve vertical tabs with a title or use a markup element instead. Either way, the title would be a piece of HTML not linked to the tabs in the way legends are linked to fieldsets and labels to inputs. Semantically (from a FAPI point of view) it might be best to add titles to vertical tabs first and then finish this issue.

gábor hojtsy’s picture

Good looking changes. Since catch marked #460296: Clean up user settings form duplicate of this one, I am hereby requesting to roll in the Anonymous username setting to this new page. This patch makes the page look much better then my patch did, with a lot more changes obviously.

gábor hojtsy’s picture

Also, while I like "Who can register accounts?", I don't like how it shows up with the colon. Drupal usually does not use this question / answer format anyway.

dries’s picture

Issue tags: +Favorite-of-Dries

Looks good visually. Just tagging to help me keep track of this.

I think this is good use of the vertical tabs (unlike some of the other patches that I've seen) -- like catch et al, I do think it needs a title. Maybe just put it in a fieldset?

I also noticed that some options end with a point, whereas others don't.

xano’s picture

Status: Needs review » Needs work

Putting the tabs in a fieldset makes the page messier than with the current patch. I suggest just adding some sort of a label, either by making vertical tabs accept a #title or by using #markup right before the tabs so it shows as a title. Moving the Anonymous setting is indeed a very good idea. I'll take that into account for the follow-up.

xano’s picture

Status: Needs work » Needs review
Issue tags: +Cleanup
StatusFileSize
new24.8 KB

Only local images are allowed.

dries’s picture

I'd consider renaming 'Enable signatures' to 'Enable signatures for authenticated users'.

Similarly, I'd rename 'Enable pictures' to 'Enable pictures for authenticated users'.

The '?:' in 'Who can register accounts?:' is a bit odd but I'm not sure how to solve that elegantly.

xano’s picture

I forgot the question mark. I'm unsure how we can improve that too. Anonymous users can't personalise their accounts, so I guess it's pretty obvious that user pictures and signatures are for authenticated users only.

gábor hojtsy’s picture

Xano: I think that since you grouped the anonymous username with the authenticated personalization options, it looks more like we support personalization for anonymous (which we do support to some degree via anonymous contact details in comment module, but not here).

dries’s picture

I had exactly the same worry as Gabor in #22.

xano’s picture

Status: Needs review » Needs work

Separate fieldset for settings for anonymous users then?

gábor hojtsy’s picture

Xano: well, I suggested grouping it with the registration setting in my original issue. That seemed logical, since it showed a logical progress from anonymous user to user registration. You already have registration grouped with cancellation. I think it would make sense to put the initial anonymous username there too. That is important for how non-authenticated user posts look before they register and after their account is cancelled (in some cases).

catch’s picture

Putting it right up top above registration works for me too - anonymous - registration - cancellation, nice easy progression.

xano’s picture

There might be other options for anonymous users added by contrib. From this point of view a separate fieldset at the top of the page is best IMO.

akahn’s picture

I have been told that coding standards say to use U.S. English spelling, so 'personalisation' needs to be changed to 'personalization'.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new25.08 KB

The anonymous user name has moved to a separate fieldset at the top of the page. "personalisation" has been changed to "personalization".

catch’s picture

That still leaves the "Who can register accounts?:" issue - which is a very old issue I don't think we should try to fix here. I'd lean towards putting the patch in with that bug exposed, and then try to finally get it fixed before release.
#67211: Show colon after form title only when there is no other punctuation

Xano - could you post another screenshot?

Bojhan’s picture

Can I see more screenshots of the vertical tabs?

catch’s picture

Status: Needs review » Reviewed & tested by the community

I read through the patch and I think this looks fine. Pretty sure the vertical tabs haven't changed since the last screenshot, so RTBC.

dries’s picture

Status: Reviewed & tested by the community » Needs review

@Bojhan: why do you need more screenshots? A couple of screenshots are included above.

sirkitree’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new212.15 KB

Patch works as intended. Very big improvements IMHO! Attached is a full page screenshot and here's a few more screenshots of the vertical tabs:

Only local images are allowed.
Only local images are allowed.
Only local images are allowed.
Only local images are allowed.

Bojhan’s picture

Status: Reviewed & tested by the community » Needs review

Password recovery should be last, you have two groups Welcome and Acount - password recovery looks a bit placed in between these. However shouldn't hold this patch up, I asked for screenshots of Vertical tabs because in the origin patch of this ui pattern I saw some trouble (visually) with slim titles combined with long content area - in this patch it looks fine though.

sirkitree’s picture

StatusFileSize
new27.23 KB

Here's a patch with the vertical tab change mentioned above: password recovery weight I set to 100 which throws it to the bottom of the list. Looks good /methinks
Only local images are allowed.

xano’s picture

#weight => 100 might be a bit overkill. What about just setting it to 1?

Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

Don't know if 100 is the good approach, not any objections from me.

dries’s picture

Status: Reviewed & tested by the community » Needs review

I think we should move 'User settings' from 'Users' to 'Site configuration'. We can do that in another patch.

I think we should remove the trailing dot from most options -- we don't add dots to other options in core, except maybe when they are truly sentences.

Instead of 100, let's use 10.

sirkitree’s picture

StatusFileSize
new27.23 KB
webchick’s picture

Status: Needs review » Needs work

A few more things.

RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.test,v

I am pretty sure this patch has nothing to do with taxonomy.test. ;)

-    '#title' => t('Account cancellation settings'),
+    '#title' => t('Registration and cancellation')

Please leave the comma at the end here, per coding standards.

+      t('Administrators only.'),
+      t('Visitors.'),
+      t('Visitors, but administrator approval is required.'),

No dots. Dries already said that.

+  // If picture support is enabled, check whether the picture directory exists:

exists. Period, not colon.

naheemsays’s picture

Status: Needs work » Needs review

Having a look at this patch - I like the changes, however I personally (and I know - just one voice that is not offering code...) do not like the idea of having a fieldset for anonymous users with just one option in there - could it also be merged with "Registration and cancellation" as was proposed by Gabor in #460296: Clean up user settings form?

I also liked how there was a description for the user pictures and the signatures next to their check boxes.

naheemsays’s picture

Status: Needs review » Needs work

cross posted.

xano’s picture

@nbz: It's a separate fieldset to allow other modules to add options for anonymous users here.

sirkitree’s picture

Status: Needs work » Needs review
StatusFileSize
new24.51 KB

Ok, here's a reroll against HEAD.

- keeps the ',' at the end of the #title change
- removes the periods from t() options
- period, not colon in comment
- weight of password recovery set to 10

webchick’s picture

Status: Needs review » Fixed

Now that's sexy.

Committed to HEAD. Thanks for all the hard work, folks!

Status: Fixed » Closed (fixed)

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

dave reid’s picture

xano’s picture

Assigned: xano » Unassigned