diff --git a/app/helpers/proposals_helper.rb b/app/helpers/proposals_helper.rb index ff8659dd2..1310dfc1c 100644 --- a/app/helpers/proposals_helper.rb +++ b/app/helpers/proposals_helper.rb @@ -64,10 +64,6 @@ module ProposalsHelper proposals_current_view == "default" ? "minimal" : "default" end - def summary_help_text_id(translations_form) - "summary-help-text-#{translations_form.locale}" - end - def link_to_toggle_proposal_selection(proposal) if proposal.selected? button_text = t("admin.proposals.index.selected") diff --git a/app/views/admin/budget_headings/_form.html.erb b/app/views/admin/budget_headings/_form.html.erb index fd3c9bc58..827afed60 100644 --- a/app/views/admin/budget_headings/_form.html.erb +++ b/app/views/admin/budget_headings/_form.html.erb @@ -22,16 +22,12 @@ maxlength: 8, placeholder: t("admin.budget_headings.form.amount") %> - <%= f.label :population, t("admin.budget_headings.form.population") %> -
- <%= t("admin.budget_headings.form.population_info") %> -
<%= f.text_field :population, - label: false, + label: t("admin.budget_headings.form.population"), maxlength: 8, placeholder: t("admin.budget_headings.form.population"), data: { toggle_focus: "population-info" }, - aria: { describedby: "budgets-population-help-text" } %> + hint: t("admin.budget_headings.form.population_info") %> <%= f.text_field :latitude, label: t("admin.budget_headings.form.latitude"), diff --git a/app/views/debates/_form.html.erb b/app/views/debates/_form.html.erb index 87c559a62..7075e1cf0 100644 --- a/app/views/debates/_form.html.erb +++ b/app/views/debates/_form.html.erb @@ -26,13 +26,10 @@ <%= f.invisible_captcha :subtitle %><%= t("debates.form.tags_instructions") %>
- <%= f.text_field :tag_list, value: @debate.tag_list.to_s, - label: false, + label: t("debates.form.tags_label"), + hint: t("debates.form.tags_instructions"), placeholder: t("debates.form.tags_placeholder"), - aria: { describedby: "tag-list-help-text" }, data: { js_url: suggest_tags_path }, class: "tag-autocomplete" %><%= t("proposals.form.proposal_summary_note") %>
- <%= f.text_area :summary, rows: 4, maxlength: 200, label: false, - placeholder: t("proposals.form.proposal_summary"), - aria: { describedby: "summary-help-text" } %> + <%= f.text_area :summary, rows: 4, maxlength: 200, + label: t("proposals.form.proposal_summary"), + placeholder: t("proposals.form.proposal_summary"), + hint: t("proposals.form.proposal_summary_note") %><%= t("proposals.form.proposal_video_url_note") %>
- <%= f.text_field :video_url, placeholder: t("proposals.form.proposal_video_url"), label: false, - aria: { describedby: "video-url-help-text" } %> + <%= f.text_field :video_url, + placeholder: t("proposals.form.proposal_video_url"), + label: t("proposals.form.proposal_video_url"), + hint: t("proposals.form.proposal_video_url_note") %><%= t("devise_views.organizations.registrations.new.responsible_name_note") %>
- <%= fo.text_field :responsible_name, placeholder: t("devise_views.organizations.registrations.new.responsible_name_label"), - maxlength: Organization.responsible_name_max_length, label: false, - aria: { describedby: "responsible-name-help-text" } %> + <%= fo.text_field :responsible_name, + placeholder: t("devise_views.organizations.registrations.new.responsible_name_label"), + maxlength: Organization.responsible_name_max_length, + hint: t("devise_views.organizations.registrations.new.responsible_name_note") %> <% end %> <%= f.email_field :email, placeholder: t("devise_views.organizations.registrations.new.email_label") %> diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb index ef5eb2dd7..d87385e20 100644 --- a/app/views/proposals/_form.html.erb +++ b/app/views/proposals/_form.html.erb @@ -17,15 +17,10 @@- <%= t("proposals.form.proposal_summary_note") %> -
<%= translations_form.text_area :summary, rows: 4, maxlength: 200, - label: false, placeholder: t("proposals.form.proposal_summary"), - aria: { describedby: summary_help_text_id(translations_form) } %> + hint: t("proposals.form.proposal_summary_note") %><%= t("proposals.form.proposal_video_url_note") %>
<%= f.text_field :video_url, placeholder: t("proposals.form.proposal_video_url"), - label: false, - aria: { describedby: "video-url-help-text" } %> + label: t("proposals.form.proposal_video_url"), + hint: t("proposals.form.proposal_video_url_note") %><%= t("proposals.form.proposal_responsible_name_note") %>
- <%= f.text_field :responsible_name, placeholder: t("proposals.form.proposal_responsible_name"), label: false, - aria: { describedby: "responsible-name-help-text" } %> + <%= f.text_field :responsible_name, + placeholder: t("proposals.form.proposal_responsible_name"), + label: t("proposals.form.proposal_responsible_name"), + hint: t("proposals.form.proposal_responsible_name_note") %><%= t("devise_views.users.registrations.edit.leave_blank") %>
- <%= f.password_field :password, autocomplete: "off", label: false, - placeholder: t("devise_views.users.registrations.edit.password_label"), - aria: { describedby: "password-help-text" } %> + <%= f.password_field :password, + autocomplete: "off", + label: t("devise_views.users.registrations.edit.password_label"), + placeholder: t("devise_views.users.registrations.edit.password_label"), + hint: t("devise_views.users.registrations.edit.leave_blank") %><%= t("devise_views.users.registrations.edit.need_current") %>
- <%= f.password_field :current_password, label: false, autocomplete: "off", - placeholder: t("devise_views.users.registrations.edit.current_password_label"), - aria: { describedby: "current-password-help-text" } %> + <%= f.password_field :current_password, + label: t("devise_views.users.registrations.edit.current_password_label"), + autocomplete: "off", + placeholder: t("devise_views.users.registrations.edit.current_password_label"), + hint: t("devise_views.users.registrations.edit.need_current") %><%= t("devise_views.users.registrations.new.username_note") %>
<%= f.text_field :username, autofocus: true, maxlength: User.username_max_length, placeholder: t("devise_views.users.registrations.new.username_label"), - label: false, - aria: { describedby: "username-help-text" } %> + hint: t("devise_views.users.registrations.new.username_note") %> <%= f.invisible_captcha :address %> diff --git a/app/views/verification/residence/new.html.erb b/app/views/verification/residence/new.html.erb index 6366ab6d5..c18d42ccc 100644 --- a/app/views/verification/residence/new.html.erb +++ b/app/views/verification/residence/new.html.erb @@ -71,11 +71,9 @@<%= t("verification.residence.new.postal_code_note") %>
-