Fixes #3995 - Select field in bulk operations out of view port

This commit is contained in:
Mantas 2022-03-03 12:04:22 +02:00 committed by Rolf Schmidt
parent 4acf9cac67
commit 032995eeef

View file

@ -1,14 +1,12 @@
<div class="controls controls--select">
<div class='relative'>
<select <% if @attribute.id: %>id="<%= @attribute.id %>"<% end %> class="form-control<%= " #{ @attribute.class }" if @attribute.class %>" name="<%= @attribute.name %>" <%= @attribute.multiple %> <%= @attribute.required %> <%= @attribute.autofocus %> <% if @attribute.disabled: %> disabled<% end %>>
<% if @attribute.options: %>
<% for row in @attribute.options: %>
<option value="<%= row.value %>" <%= row.selected %> <%= row.disabled %>><%= row.name %></option>
<% end %>
<select <% if @attribute.id: %>id="<%= @attribute.id %>"<% end %> class="form-control<%= " #{ @attribute.class }" if @attribute.class %>" name="<%= @attribute.name %>" <%= @attribute.multiple %> <%= @attribute.required %> <%= @attribute.autofocus %> <% if @attribute.disabled: %> disabled<% end %>>
<% if @attribute.options: %>
<% for row in @attribute.options: %>
<option value="<%= row.value %>" <%= row.selected %> <%= row.disabled %>><%= row.name %></option>
<% end %>
</select>
<% if not @attribute.multiple: %>
<%- @Icon('arrow-down') %>
<% end %>
</div>
</select>
<% if not @attribute.multiple: %>
<%- @Icon('arrow-down') %>
<% end %>
</div>