Open avadnc opened 2 months ago
Example table:
print $form->openForm('addTest', $_SERVER['PHP_SELF'], 'GET', array('action' => 'test'));
print $form->openTable();
print $form->addRow(
array(
$langs->trans('Value'),
array('content' => $langs->trans('Action'), 'class'=>'center')
),
'liste_titre'
);
print $form->addRow(
array(
array('content'=>$form->createInputField('test', GETPOST('test') ? GETPOST('test') : $test, 'text', 'minwidth300 maxwidth400onsmartphone'),
'class'=>'left'),
array('content'=>$form->buttonsSaveCancel("Create"),'class'=>'right')
),
'left'
);
print $form->closeTable();
print $form->closeForm();
Feature Request
New functions for managing and controlling forms and tables through the html.form.class.php class, reducing the amount of code needed to render a table or open a form.
Use case
Improve the development of Dolibarr views by creating cleaner and more understandable code for developers.
Suggested implementation
Suggested steps
No response