Ticket #189 (new task-todo)

Opened 21 months ago

Last modified 20 months ago

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

comment:1 Changed 21 months ago by vain

  • Add Hours to Ticket changed from 0.0 to 1.0
  • Total Hours changed from 0.0 to 1.0

comment:2 Changed 20 months ago by vain

  • Milestone changed from Clansuite 0.3 alpha to Clansuite 0.2.5
Note: See TracTickets for help on using tickets.