A website template with lots of features, built with ruby on rails.

new.html.erb 1.6KB

    <% title (t 'registration.sign_in') + ' - ' + @config.website_name %> <%= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> <div class="span4 offset4 well" style=""> <div class="login-panel panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><%= t 'registration.sign_in' %></h3> </div> <div class="panel-body"> <form role="form"> <% bootstrap_flash %> <%= f.alert_message "Please fix the errors below."%> <fieldset> <%= f.email_field :email, required: true, autofocus: true, class: "input-block-level" %> <div class="form-group"> <%= f.password_field :password, label: (t 'registration.password'), required: true, class: "input-block-level" %> </div> <%= f.check_box :remember_me, as: :boolean, label: (t 'registration.remember_me') if devise_mapping.rememberable? %> <!-- Change this to a button or input when using this as a form --> <div class="form-group" style="margin-top: 25px;"> <%= f.submit (t 'registration.sign_in_submit'), id: 'submit_login_btn' %> <%= link_to (t 'registration.sign_up'), new_user_registration_path, class: 'btn btn-link ' %> <%= link_to (t 'registration.forgot_password'), new_user_password_path, class: 'btn btn-link ' %> </div> <div class="form-group" style="margin-top: 10px;"> </div> </fieldset> </form> </div> </div> </div> <% end %>