Skip to content
Snippets Groups Projects
Commit a7c4bbf9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Sort the contents of the RecurringItem selectbox in the

RecurringItemRanges form.  Add a selection for the Schedule on
the same form.
parent 27deb878
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,10 @@
<!--[form:recurring_item_range]-->
<p><label for="recurring_item_range_recurring_item_id">Item</label><br/>
<%= select 'recurring_item_range', 'recurring_item_id', RecurringItem.find_all.collect { |i| [ i.description, i.id ] } %></p>
<%= select 'recurring_item_range', 'recurring_item_id', RecurringItem.find_all.collect { |i| [ i.description, i.id ] }.sort %></p>
<p><label for="recurring_item_range_schedule_id">Schedule</label><br/>
<%= select 'recurring_item_range', 'schedule_id', Schedule.find_all.collect { |i| [ i.name, i.id ] } %></p>
<p><label for="recurring_item_range_amount">Amount</label><br/>
<%= text_field 'recurring_item_range', 'amount' %></p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment