Hi
I would like to make a table of radio buttons with the options for a category alongside each other. I am not sure how to do this with all the
theme stuff going round in the forms. So if my options are good and bad then I'd like to make it look like:
| Good | Bad |
Cat 1 | 0 | 0 |
Cat 2 | 0 | 0 |
At the moment I have something like this:
$recommendationbuttons = array(
1 => 'Good',
2 => 'Bad'
);
$form['language_rating_fair'] = array(
'#type' => 'radios',
'#title' => t('Language rating fair?'),
'#default_value' => $node->language_rating_fair,
'#options' => $recommendationbuttons,
'#description' => t('Language rating fairness evaluation'),
);
$form['complexity_rating_fair'] = array(
'#type' => 'radios',
'#title' => t('Complexity rating fair?'),
'#default_value' => $node->complexity_rating_fair,
'#options' => $recommendationbuttons,
'#description' => t('Complexity rating fairness evaluation'),
);
And this just gives me a long column of radio buttons. I could compress the page significantly if I could get them to lie horizontally :-/
Its probably trivial but I'd really appreciate a pointer in the most efficient direction!
Thanks,
Mark