- Fixed option indetation.

- Removed arrow svg for multiple select elements.
This commit is contained in:
Thorsten Eckel 2015-06-19 13:11:28 +02:00
parent 4772752c51
commit 63cc9c0c0d

View file

@ -2,9 +2,11 @@
<select id="<%= @attribute.id %>" class="form-control<%= " #{ @attribute.class }" if @attribute.class %>" name="<%= @attribute.name %>" <%= @attribute.multiple %> <%= @attribute.required %> <%= @attribute.autofocus %>>
<% if @attribute.options: %>
<% for row in @attribute.options: %>
<option value="<%= row.value %>" <%= row.selected %> <%= row.disabled %>><%= row.name %></option>
<option value="<%= row.value %>" <%= row.selected %> <%= row.disabled %>><%= row.name %></option>
<% end %>
<% end %>
</select>
<% if not @attribute.multiple: %>
<svg class="icon-arrow-down"><use xlink:href="#icon-arrow-down" /></svg>
<% end %>
</div>