forked from bofh/fetsite
changes in lva und beispiele
change
This commit is contained in:
41
app/views/moduls/edit_lvas.html.erb
Normal file
41
app/views/moduls/edit_lvas.html.erb
Normal file
@@ -0,0 +1,41 @@
|
||||
<%= semantic_form_for "lvas[]", :url=>modul_update_lvas_path(@modul) do |ff|%>
|
||||
<table>
|
||||
<% i = 0 %>
|
||||
<% @lvas.each do |lva|%>
|
||||
<% i = i +1 %>
|
||||
<tr>
|
||||
<%= semantic_fields_for "lvas[#{i}]", lva do |f|%>
|
||||
<td>
|
||||
<h4><%= lva.name %></h4>
|
||||
<%= f.semantic_errors :state %>
|
||||
<%= f.input :id, :as=>:hidden %></td>
|
||||
<td><%= f.input :lvanr , :input_html => { "style"=>"width:7em" }%></td>
|
||||
|
||||
|
||||
<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>
|
||||
<td>
|
||||
<%= f.input :semester , :input_html=>{:style=>"height:8em"},:collection=>@semester%></td>
|
||||
|
||||
<td><%= f.input :pruefungsinformation,:input_html=>{:rows=>4} %></td>
|
||||
|
||||
<td><%= f.input :desc, :input_html=>{:rows=>4}%></td>
|
||||
<td>
|
||||
<%= lva.valid? %>
|
||||
|
||||
</td>
|
||||
|
||||
<% end%>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
<%= ff.actions do %>
|
||||
<%= ff.action :submit, :as => :button %>
|
||||
<%= ff.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user