Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

started on profile page

  • Loading branch information...
commit 87df284d6c7e15e60d52feea6a0bb1c091993575 1 parent 4f54957
Toan Tran authored
1  coffee/services/user.coffee
@@ -138,6 +138,7 @@ exports.insert = (user, callback = ->) ->
138 138
     else
139 139
       user.createdat = new Date()
140 140
       user.password = hash user.password, 'a little dog'
  141
+      delete user.passwordconfirm
141 142
       user.dataschema ?= name: 1, contact: 1, address: 1
142 143
       try 
143 144
         newUserRepo.create user, cb
31  views/profile.jade
... ...
@@ -1,2 +1,29 @@
1  
-h1= title
2  
-p Welcome to #{title}
  1
+.row
  2
+  .span4.offset4
  3
+    .row
  4
+      .span4
  5
+        form(method='POST')
  6
+          fieldset
  7
+            legend PROFILE
  8
+            .space1
  9
+            label(for='form-signup-nickname') Company Name
  10
+            input#form-signup-nickname(maxlength='255', name='companyname', size='25', type='text', value=nickname, placeholder='Enter your company name')= user.nickname
  11
+            label(for='form-login-username') Email address
  12
+            input#form-login-username(maxlength='255', name='username', size='25', type='text', required, placeholder='Enter your email address')= user.username
  13
+            label Company Address (optional)
  14
+            textarea(name='address', placeholder='Enter your company address')= user.address
  15
+            .message!= partial('messages') 
  16
+            button.btn.btn-primary(type='submit') Save
  17
+    .row
  18
+      .span4
  19
+        form(method='POST', action='/changepassword')
  20
+          fieldset
  21
+            legend Change password
  22
+            .space1
  23
+            label(for='form-login-password') Password
  24
+            input#form-login-password(maxlength='16', name='password', size='25', type='password', required, placeholder='Enter your password')
  25
+            label(for='form-login-password-confirm') Confirm Password
  26
+            input#form-login-password-confirm(maxlength='16', name='passwordconfirm', size='25', type='password', required, placeholder='Re-enter your password')
  27
+            .message!= partial('messages') 
  28
+            button.btn.btn-primary(type='submit') Save
  29
+script(type='text/javascript', src='/js/signup.js')

0 notes on commit 87df284

Please sign in to comment.
Something went wrong with that request. Please try again.