Sha256: 0b93b173e137d0689431ba3da952bc06daf330462e157a2ac3285c209beed0cd

Contents?: true

Size: 689 Bytes

Versions: 13

Compression:

Stored size: 689 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], value: options[:value] %>
        <div class="Polaris-TextField__Backdrop"></div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
polaris_view_helpers-1.0.4 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.0.3 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.0.2 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.0.1 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.0.0 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.22 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.21 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.20 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.19 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.18 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.17 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.16 app/views/polaris/_text_field.html.erb
polaris_view_helpers-0.0.15 app/views/polaris/_text_field.html.erb