diff --git a/app/views/attachments/_rform.html.erb b/app/views/attachments/_rform.html.erb new file mode 100644 index 0000000..07921ad --- /dev/null +++ b/app/views/attachments/_rform.html.erb @@ -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 %> diff --git a/app/views/attachments/create.js.erb b/app/views/attachments/create.js.erb new file mode 100644 index 0000000..57812ac --- /dev/null +++ b/app/views/attachments/create.js.erb @@ -0,0 +1,2 @@ + +$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>") diff --git a/app/views/attachments/new.js.erb b/app/views/attachments/new.js.erb new file mode 100644 index 0000000..fc8b787 --- /dev/null +++ b/app/views/attachments/new.js.erb @@ -0,0 +1 @@ +$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>") \ No newline at end of file diff --git a/app/views/fragen/new.js.erb b/app/views/fragen/new.js.erb new file mode 100644 index 0000000..e20f7ca --- /dev/null +++ b/app/views/fragen/new.js.erb @@ -0,0 +1 @@ +$("#fragenform").html("<%=escape_javascript( render :partial=>'fragen/rform' )%>") \ No newline at end of file diff --git a/app/views/themen/_fragen.html.erb b/app/views/themen/_fragen.html.erb new file mode 100644 index 0000000..727a14f --- /dev/null +++ b/app/views/themen/_fragen.html.erb @@ -0,0 +1,10 @@ +