views: remove "Select a value" text on radio lists

This text:

- Isn't present on other form controls
- Should only be displayed if the field is mandatory anyway
This commit is contained in:
Pierre de La Morinerie 2020-08-19 12:32:26 +02:00
parent 2df7408547
commit 50f61ee37b

View file

@ -1,8 +1,6 @@
- if champ.options? - if champ.options?
- if champ.render_as_radios? - if champ.render_as_radios?
%fieldset.radios %fieldset.radios
%legend.mandatory-explanation
Sélectionnez une des valeurs
- champ.enabled_non_empty_options.each do |option| - champ.enabled_non_empty_options.each do |option|
%label %label
= form.radio_button :value, option = form.radio_button :value, option