If a CCK date field is set to have To and From components, then it is shown in a fieldset in the edit form.

However, this fieldset has no CSS class and so is hard to style.

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new730 bytes

Here's a patch.

Note that underscores in the fieldname don't get converted to hyphens and perhaps should -- I know of a helper function in Views that does that, but not one in CCK/Date.

Renee S’s picture

I can confirm that this patch worked for me. Thanks =)

davepoon’s picture

It is working! Thanks.

Renee S’s picture

Is it possible to get this committed before 2.5? It's small but very helpful :)

tommyk’s picture

Version: 6.x-2.4 » 6.x-1.x-dev

#889988: Add css class to fieldset wrapper marked as duplicate

I'd still like to use this in Drupal 6 if anyone can commit this.

Attached is a patch against 6.x-2.x-dev from Git as opposed to the old CVS patch above.

Status: Needs review » Needs work

The last submitted patch, 802556.date_.date-fieldset-class.patch, failed testing.

tommyk’s picture

Status: Needs work » Needs review
StatusFileSize
new522 bytes

Oops, patch wasn't attached properly.

New patch attached with str_replace() to change underscores into hyphens.

Status: Needs review » Needs work

The last submitted patch, date-fieldset-class-802556-5.patch, failed testing.

damienmckenna’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.