Last modified: 2010-11-13 15:11:15 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 T27913, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25913 - A new input type for an enumeration with multiple values allowed
A new input type for an enumeration with multiple values allowed
Status: RESOLVED DUPLICATE of bug 25914
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: 2010-11-13 15:07 UTC by skew
Modified: 2010-11-13 15:11 UTC (History)
2 users (show)

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


Attachments

Description skew 2010-11-13 15:07:43 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

<pre>
'''Contributors'''.
{{field|Names|input type=combobox|multiple|add_button_text="Add another name"}}
</pre>

would result in a form showing

<pre>Contributors
[Add another name]  <= button 
</pre>

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

<pre>Contributors
Rick Jones        [Remove] 
[Add another name]
</pre>

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

<pre>Contributors
Rick Jones        [Remove] 
Bruce Banner      [Remove] 
[Add another name]
</pre>

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
Accidental double-save

*** This bug has been marked as a duplicate of bug 25914 ***

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


Navigation
Links