diaspora/app/views/sessions/new.html.erb
Jonne Haß 2a4db54db9 New configuration system
* Throw away old system
* Add new system
* Add new example files
* Replace all calls
* add the most important docs
* Add Specs
* rename disable_ssl_requirement to require_ssl
* cloudfiles isn't used/called in our code
* since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it
* die if session secret is unset and on heroku
* First basic infrastructure for version information
2012-09-26 20:19:37 +02:00

47 lines
1.9 KiB
Text

<% content_for :page_title do %>
<%= "#{AppConfig.settings.pod_name} / #{t('devise.sessions.new.sign_in')}" %>
<% end %>
<div id="login">
<h1 id="huge-text">
<%= AppConfig.settings.pod_name %>
</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" style="width: 40%; text-align: center; padding: 10px 0; overflow: hidden">
<%= t('registrations.new.username') %>
</label>
<div class="controls">
<%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_.@\-]+", :autocapitalize => "off", :autocorrect => "off", :autofocus => true, :style => "width: 60%;" %>
</div>
</div>
<div class="control-group">
<label class="control-label" for="user_password" style="width: 40%; text-align: center; padding: 10px 0; overflow: hidden">
<%= t('registrations.new.password') %>
</label>
<div class="controls">
<%= f.password_field :password, :placeholder => "••••••••", :required => true, :pattern => "......+", :style => "width: 60%;" %>
</div>
</div>
</fieldset>
<%= f.submit t('devise.sessions.new.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>