Add screencast to homepage
[oweals/finalsclub.git] / views / resetpw.jade
1 div.content
2         div.container1
3                 h1 Password Reset
4                 - url = "/resetpw";
5                 - if ( typeof(verify) != 'undefined' && verify ) { url += "/" + resetPassCode; }
6
7
8                 form#resetpw( action = '#{ url }', method = 'POST' )
9                         div.zarea 
10                                 span.text
11                                 - if ( typeof(verify) != 'undefined' && verify )        
12                                         P To verify and reset your password, type the full email address and your new password twice, then click submit. 
13                                 - else 
14                                         P To reset your password, enter your email address click "Reset". An email will be sent to you with the new password.
15
16                                 div( class = 'row')
17                                         div( class = 'label')
18                                                 label( for = 'email' ) Email
19                                         div( class = 'field')
20                                                 input( type = 'text', name = 'email', size='15', value = session.email )
21
22                                 - if ( typeof(verify) != 'undefined' && verify )        
23                                         div( class = 'row')
24                                                 div( class = 'label')
25                                                         label( for = 'pass1' ) New Password
26                                                 div( class = 'field')
27                                                         input( type = 'password', name = 'pass1', size='15' )
28                                         div( class = 'row')
29                                                 div( class = 'label')
30                                                         label( for = 'pass2' ) Repeat Password
31                                                 div( class = 'field')
32                                                         input( type = 'password', name = 'pass2', size='15' )
33
34                                 div( class = 'row')
35                                         div( class = 'label')
36                                                  
37                                         div( class = 'field', style = 'min-width: 200px' )
38                                                 button Reset
39                                 
40
41 script
42         $( document ).ready( function() {
43                 if( $( 'input[name=email]' ).val() ) {
44                         $( 'input[name=password]' ).focus();
45                 } else {
46                         $( 'input[name=email]' ).focus();
47                 }
48         });