<%= link_to(svg('ikea-foundation'), root_path) %>

<%= form_tag url_for(action: 'index', locale: nil) do %>

  <div>
    <%= label_tag :email, t('sessions.email') %>
    <%= label_tag :email, class: "input-box" do %>    
      <%= text_field_tag :email, params[:email] %>
    <% end %>
  </div>


  <%= content_tag :div, class: flash.any? ? 'with-errors' : nil do  %>      
    <%= label_tag :password, t('sessions.password') %>
    <%= label_tag :password, class: "input-box" do %>    
      <%= password_field_tag :password %>
    <% end %>
    

    <%- flash.each do |name, msg| -%>
      <%= content_tag :p, msg, role: 'alert'  %>
    <%- end -%>      
  <%- end -%>
  
  <div>
    <%= button_tag t(:'sessions.login') %>
  </div>

<% end %>
