|
5 | 5 | <%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
|
6 | 6 | <%= form.password_field :password, placeholder: "Password" %>
|
7 | 7 | <%= form.select :status, [['activated', 1], ['blocked', 2]], prompt: "Please Select" %>
|
8 |
| - <%= form.text_area :comments %> |
9 |
| - <%= form.check_box :terms, label: "Agree to Terms" %> |
10 |
| - <%= form.collection_check_boxes :checkboxes, @collection, :id, :street %> |
| 8 | + <%= form.textarea :comments %> |
| 9 | + <%= form.checkbox :terms, label: "Agree to Terms" %> |
| 10 | + <%= form.collection_checkboxes :checkboxes, @collection, :id, :street %> |
11 | 11 | <%= form.collection_radio_buttons :radio_buttons, @collection, :id, :street %>
|
12 | 12 | <%= form.file_field :file %>
|
13 | 13 | <%= form.datetime_select :created_at, include_blank: true %>
|
|
23 | 23 | <%= form.alert_message "This is an alert" %>
|
24 | 24 | <%= form.error_summary %>
|
25 | 25 | <%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
|
26 |
| - <%= form.collection_check_boxes :misc, @collection, :id, :street %> |
| 26 | + <%= form.collection_checkboxes :misc, @collection, :id, :street %> |
27 | 27 | <%= form.submit %>
|
28 | 28 | <% end %>
|
29 | 29 | <% end %>
|
|
34 | 34 | <%= bootstrap_form_for @user, layout: :inline do |form| %>
|
35 | 35 | <%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
|
36 | 36 | <%= form.password_field :password, placeholder: "Password" %>
|
37 |
| - <%= form.check_box :terms, label: "Agree to Terms" %> |
38 |
| - <%= form.collection_check_boxes :misc, @collection, :id, :street %> |
| 37 | + <%= form.checkbox :terms, label: "Agree to Terms" %> |
| 38 | + <%= form.collection_checkboxes :misc, @collection, :id, :street %> |
39 | 39 | <%= form.submit %>
|
40 | 40 | <% end %>
|
41 | 41 | <% end %>
|
|
46 | 46 | <%= bootstrap_form_for @user, url: "/" do |form| %>
|
47 | 47 | <%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
|
48 | 48 | <%= form.password_field :password, placeholder: "Password" %>
|
49 |
| - <%= form.check_box :terms, label: "Agree to Terms" %> |
50 |
| - <%= form.collection_check_boxes :misc, @collection, :id, :street %> |
51 |
| - <%= form.rich_text_area(:life_story) %> |
| 49 | + <%= form.checkbox :terms, label: "Agree to Terms" %> |
| 50 | + <%= form.collection_checkboxes :misc, @collection, :id, :street %> |
| 51 | + <%= form.rich_textarea(:life_story) %> |
52 | 52 | <%= form.submit %>
|
53 | 53 | <% end %>
|
54 | 54 | <% end %>
|
|
60 | 60 | <%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else", floating: true %>
|
61 | 61 | <%= form.password_field :password, placeholder: "Password", floating: true %>
|
62 | 62 | <%= form.text_field :misc, floating: true %>
|
63 |
| - <%= form.text_area :comments, floating: true %> |
| 63 | + <%= form.textarea :comments, floating: true %> |
64 | 64 | <%= form.select :status, [["Active", 1], ["Inactive", 2]], include_blank: "Select a value", floating: true %>
|
65 | 65 | <%= form.submit %>
|
66 | 66 | <% end %>
|
|
0 commit comments