jonathangeiger / kohana-jelly

See the link below for the most up-to-date code
https://github.com/creatoro/jelly
MIT License
146 stars 34 forks source link

Suggestion for Field labels #63

Closed ginad closed 14 years ago

ginad commented 14 years ago

I suggest using Form::label in displaying the label for an input, because right now it just returns a string. if ( ! $this->label) { $this->label = inflector::humanize($column); } $this->label = Form::label("field-{$column}",$this->label);

banks commented 14 years ago

It's up to you which HTML tags you want to put around the label. We are planning to remove all HTML from Jelly so this probably will never happen.

See the forum post about form genration and jelly to get a better idea of our reasoning.