Ticket #189 (new task-todo)
auto prefix for formelements
| Reported by: | vain | Owned by: | |
|---|---|---|---|
| Priority: | minor-leicht | Milestone: | Clansuite 0.2.5 |
| Component: | Core | Version: | Clansuite v0.2a |
| Keywords: | Cc: | ||
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | no | Total Hours: | 1.0 |
| Internal?: | no |
Description
1 take the forms name to prefix the formelement tags name and id automatically.
$form = new Clansuite_Form('news_form', 'post', 'index.php?mod=news&sub=admin&action=update&type=edit');
now: $form->addElement('text')->setName('news_form[news_title]')->setLabel(_('Title'))->setValue($newsnews_title?);
new function: $form->addElement('text')->setName('[news_title]')->setLabel(_('Title'))->setValue($newsnews_title?);
2 add toggle to turn this feature on/off
Change History
Note: See
TracTickets for help on using
tickets.
