Labels are not render correctly after upgrade to 2.1

Notice: This thread is very old.
barbucha
Member | 11
+
0
-

After I made upgrade to 2.1 labels do not show correctly

form in my presenter

<?php
$form = new Form();

        $form->addText('surname', 'Příjmení:', 20, 20);
        $form->addText('forename', 'Jméno:', 20, 20);
        $form->addText('title_prefix', 'Titul před jménem', 10);
        $form->addText('title_sufix', 'Titul za jménem:', 10);

        $form->addPassword('newpassword', 'Heslo')
            ->addCondition(Form::FILLED)
            ->addRule(Form::MIN_LENGTH, 'Heslo musí mít alespoň %d znaky', 4);
        $form->addPassword('newpasswordVerify', 'Heslo pro kontrolu:')
            ->addRule(Form::EQUAL, 'Hesla se neshodují', $form['newpassword']);
        $form->addSubmit('save', 'Uložit');
        return $form;
?>

form in latte

<?php
{form insertUserForm}
	<p class="inline-items">
            {label title_prefix class=>"form-140" /}{input title_prefix}

	</p>
	<p class="inline-items">
            {label forename class=>"form-140" /}{input forename}
	</p>
        <p class="inline-items">
            {label surname class=>"form-140" /}{input surname}
	</p>
        <p class="inline-items">
            {label title_sufix class=>"form-140" /}{input title_sufix}
	</p>
        <p class="inline-items">
            {label newpassword class=>"form-140" /}{input newpassword autocomplete=>"off"}
	</p>
        <p class="inline-items">
            {label newpasswordVerify class=>"form-140" /}{input newpasswordVerify}
	</p>

	<p class="submit">
		{input save class=>"btn"}
	</p>
    {/form}
?>

Inputs are rendered correctly, but any <label> show label.
Rendered input with label:

<?php
<p class="inline-items">
            <label for="frm-insertUserForm-forename" class="form-140"></label>
<input type="text" name="forename" maxlength="20" size="20" id="frm-insertUserForm-forename" value="">
	</p>
?>

What's wrong.
Thanks for the help.

voda
Member | 561
+
0
-

Rendering changes in 2.1. check out this article on phpfashon.com.