app/views/admin/communication/blocks/components/location/_edit.html.erb
<%
locations = @block.template
.available_locations
.ordered(current_language)
%>
<% if label.present? %>
<label class="form-label"
:for="<%= dom_id.html_safe %>">
<%= label %>
</label>
<% end %>
<select :id="<%= dom_id.html_safe %>"
class="form-select select mb-3"
v-model="<%= model %>.<%= property %>">
<% if placeholder %>
<option value="" disabled><%= placeholder %></option>
<% end %>
<% locations.each do |location| %>
<option value="<%= location.id %>">
<%= location.to_s_in(current_language) %>
</option>
<% end %>
</select>