Sha256: 0bd6cae2df9e2a5577b8bb6bdc194873003be1bb8b28a8bc3cf66a842f608a17

Contents?: true

Size: 665 Bytes

Versions: 4

Compression:

Stored size: 665 Bytes

Contents

<% attribute.each do |att| %>
  <div class="Polaris-FormLayout__Item">
    <div class="">
      <% unless options[:supress_label] %>
        <div class="Polaris-Labelled__LabelWrapper">
          <div class="Polaris-Label">
            <%= form.label att, options[:label], class: 'Polaris-Label__Text' %>
          </div>
        </div>
      <% end %>
      <div class="Polaris-TextField">
        <%= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input", placeholder: options[:placeholder] %>
        <div class="Polaris-TextField__Backdrop"></div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polaris_view_helpers-0.0.14 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.13 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.12 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.11 app/views/polaris/_text_field.html.erb