Last modified: 2009-11-01 04:57:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23065, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21065 - Format complete checkbox items using class parameter
Format complete checkbox items using class parameter
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-09 04:34 UTC by Jack D. Pond
Modified: 2009-11-01 04:57 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
mod allows class parameter to apply to entire checkbox selection, not just the checkbox itself (1.05 KB, patch)
2009-10-09 04:36 UTC, Jack D. Pond
Details
Example of form with inline (horizontal) and block (verticle) checklists (234.51 KB, image/png)
2009-10-09 19:10 UTC, Jack D. Pond
Details

Description Jack D. Pond 2009-10-09 04:34:48 UTC
The class parameter in the field tag for type=checklist applies only to the <input . . ./> tag, or the check box itself.  As written, the <span class="checkboxSpan"> actually determines the formatting of the whole selection.  Would it be better if the class parameter applied to the entire <span> rather than only to the <input . . ./> tag?

This would allow the custom formatting of each checklist field by allowing a class to be specified rather than the entire wiki by modifying the span.checkbox css style.

One example of this modification would be to allow a vertical checkbox list when needed (rather than defaulting the entire wiki to vertical checkboxes)

Example:

{{{field|Checklist|input type=checklist|class=checkboxSpanVertical}}}

When coupled with a corresponding class in MediaWiki:Common.css such as
<pre>
/***** 6. SW Forms - custom formatting *****/
span.checkboxSpanVertical {display:block;}
</pre>

I don't think the intention of the class was to format only the actual checkbox (without formatting the text), this just corrects the problem.
Comment 1 Jack D. Pond 2009-10-09 04:36:12 UTC
Created attachment 6653 [details]
mod allows class parameter  to apply to entire checkbox selection, not just the checkbox itself
Comment 2 Jack D. Pond 2009-10-09 19:10:57 UTC
Created attachment 6655 [details]
Example of form with inline (horizontal) and block (verticle) checklists

Attached example of a form that needs both inline (horizontal) checklists and block (Vertical) checklists
Comment 3 Yaron Koren 2009-11-01 04:57:36 UTC
Thanks for the patch; this was added in SF 1.8.5.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links