-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathindex.erb
39 lines (33 loc) · 980 Bytes
/
index.erb
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
<%= tag.h1 'Search Users' %>
<%= tag.header link_to_toggle_search_modes %>
<%= search_form_for @search do |f| %>
<%= tag.fieldset do %>
<%= tag.legend 'User' %>
<%= tag.ul do %>
<%= tag.li do %>
<%= f.label :first_name_or_last_name_cont %>
<%= f.text_field :first_name_or_last_name_cont %>
<% end %>
<%= tag.li do %>
<%= f.label :email_cont %>
<%= f.text_field :email_cont %>
<% end %>
<% end %>
<% end %>
<%= tag.fieldset do %>
<%= tag.legend "User's Posts" %>
<%= tag.ul do %>
<%= tag.li do %>
<%= f.label :posts_title_cont %>
<%= f.text_field :posts_title_cont %>
<% end %>
<%= tag.li do %>
<%= f.label :other_posts_title_cont %>
<%= f.text_field :other_posts_title_cont %>
<% end %>
<% end %>
<% end %>
<%= display_distinct_label_and_check_box %>
<%= f.submit class: 'btn btn--invert' %>
<% end %>
<%= render 'results' %>