public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / app / views / account / login.rhtml
100644 22 lines (21 sloc) 1.029 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="little-box">
<% form_tag({:controller=>'account', :action=>'account'}, { :id => 'login_form' }) do -%>
  <dl>
    <dt><%= label_tag 'login', 'Login' %></dt>
    <dd><%= text_field_tag 'login', params[:login], :class => 'big' %></dd>
    <dt><%= label_tag 'password', 'Password' %></dt>
    <dd><%= password_field_tag 'password', {}, :class => 'big' %></dd>
    <dt></dt>
    <dd>
      <%= check_box_tag 'remember_me' %>
      <label for="remember_me">Remember Me</label>
    </dd>
  </dl>
  <p class="btns"><%= submit_tag 'Sign in' %> or <a href="#" id="reset_password_link">reset password</a></p>
<% end -%>
<% form_tag({:action => 'forget'}, { :id => 'reset_password' }) do -%>
  <p>Enter your email, and a brand new login key will be sent to you. Click the link in the email to log in, and then change your password.</p>
  <p><%= text_field_tag :email, params[:email], :class => 'big' %></p>
  <p class="btns"><%= submit_tag 'Reset' %> or <a href="#" id="reset_password_cancel">cancel</a></p>
<% end -%>
</div>