We were using a placeholder, which is way less accessible than a label. One issue here (which also happened before, but is now more obvious) is that, when adding several options, there will be many fields with the same label. Another issue is that, for some languages, we're using texts like "Add a closed answer", which might be confusing because we might be editing an existing answer. The proper solution would probably be using the text "Option 1", "Option 2", ... I'm not doing so right now because I'm not sure that's a good option and because changing the text would mean losing the existing translations.
15 lines
535 B
Plaintext
15 lines
535 B
Plaintext
<div class="nested-fields">
|
|
<div class="field">
|
|
<div class="small-12 medium-9 column">
|
|
<%= f.translatable_fields do |translations_form| %>
|
|
<%= translations_form.text_field :value,
|
|
label: t("admin.legislation.questions.form.value_placeholder") %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="small-12 medium-3 column">
|
|
<%= link_to_remove_association t("admin.legislation.questions.question_option_fields.remove_option"), f, class: "delete" %>
|
|
</div>
|
|
</div>
|
|
</div>
|