<%= tag.div class: 'field' do %>
  <div>
    <%= f.label attr, local_assigns[:label], for: nil unless local_assigns[:skip_label] %>
  </div>

  <div>
    <%= f.label attr, class: "input-box" do %>    
      <%= f.text_field attr,
                      class: 'material__input',
                      disabled: local_assigns[:disabled],
                      data: local_assigns[:data],
                      placeholder: local_assigns[:placeholder] %>
    <% end %>
    
    <%= tag.p local_assigns[:faq], role: 'tooltip' if local_assigns[:faq] %>

    <%- f.object.errors.full_messages_for(attr).uniq.each do |msg| -%>
      <%= tag.p msg, role: 'alert' %>
    <% end %>
  </div>  
<%- end -%>
