summaryrefslogtreecommitdiff
path: root/app/views/users/new.html.erb
blob: f0ce74662df02cf2ef6a9f96a1cd98a9c3ea5251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<h1> Sign Up </h1>

<% if false %>
<%= form_for :user do |f| %>
  <p>
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </p>
 <p>
    <%= f.label :email %><br>
    <%= f.text_field :email %>
  </p>
  <p>
    <%= f.label :user_name %><br>
    <%= f.text_field :user_name %>
  </p>
   <p>
    <%= f.label :password %><br>
    <%= f.password_field :password %>
  </p>
  <p>
    <%= f.label :password_confirm %><br>
    <%= f.password_field :password_confirmation %>
  </p>
  <p>
    <%= f.submit %>
  </p>
<% end %>


<% end %>

<form accept-charset="UTF-8" action="/users" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="6WQoPLFISlDYCsi4LhAgT0hgrht19yydD3w5TlKfb7I=" /></div>
  <p>
    <label for="user_name">Name</label><br>
    <input id="user_name" name="user[name]" type="text" />
  </p>
 <p>
    <label for="user_email">Email</label><br>
    <input id="user_email" name="user[email]" type="text" />
  </p>
  <p>
    <label for="user_user_name">User name</label><br>
    <input id="user_user_name" name="user[user_name]" type="text" />
  </p>
   <p>
    <label for="user_password">Password</label><br>
    <input id="user_password" name="user[password]" type="password" />
  </p>
  <p>
    <label for="user_password_confirm">Password confirm</label><br>
    <input id="user_password_confirmation" name="user[password_confirmation]" type="password" />
  </p>
  <p>
    <input name="commit" type="submit" value="Save User" />
  </p>
</form>

<%= link_to 'Already Have an Account? Log in', new_session_path, :class => "btn btn-warning btn-lg" %>