Last modified: 2014-02-12 23:37:56 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 T27914, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25914 - A new input type for an enumeration with multiple values allowed
A new input type for an enumeration with multiple values allowed
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Yaron Koren
:
: 25913 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-13 15:10 UTC by skew
Modified: 2014-02-12 23:37 UTC (History)
1 user (show)

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


Attachments

Description skew 2010-11-13 15:10:07 UTC
In your (Yaron's) words:

"A new input type for an enumeration with multiple values allowed - 
instead of a listbox or checkboxes, have each additional value be 
selectable using a separate dropdown, with the ability to add or 
remove dropdowns using buttons."

Synopsis:

On a form, a declaration that might be similar to

Contributors:
{{field|Names|input type=combobox|multiple|add_button_text="Add another name"}}

would result in a form showing

Contributors:
[Add another name]  <= button 

Action: hit the [Add another name] button and select Rick Jones

Contributors:
Rick Jones        [Remove] 
[Add another name]

Action: hit the [Add another name] button and select Bruce Banner

Contributors:
Rick Jones        [Remove] 
Bruce Banner      [Remove] 
[Add another name]

Today, this can be done with SIO, a separate template, and the multiple keyword when used on a Form:page.  However, that reduces the flexibility of the form layout since the separate template needs to be outside of the "main" template on the form.  There are a few other advantages / disadvantages that I can bring up in comments if necessary, so I can keep this as short as possible.
Comment 1 skew 2010-11-13 15:11:15 UTC
*** Bug 25913 has been marked as a duplicate of this bug. ***
Comment 2 skew 2010-11-13 15:57:45 UTC
I forgot, I've got a better visual than the text-based one above.  It uses SIO, I'd like to see it included as a field type.

http://scratchpad.referata.com/w/index.php?title=Patio&action=formedit
Comment 3 Yaron Koren 2014-02-07 14:11:52 UTC
Hi skew,

Sorry for the somewhat belated reply. :)

I've been thinking of adding an input type to SF that resembles the interface that Gmail provides for selecting email addresses. It would probably use the Select2 library; you can see it in action here:

http://ivaynberg.github.io/select2/#drag_drop

Do you think this would be a reasonable substitute for what you're asking about? Or would you still prefer something that looked like the multiple-instance template interface?

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


Navigation
Links