lib/assets/javascripts/templates/select.jst.eco in atlas_assets-0.8.7 vs lib/assets/javascripts/templates/select.jst.eco in atlas_assets-0.8.8
- old
+ new
@@ -2,10 +2,16 @@
<span class="helper"><%= @helper %>:</span>
<div class="dropdown-with-helper-container">
<% end %>
<select class="dropdown-list" <%= if @multiple: %>multiple<% end %> <%= if @placeholder?: %>data-placeholder='<%= @placeholder %>'<% end %>>
<% for model in @models: %>
- <option <% if model.selected?: %>selected<% end %> <% if model.disabled: %>disabled<% end %>><%= model.get('label') %></option>
+ <option
+ <% if model.get('selected'): %>selected<% end %>
+ <% if model.get('disabled'): %>disabled<% end %>
+ <% if model.get('value'): %>value="<%= model.get('value') %>"<% end %>
+ >
+ <%= model.get('label') %>
+ </option>
<% end %>
</select>
<% if @helper?: %>
</div>
<% end %>
\ No newline at end of file