forked from bofh/fetsite
bulk modul edit
This commit is contained in:
29
app/views/moduls/_form_bulk.html.erb
Normal file
29
app/views/moduls/_form_bulk.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<%= semantic_form_for "moduls[]", :url=>update_bulk_moduls_path do |ff| %>
|
||||
<table>
|
||||
<tr><th>Modulname</th><th>Modulgruppen</th><th>Beschreibung</th> <th>Voraussetzungen</th></tr>
|
||||
<% @moduls.each do |m| %>
|
||||
<%= semantic_fields_for "moduls[#{m.id}]", m do |f| %>
|
||||
<tr><td>
|
||||
<%= f.input :id, :label=>false, :hint=>"" ,:as=>:hidden%>
|
||||
<%= f.input :name, :label=>false, :hint=>"" %></td>
|
||||
<td>
|
||||
<%= f.input :modulgruppen, :label=>false, :hint=>"" , :collection=>Modulgruppe.all %>
|
||||
</td>
|
||||
<td>
|
||||
<%= f.input :desc, :label=>false, :hint=>"" ,:input_html=>{:class=>"row-fluid"} %>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<%= f.input :depend, :label=>false, :hint=>"" ,:input_html=>{:class=>"row-fluid"} %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</table>
|
||||
<%= ff.actions do %>
|
||||
<%= ff.action :submit, :label=>"Save", :as=>:button %>
|
||||
<%= ff.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
1
app/views/moduls/edit_bulk.html.erb
Normal file
1
app/views/moduls/edit_bulk.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render :partial=>"form_bulk" %>
|
||||
1
app/views/moduls/new_bulk.html.erb
Normal file
1
app/views/moduls/new_bulk.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render :partial=>"form_bulk" %>
|
||||
Reference in New Issue
Block a user