Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (39 sloc) 1.552 kB
<% content_for :page_title do %>
<%= "Diaspora* / #{t('devise.sessions.new.sign_in')}" %>
<% end %>
<div id="login">
<h1 id="huge-text">
DIASPORA
</h1>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => "form-horizontal block-form"}, :autocomplete => 'off') do |f| %>
<fieldset>
<div class="control-group">
<label class="control-label" for="user_username">
USERNAME
</label>
<div class="controls">
<%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_.@\-]+", :autocapitalize => "off", :autocorrect => "off" %>
</div>
</div>
<div class="control-group">
<label class="control-label" for="user_password">
PASSWORD
</label>
<div class="controls">
<%= f.password_field :password, :placeholder => "••••••••", :required => true, :pattern => "......+" %>
</div>
</div>
</fieldset>
<%= f.submit "Sign In", :class => "new-btn" %>
<% end %>
<% if display_password_reset_link? %>
<br/>
<%= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name), :id => "forgot_password_link" %>
<% end %>
<% if display_registration_link? %>
<br/>
<br/>
<br/>
<%= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name) %>
<% end %>
</div>
Jump to Line
Something went wrong with that request. Please try again.