diff --git a/app/views/lvas/_form.html.erb b/app/views/lvas/_form.html.erb index fdc33e1..e173776 100755 --- a/app/views/lvas/_form.html.erb +++ b/app/views/lvas/_form.html.erb @@ -38,18 +38,26 @@

BILD

- "> + "> <%= f.input :modul, :as => :check_boxes, :member_label=>:name, :collection => @lva.modul %> - + <% f.input :modul, :as=>:check_boxes%> -
- - -
- <%= f.input :semester, :as=>:check_boxes, :collection=>@semester%> - <%= f.input :lecturers, :as=>:check_boxes%> + + + <% f.input :semester, :as=>:check_boxes, :collection=>@semester%> + + "> + <%= f.input :semester, :as => :check_boxes, :member_label=>:name, :collection => @lva.semester %> + + + "> + <%= f.input :lecturers, :as => :check_boxes, :member_label=>:name, :collection => @lva.lecturers %> + + + + <% f.input :lecturers, :as=>:check_boxes%>
<% end %> <%= f.actions do %> @@ -73,7 +81,7 @@ $(function(){ return false; } }).each(function() { // Goes through `.autocomplete` elements and sets source - $(this).autocomplete("option", "source", $(this).data('collection').split(";").map(function(el){return JSON.parse(el)})); + $(this).autocomplete("option", "source", $(this).data('collection').split(";").map(function(el){console.log(el);return JSON.parse(el)})); }) .data( "ui-autocomplete" )._renderItem = function( ul, item ) { return $( "
  • " )