<%= semantic_form_for "lvas[]", :url=>modul_update_lvas_path(@modul) do |ff|%> <% i = 0 %> <% @lvas.each do |lva|%> <% i = i +1 %> <%= semantic_fields_for "lvas[#{i}]", lva do |f|%> <% end%> <% end %> <%= ff.actions do %> <%= ff.action :submit, :as => :button %> <%= ff.action :cancel, :as => :link %> <% end %> <% end %>

<%= lva.name %>

<%= f.semantic_errors :state %> <%= f.input :id, :as=>:hidden %>
<%= f.input :lvanr , :input_html => { "style"=>"width:7em" }%> <%= f.input :name %> <%= f.input :ects, :input_html => { "style"=>"width:4em" },:size=>5 %> <%= f.input :stunden, :input_html => { "style"=>"width:4em" }%> <%= f.input :typ, :input_html => { "style"=>"width:4em" }%> <%= f.input :semester , :input_html=>{:style=>"height:8em"},:collection=>@semester%> <%= f.input :pruefungsinformation,:input_html=>{:rows=>4} %> <%= f.input :desc, :input_html=>{:rows=>4}%> <%= lva.valid? %>