<% content_for :title, _('Login') %>

<div id="login" class="container">
  <div class="row">
    <div class="col-sm-12">
      <div id="brand">
        <%= image_tag("foreman_white.png") %>
      </div><!--/#brand-->
    </div>
    <div class="col-sm-7 col-md-6 col-lg-5 login">
      <%= form_tag login_users_path, :id => "login-form", :class=>"form-horizontal" do %>
          <div class="form-group">
            <%= label_tag "login[login]", _("Username"), :class=>"col-sm-2 control-label" %>
            <div class="col-sm-10">
              <%= text_field :login, :login, :class=>"form-control" %>
            </div>
          </div>
          <div class="form-group">
            <%= label_tag "login[password]", _("Password"), :class=>"col-sm-2 control-label" %>
            <div class="col-sm-10">
              <%= password_field_tag "login[password]",nil, :class=>"form-control" %>
            </div>
          </div>
          <div class="form-group">
            <div class="col-xs-offset-8 col-xs-4 submit">
              <%= submit_tag(_("Login").html_safe, :class => "btn btn-primary", :disable_with => _("Please wait...")) %>
            </div>
          </div>
      <% end %>
    </div>
    <div class="col-sm-5 col-md-6 col-lg-7 details">
      <p><strong><%= _("Welcome to Foreman") %></strong>
      <p><%= _("Version %{version}") % {:version => SETTINGS[:version]} %></p>
    </div><!--/.col-*-->
  </div>
</div>