Skip to content

Commit

Permalink
order fallback slides by name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinnio committed Sep 11, 2017
1 parent ff150e2 commit cc78a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/slide_locations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= f.field_container :fallback_slide_id do %>
<%= f.label :fallback_slide_id, 'Fallback slide' %><br>
<div class="help-block">This slide will be shown only when no other slide can be shown.</div>
<%= f.collection_select(:fallback_slide_id, Spree::Slide.all, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2', disabled: (cannot? :edit, Spree::SlideLocation) }) %>
<%= f.collection_select(:fallback_slide_id, Spree::Slide.all.order(:name), :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2', disabled: (cannot? :edit, Spree::SlideLocation) }) %>
<% end %>
</div>

Expand Down

0 comments on commit cc78a0d

Please sign in to comment.