nette/nette — pull request #1118 by vjirovsky (2013-05-25 21:30:23+00:00)
Title: Added label to getControl(key) of RadioList

Now is no way to render manually radioList - there is no way how to
render label of this control. This commit adds label as second key in
array. Return for getControl(key) is now array(control, label).

Example of usage:
{foreach $form['type']->getControl() as $key => $value}
{var $html = $_form['type']->getControl($key), $input = $html[0], $label = $html[1]}

{!$input}

{!$label->startTag()}
{$label->getText()}
{!$label->endTag()}

{/foreach}