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' )%>")
|
||||||
1
app/views/fragen/new.js.erb
Normal file
1
app/views/fragen/new.js.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$("#fragenform").html("<%=escape_javascript( render :partial=>'fragen/rform' )%>")
|
||||||
10
app/views/themen/_fragen.html.erb
Normal file
10
app/views/themen/_fragen.html.erb
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<h2>FAQs:</h2>
|
||||||
|
<div id="fragen">
|
||||||
|
<%= render :partial=>'fragen/liste' %>
|
||||||
|
</div>
|
||||||
|
<% @frage=Frage.new; @frage.thema=@thema %>
|
||||||
|
<div id="fragenform">
|
||||||
|
<%= render :partial=>'fragen/rform' %>
|
||||||
|
</div>
|
||||||
|
<% @frage_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('frage.add'), :path=>new_frage_path}] %>
|
||||||
|
<%= render :partial=>'layouts/pretty_toolbar', :object=>@frage_elements %>
|
||||||
1
app/views/themen/edit.js.erb
Normal file
1
app/views/themen/edit.js.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$("#themaview").html("<%= escape_javascript(raw("<h2>Bearbeiten</h2>")+render(:partial=>"themen/form") )%>");
|
||||||
1
app/views/themen/fragen.js.erb
Normal file
1
app/views/themen/fragen.js.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$("#themaview").html("<%=escape_javascript( render :partial=>'themen/fragen' )%>")
|
||||||
2
app/views/themen/update.js.erb
Normal file
2
app/views/themen/update.js.erb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
alert('t');
|
||||||
|
$("#themaview").html("<%= escape_javascript(raw("<h2>Bearbeiten</h2>")+render(:partial=>"themen/small", :object=>@thema) )%>");
|
||||||
2
app/views/themengruppen/edit.js.erb
Normal file
2
app/views/themengruppen/edit.js.erb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
alert("hallo Welt");
|
||||||
|
$("#themaview").html("<%=escape_javascript( render :action=>:edit, :layout=>false )%>");
|
||||||
Reference in New Issue
Block a user