<%= 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.password_field attr, class: 'material__input' %>
    <% end %>

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