
<main role="main">
  <p class="auth-desc">
    申请使用<strong class="app-name"> GitLink </strong>账号登录
    <strong class="app-name"><%= @app&.name %></strong>
  </p>

  <div class="actions">
    <div class="w">
      <%= form_tag oauth2_path, method: :post, authenticity_token: true, remote: true, class: 'login-form' do %>
        <%= hidden_field_tag :client_id, @app.uid %>
        <%= hidden_field_tag :call_url, @call_url  %>
        <p id="account_error" class='error'></p>
        <%= text_field_tag :login, '',  placeholder: '请输入邮箱地址/用户名' %>
        <p id="login_error" class='error'></p>
        <%= password_field_tag :password, '', placeholder: '请输入密码'%>
        <p id="password_error" class='error'></p>
        <%= submit_tag '授权登录', class: "btn btn-login btn-lg btn-block mt-20" %>
      <% end %>
      <div class="reg">
        <%= link_to  "注 册", '/register', class: 'reg-link' %>
      </div>
    </div>
  </div>
</main>