edit_lvas fix
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<%= 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|%>
|
||||
<%= render 'lvas/nested_fields', :f => f,:lva=>lva %>
|
||||
|
||||
<% end%>
|
||||
<% end %>
|
||||
|
||||
</table>
|
||||
<%= ff.actions do %>
|
||||
<%= ff.action :submit, :as => :button %>
|
||||
<%= ff.action :cancel, :as => :link %>
|
||||
|
||||
Reference in New Issue
Block a user