Sha256: abca2da90db0a7a23e400e08e66d0b254f3a1e987ad74b0709a77ca463333972

Contents?: true

Size: 1.57 KB

Versions: 6

Compression:

Stored size: 1.57 KB

Contents

<% class_name = '' unless local_variables.include? :class_name
   data_table_class_name = '' unless local_variables.include? :data_table_class_name
%>
<div class="v-form-field mdc-form-field">
  <div id="<%= comp.id %>"
       <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
       <% if comp.dirtyable %>data-dirtyable<% end %>
       class="v-checkbox mdc-checkbox v-input
              <%= data_table_class_name %>">
    <input type="checkbox"
           id="<%= comp.id %>-input"
           name="<%= comp.name %>"
           data-indeterminate="<%=comp.indeterminate%>"
           <% if comp.value %>value="<%= comp.value %>"<% end %>
           class="mdc-checkbox__native-control
                 <%= class_name %>"
           <% if comp.checked %>checked<% end %>
           <% if comp.disabled %>disabled<% end %>
           data-off="<%= comp.off_value %>"
           <%= erb :"components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} %>>
    <div class="mdc-checkbox__background">
      <svg class="mdc-checkbox__checkmark"
           viewBox="0 0 24 24">
        <path class="mdc-checkbox__checkmark-path"
              fill="none"
              stroke="white"
              d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
      </svg>
      <div class="mdc-checkbox__mixedmark"></div>
    </div>
  </div>
  <label id="<%= comp.id %>-label" for="<%= comp.id %>-input" style="<%= "color: #{comp.text_color};" if comp.text_color %>"><%= comp.text %></label>
</div>
<%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 views/mdc/components/checkbox.erb
voom-presenters-2.1.0 views/mdc/components/checkbox.erb
voom-presenters-2.0.3 views/mdc/components/checkbox.erb
voom-presenters-2.0.2 views/mdc/components/checkbox.erb
voom-presenters-2.0.1 views/mdc/components/checkbox.erb
voom-presenters-2.0.0 views/mdc/components/checkbox.erb