Do not show the geozone selector where there are no geozones defined

This commit is contained in:
Senén Rodero Rodríguez
2023-06-12 15:25:51 +02:00
parent 9003c460d5
commit 1bc2a68856
4 changed files with 47 additions and 7 deletions

View File

@@ -49,10 +49,12 @@
</div>
<% end %>
<div>
<%= f.select :geozone_id, geozone_select_options,
include_blank: t("geozones.none") %>
</div>
<% if Geozone.any? %>
<div>
<%= f.select :geozone_id, geozone_select_options,
include_blank: t("geozones.none") %>
</div>
<% end %>
<% if feature?(:map) %>
<div>