Ok, so when configuring the date admin/config/regional/date-time labels are missing on the dates. I think it's set in theme_system_date_time_settings(), but only by removing

unset($form['format'][$key]['#title']);

Was I able to add the label, but I couldn't make that label visible too.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mgifford’s picture

Issue tags: +Accessibility

tagging

mgifford’s picture

Status: Active » Needs review
FileSize
812 bytes

Ok, found the patch that works for this.

mgifford’s picture

It's the same approach used here http://drupal.org/node/884932#comment-3338098

Dries’s picture

Status: Needs review » Needs work
+++ modules/system/system.admin.inc	17 Aug 2010 18:30:02 -0000
@@ -2029,7 +2029,7 @@ function theme_system_date_time_settings
+    $row[] = $form['format'][$key]['#title_display'] = 'invisible';

Not a fan of those double assignments. Let's split this up over multiple lines please. Thanks!

mgifford’s picture

Status: Needs work » Needs review
FileSize
858 bytes

Agreed that looks awkward. Bit better now that it's on two lines.

Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

It adressed Dries his point

mgifford’s picture

Yup. It's better now. Thanks.

mgifford’s picture

#5: system_date_label_v2.patch queued for re-testing.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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

bfroehle’s picture

Status: Closed (fixed) » Needs work
FileSize
85.38 KB

This patch gives me a row of 'invisible'. That cannot possibly be correct.

bfroehle’s picture

Status: Needs work » Needs review
FileSize
923 bytes
80.56 KB

Here's a suggested patch with the corresponding UI change in the attached image.

bfroehle’s picture

Title: Labels missing for date » Extra column of 'invisible' in date and time form
dww’s picture

Title: Extra column of 'invisible' in date and time form » Labels missing for date
Status: Needs review » Reviewed & tested by the community

Yeah, splitting onto 2 lines is a good idea, since one of the assignments, namely to $rows[] should never have happened in the first place. ;)

I tested this manually and confirmed the screenshots. This is a serious UI WTF that we should fix before 7.0 ships.

dww’s picture

Title: Labels missing for date » Extra column of 'invisible' in date and time form

Sorry, x-post on the title change. Status is still RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

mgifford’s picture

that's great news! Thanks everyone! So this will be in the final release of D7?

Status: Fixed » Closed (fixed)
Issue tags: -Accessibility

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