Skip to content

Commit

Permalink
refactor country selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Crashillo committed Apr 4, 2024
1 parent 13c822a commit 1142fa6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/views/decidim/extra_user_fields/_profile_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<% end %>
<% if current_organization.activated_extra_field?(:country) %>
<%= f.custom_country_select :country %>
<%= f.label :country do %>
<%# TODO: include the required attribute properly %>
<%= t("activemodel.attributes.user.country") %>
<%= f.country_select :country %>
<% end %>
<% end %>
<% if current_organization.activated_extra_field?(:postal_code) %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<% end %>
<% if current_organization.activated_extra_field?(:country) %>
<%= f.custom_country_select :country %>
<%= f.label :country do %>
<%# TODO: include the required attribute properly %>
<%= t("activemodel.attributes.user.country") %>
<%= f.country_select :country %>
<% end %>
<% end %>
<% if current_organization.activated_extra_field?(:postal_code) %>
Expand Down

0 comments on commit 1142fa6

Please sign in to comment.