<% content_for :left_column do %>
  &nbsp;
<% end %>

<% content_for :javascript do %>
  <!-- Quick workaround for not showing the devise error in the header -->
  <script>
    $('#application-notification > p ').hide();
  </script>
<% end %>

<div id="new_session">
  <h2>Log in</h2>

  <%= image_tag "factlink-logo.png" %>

  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
    <fieldset>You have to be logged in to use Factlink.</fieldset>
    <div>
      <%= f.text_field :login %>
    </div>
    <div>
      <%= f.password_field :password %>
    </div>

    <div class="split">
      <div>
        <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
          <%= link_to "Forgot your password?", new_password_path(resource_name) %>
        <% end -%>
      </div>
      <div class="second">
        <% if devise_mapping.rememberable? -%>
          <%= f.check_box :remember_me %>
          <%= f.label :remember_me %>
        <% end -%>
      </div>
    </div>

    <% if @layout %>
      <%= hidden_field_tag :layout, @layout %>
    <% end %>


    <div class="inputs">
      <%= f.submit "Log in", disable_with: "Logging in...", class: "btn btn-primary" %>
    </div>
  <% end %>


</div>

<% content_for :left_column do %>
  &nbsp;
<% end %>

<% content_for :javascript do %>
  <!-- Quick workaround for not showing the devise error in the header -->
  <script>
    $('#application-notification > p ').hide();
  </script>
<% end %>

<div id="new_session">
  <h2>Log in</h2>

  <%= image_tag "factlink-logo.png" %>

  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
    <fieldset>You have to be logged in to use Factlink.</fieldset>
    <div>
      <%= f.text_field :login, placeholder: "Username or email" %>
    </div>
    <div>
      <%= f.password_field :password, placeholder: "Password" %>
    </div>

    <div class="split">
      <div>
        <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
          <%= link_to "Forgot your password?", new_password_path(resource_name) %>
        <% end -%>
      </div>
      <div class="second">
        <% if devise_mapping.rememberable? -%>
          <%= f.check_box :remember_me %>
          <%= f.label :remember_me %>
        <% end -%>
      </div>
    </div>

    <% if @layout %>
      <%= hidden_field_tag :layout, @layout %>
    <% end %>


    <div class="inputs">
      <%= f.submit "Log in", disable_with: "Logging in...", class: "btn btn-primary" %>
    </div>
  <% end %>


</div>

Add placeholder username/password in login screen
Add placeholder username/password in login screen

Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>
