Sha256: 5283dbbe3ff320a16459ebd7366f27f5a980c96a56d011237bc88c0bd6346937

Contents?: true

Size: 739 Bytes

Versions: 9

Compression:

Stored size: 739 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] || form.object&.send(att)), data: options[:data] %>
        <div class="Polaris-TextField__Backdrop"></div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
polaris_view_helpers-1.2.11 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.10 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.9 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.8 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.7 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.6 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.5 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.4 app/views/polaris/_text_field.html.erb
polaris_view_helpers-1.2.3 app/views/polaris/_text_field.html.erb