forked from bofh/fetsite
themengruppen verwaltung ergänzung
This commit is contained in:
10
app/views/attachments/_rform.html.erb
Normal file
10
app/views/attachments/_rform.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= semantic_form_for [@thema,@attachment],:remote=>true do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :datei, :as => :file %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
2
app/views/attachments/create.js.erb
Normal file
2
app/views/attachments/create.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
1
app/views/attachments/new.js.erb
Normal file
1
app/views/attachments/new.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
Reference in New Issue
Block a user