Skip to content

Commit 0ea04ad

Browse files
author
Christopher Talib
authored
Merge pull request #259 from tosdr/implementing-cases
[WIP] Implementing cases
2 parents ce3c87d + def39d1 commit 0ea04ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/views/points/_form.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
</div>
88
<%= simple_form_for [@point] do |f| %>
99
<div class="col-xs-12 col-sm-6">
10-
<%= f.association :service, hint: "If your service isn't on the list, please contact the team" %>
10+
<%= f.association :service, collection: Service.order('name ASC'), hint: "If your service isn't on the list, please contact the team" %>
11+
1112
</div>
1213
<div class="col-xs-12 col-sm-6">
13-
<%= f.association :topic, hint: "Category of the point" %>
14+
<%= f.association :topic, collection: Topic.order('title ASC'), hint: "Category of the point" %>
1415
</div>
1516
<div class="col-xs-12">
1617
<%= f.input :title, hint: "Give your point a short descriptive title (max 140 chars)" %>

0 commit comments

Comments
 (0)