Last modified: 2014-02-12 23:38:02 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 T43780, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41780 - Using mw-collapsible inside multiple form doesn't work
Using mw-collapsible inside multiple form doesn't work
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-05 13:34 UTC by Jamie Thingelstad
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

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


Attachments

Description Jamie Thingelstad 2012-11-05 13:34:14 UTC
I defined a form like this using the mw-collapsible capability to hide 2 of the form fields in the multiple occurring form:

{{{for template|Rating|label=Ratings for this book|multiple}}}
'''Username:''' {{{field|Rating username|size=20|default=current user|mandatory|values from namespace=User|remote autocompletion}}}
<div class="mw-collapsible mw-collapsed">
'''Rating:''' {{{field|Rating|mandatory|input type=dropdown|property=Has rating|values=1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0}}}<br/>
'''Blurb:''' (Wikitext allowed) {{{field|Rating blurb|size=80}}}<br/>
</div>
'''Timestamp:''' {{{field|Rating timestamp|default=now|input type=datetime|mandatory|restricted}}}<br/>
{{{end template}}}

This will work fine for already created form instances. However, when you add a new instance of the form it will display as collapsed and hitting [Expand] doesn't work.

I would guess that jQuery has to be notified that a new collapsible entity exists when it is added to the page?
Comment 1 contrafibularity 2013-05-13 09:49:32 UTC
Just dropping a note that I can confirm this behaviour. 

Background: I'm looking for a way to arrange the options available in multiple-instance forms in such a way that they do not overwhelm the editor. (Multiple rows of HeaderTabs under a single tab would be a great alternative, but HeaderTabs does not (yet) handle that sort of thing. Another thing I've considered is multiple instance templates within multiple instance templates but that does not work either.)

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


Navigation
Links