Sha256: 7b36e289212c83171e08409f9f714d752ca6090c672f6790a3e21b2e85d5e1ad

Contents?: true

Size: 913 Bytes

Versions: 9

Compression:

Stored size: 913 Bytes

Contents

<% if comp
  float_label = comp.options.select{|o| o.selected }.any?
%>
  <div class="mdc-select">
    <select id="<%= comp.id %>"
            name="<%= comp.name%>"
            class="mdc-select__native-control"
            <%= erb(:"components/event", locals: {events: comp.events,
                                                  parent_id: comp.id}) %>>
      <% comp.options.each do |option| %>
        <option value="<%= option.value %>"
                <%= 'disabled' if option.disabled %>
                <%= 'selected' if option.selected %>>
          <%= option.text %>
        </option>
      <% end %>
    </select>
    <div class="mdc-select__label
               <%= 'mdc-floating-label--float-above' if float_label%>"><%= comp.label %></div>
    <div class="mdc-select__bottom-line"></div>
  </div>
  <%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/components/select.erb
voom-presenters-0.1.12 views/mdc/components/select.erb
voom-presenters-0.1.11 views/mdc/components/select.erb
voom-presenters-0.1.10 views/mdc/components/select.erb
voom-presenters-0.1.9 views/mdc/components/select.erb
voom-presenters-0.1.8 views/mdc/components/select.erb
voom-presenters-0.1.7 views/mdc/components/select.erb
voom-presenters-0.1.6 views/mdc/components/select.erb
voom-presenters-0.1.5 views/mdc/components/select.erb