Skip to content
Browse files

Minor: simplify create user form.

  • Loading branch information...
1 parent b93edb2 commit 1865c1bfc2d8f72b017de23c0950b90d6a6d4686 @aseemk committed Feb 29, 2012
Showing with 11 additions and 15 deletions.
  1. +11 −15 views/users.jade
View
26 views/users.jade
@@ -1,19 +1,15 @@
h1 Users
-case users.length
- when 0
- p There are no users currently.
- default
- p Here are the current users:
- ul.users
- for user in users
- li.user
- a(href='/users/#{user.id}') #{user.name}
+if users.length
+ p Here are the current users:
+ ul.users
+ for user in users
+ li.user
+ a(href='/users/#{user.id}') #{user.name}
+else
+ p There are no users currently.
form(action='', method='POST')
- fieldset
- legend Create User
- label
- span Name:
- input(type='text', name='name', required)
- input(type='submit', value='Create')
+ p Create a new user:
+ input(type='text', name='name', placeholder='Name', required)
+ input(type='submit', value='Create')

0 comments on commit 1865c1b

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