-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.txt
54 lines (44 loc) · 1.87 KB
/
demo.txt
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
<%= display_errors_for_object @profile %>
<%= form_for @profile, url: { action: :create }, html:{ class: :nice_form } do |f| %>
<%= label_tag :name_of_agency, "Name Of Agency" %>
<%= f.text_field :name_of_agency %>
<br/>
<%= label_tag :subscription_id, "Subscription" %>
<%= f.select :subscription_id, @subscriptions.map{|s| [s.name, s.id]} %>
<br/>
<%= label_tag :desc, "Bio" %>
<%= f.text_area :desc %>
<br/>
<%= label_tag :profile_picture, "Logo/Picture" %>
<%= f.file_field :profile_picture %>
<br/>
<%= f.submit :Create %>
<% end %>
<% @categories.each do |category| %>
<li class="dropdown ">
<%= link_to service_path(category.id), { class: "dropdown-toggle hyper", "data-toggle" => "true" } do %>
<span><%= category.name %>
<% unless category.subcategories.blank? %>
<b class="caret"></b>
<% end %>
</span>
<% end %>
</li>
<% end %>
<%= form_tag({ controller: :mains, action: :search }, :method => "get", id: "search-form") do %>
<div class="col-md-6 col-sm-4 col-xs-12 search-no-padding-left search-no-padding-right">
<%= text_field_tag :q, params[:q], placeholder: "Search" %>
<!--<input type="text" placeholder="Search" name="Search">-->
</div>
<div class="col-md-4 col-sm-4 hidden-xs search-no-padding-right">
<select>
<option>Select location</option> <!-- fix the locations with stella -->
<option>Accra</option>
<option>Kumasi</option>
</select>
</div>
<div class="col-md-2 col-sm-4 col-xs-12 search-no-padding">
<%= submit_tag "Search", class: "search-no-border btn-search" %>
<!--<button class="search-no-border" type="submit">Search</button>-->
</div>
<% end %>