It mays occur several instances of radio buttons in the same forms.
question : have you an example realized in javascript doing that purpose ?
i suppose that the good place shall be in the “/var/www/ood/apps/sys/dashboard/app/helpers/batch_connect/session_contexts_helper.rb” file which contains :
case widget
when "select"
form.select attrib.id, attrib.select_choices, field_options, attrib.html_options
when "resolution_field"
resolution_field(form, attrib.id, all_options)
when "check_box"
form.form_group attrib.id, help: field_options[:help] do
form.check_box attrib.id, all_options, attrib.checked_value, attrib.unchecked_value
end
else
form.send widget, attrib.id, all_options
end
i have tested this mod and it works fine ! you’re the best !
one question of style : by default, all the form types are shown in a vertical mode. it’s possible to show by example for the radio buttons, side by side ?
if you prefer, i can open a specific topic on the style subject.
These are non trivial changes though to support both styles. You could add a form.js file in the root of the app and use jQuery to add these classes at runtime, but the label might have spacing issues. I’ll open an issue on GitHub to track.