<%= form_tag admin_sessions_path, :method => :post, :class => "login-box" do %>
Login
<% [:notice, :error, :alert].each do |sym| %> <% if flash[sym].present? %>
<%= flash[sym] %>
<% flash.discard(sym) %> <% end %> <% end %>
<%= text_field_tag :username, nil, :placeholder => I18n.t("username", :scope => "helpers.label", :default => "Username") %>
<%= password_field_tag :password, nil, :placeholder => I18n.t("password", :scope => "helpers.label", :default => "Password") %>
<% end %>