Sha256: 78fdded5692d6f22b5b195d22ccba67be762e7f3ffee34261252a2a464ba4d2a

Contents?: true

Size: 588 Bytes

Versions: 6

Compression:

Stored size: 588 Bytes

Contents

<% if @helper?: %>
  <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.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 %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
atlas_assets-0.8.13 lib/assets/javascripts/templates/select.jst.eco
atlas_assets-0.8.12 lib/assets/javascripts/templates/select.jst.eco
atlas_assets-0.8.11 lib/assets/javascripts/templates/select.jst.eco
atlas_assets-0.8.10 lib/assets/javascripts/templates/select.jst.eco
atlas_assets-0.8.9 lib/assets/javascripts/templates/select.jst.eco
atlas_assets-0.8.8 lib/assets/javascripts/templates/select.jst.eco