Hi everyone,
I've got 2 tables: users, and groups. Users belong to groups through their group_id field.
I created a Form class with which I can Insert/Update my users. Now I would like to add a set of radio buttons to my form with all the groups I have in the DB so I can chose which group the user should belong to. I know it's simple to solve with a Select, but my form should look like this:
USER FORM
name:.........................................
username:.................................
email:.........................................
Select Group:
O | Admin | Can edit anything |
O | Guest | You are a lot less cooler than admins |
O | Writer | Can only edit |
I hope I described my problem clearly, I have been struggling with radios and checkboxes for a long time in Phalcon as the documentation says almost nothing about them.
Does anyone know how to implement this properly? (not in a dodgy way)
Thanks everyone in advance! Peter