edit_lvas fix

This commit is contained in:
Andreas Stephanides
2014-04-18 11:29:40 +02:00
parent a50a7c50f8
commit b0448541b2
2 changed files with 11 additions and 8 deletions

View File

@@ -9,8 +9,11 @@
<td><%= f.input :name %></td>
<td>
<%= f.input :ects, :input_html => { "style"=>"width:4em" },:size=>5 %>
<%= f.input :stunden, :input_html => { "style"=>"width:4em" }%></td>
<td><%= f.input :typ, :input_html => { "style"=>"width:4em" }%></td>
<%= f.input :stunden, :input_html => { "style"=>"width:4em" }%>
</td>
<td>
<%= f.input :typ, :input_html => { "style"=>"width:4em" }%>
</td>
<td>
<%= f.input :semester , :input_html=>{:style=>"height:8em"},:collection=>@semester%>
</td>

View File

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