Sha256: 4682a305b7157cd246a5d6327e05f4b084da9581899e74a3af09585591320ee9

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

<% label = local_assigns[:label].presence %>
<% html_options = {class: 'input_integer fullwidth'}.update(local_assigns[:html_options] || {}) %>

<div class="form-group">
  <% if local_assigns[:form] %>
    <%= form.label attribute, label %>
    <%= form.number_field attribute, html_options %>
  <% else %>
    <%= label_tag name, label %>
    <%= number_field_tag name, value, html_options %>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_promotions-4.4.1 lib/views/backend/solidus_promotions/admin/shared/preference_fields/_integer.html.erb
solidus_friendly_promotions-1.9.3 app/views/solidus_friendly_promotions/admin/shared/preference_fields/_integer.html.erb
solidus_promotions-4.4.0 lib/views/backend/solidus_promotions/admin/shared/preference_fields/_integer.html.erb
solidus_friendly_promotions-1.9.2 app/views/solidus_friendly_promotions/admin/shared/preference_fields/_integer.html.erb
solidus_friendly_promotions-1.9.1 app/views/solidus_friendly_promotions/admin/shared/preference_fields/_integer.html.erb
solidus_friendly_promotions-1.9.0 app/views/solidus_friendly_promotions/admin/shared/preference_fields/_integer.html.erb