Sha256: e19f1de3709d4e25bb023ec440936928a9a8a721415723f5311174ffaecfd778

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

<% label = local_assigns[:label].presence %>
<% html_options = local_assigns[:html_options] || {} %>

<div class="field">
  <% if local_assigns[:form] %>
    <%= form.check_box attribute, html_options %>
    <%= form.label attribute, label %>
  <% else %>
    <%= hidden_field_tag name, 0 %>
    <%= check_box_tag name, 1, value, html_options %>
    <%= label_tag name, label %>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/views/spree/admin/shared/preference_fields/_boolean.html.erb
solidus_backend-2.4.1 app/views/spree/admin/shared/preference_fields/_boolean.html.erb
solidus_backend-2.4.0 app/views/spree/admin/shared/preference_fields/_boolean.html.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/shared/preference_fields/_boolean.html.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/shared/preference_fields/_boolean.html.erb