Skip to content

Commit

Permalink
fix: label in avoid_index admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadrien Froger committed Dec 11, 2024
1 parent 06a7a18 commit 04eb556
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
else
"decidim_geo_avoid_index"
end
space_name = space.title[locale.to_s]
space_name = space.participatory_process_group.title[locale.to_s] if has_process_group
%>
<%= form.check_box :decidim_geo_avoid_index, label: t(label, scope: "activemodel.attributes.component", space_name: space.title[locale.to_s]) %>
<%= form.check_box :decidim_geo_avoid_index, label: t(label, scope: "activemodel.attributes.component", space_name: space_name) %>
<p class="help-text" style="transform: translateY(-0.5rem)"><%= t("geo_avoid_index", scope: "decidim.admin.components.form") %></p>
</div>
<% else %>
Expand Down

0 comments on commit 04eb556

Please sign in to comment.