Maybe my problem isn't very hard, but I don't know much about widgets, and I haven't been able to find any leads towards a solution (so, maybe I ain't asking the right questions).
I have a random table in a database, tableA, with some random columns A.B & C. What I want to do is to grab the $form object generated in the actions.php class, and re-sort the fields in a orderly way. the code calling the forms is quite simple:
<form name="NewInitialReport" action="<?php echo url_for('misssion/ListReport?id='.$mission->getId())?>" method="post"> <fieldset> <div class="sf_admin_form_row sf_admin_text"> <table> <tr><?php echo $formNewInitialReport ?></tr> <tr><?php echo $formNewParticipants ?></tr> <tr><?php echo $formNewCategory ?></tr> <tr><?php echo $formNewObjectives ?></tr> <tr><?php echo $formNewBeneficiary ?></tr> </table> </div> </fieldset> <ul class="sf_admin_actions"> <li> <input type="submit" value='Crear' /> </li> </ul> </form>
This works, but the output is really messy, so i'd like a way to grab some of the fields from the forms and put them in tables, matrixes or in some other way rather that just downwards. A friend said that a feasible solution was to generate my own widget (or was it ridget?) but my understanding of php is not that deep, so i'd rather stick with easier solutions, if available.
Thanks a lot for yer time/help