edit_lvas fix
This commit is contained in:
@@ -9,8 +9,11 @@
|
|||||||
<td><%= f.input :name %></td>
|
<td><%= f.input :name %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= f.input :ects, :input_html => { "style"=>"width:4em" },:size=>5 %>
|
<%= f.input :ects, :input_html => { "style"=>"width:4em" },:size=>5 %>
|
||||||
<%= f.input :stunden, :input_html => { "style"=>"width:4em" }%></td>
|
<%= f.input :stunden, :input_html => { "style"=>"width:4em" }%>
|
||||||
<td><%= f.input :typ, :input_html => { "style"=>"width:4em" }%></td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<%= f.input :typ, :input_html => { "style"=>"width:4em" }%>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= f.input :semester , :input_html=>{:style=>"height:8em"},:collection=>@semester%>
|
<%= f.input :semester , :input_html=>{:style=>"height:8em"},:collection=>@semester%>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<%= semantic_form_for "lvas[]", :url=>update_lvas_modul_path(@modul) do |ff|%>
|
<%= semantic_form_for "lvas[]", :url=>update_lvas_modul_path(@modul) do |ff|%>
|
||||||
<table>
|
<table>
|
||||||
<% i = 0 %>
|
<% i = 0 %>
|
||||||
|
|
||||||
<% @lvas.each do |lva|%>
|
<% @lvas.each do |lva|%>
|
||||||
<% i = i +1 %>
|
<% i = i +1 %>
|
||||||
<%= semantic_fields_for "lvas[#{i}]", lva do |f|%>
|
<%= semantic_fields_for "lvas[#{i}]", lva do |f|%>
|
||||||
<%= render 'lvas/nested_fields', :f => f,:lva=>lva %>
|
<%= render 'lvas/nested_fields', :f => f,:lva=>lva %>
|
||||||
|
|
||||||
<% end%>
|
<% end%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</table>
|
||||||
<%= ff.actions do %>
|
<%= ff.actions do %>
|
||||||
<%= ff.action :submit, :as => :button %>
|
<%= ff.action :submit, :as => :button %>
|
||||||
<%= ff.action :cancel, :as => :link %>
|
<%= ff.action :cancel, :as => :link %>
|
||||||
|
|||||||
Reference in New Issue
Block a user