+
+
+<%= semantic_form_for @thema, :remote=>true do |f| %>
<%= f.inputs do %>
+
+
<%= f.input :title %>
+
+
<%= f.input :themengruppe %>
- <%= f.input :text, :as=>:tinymce_text%>
- <% end %>
-<%= tinymce %>
+
+
+
+ <%= f.input :text, :as=>:tinymce_text,:label=>false %>
+
+
-
Attachments:
-<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
+
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
-<% end %>
-
-
-
diff --git a/app/views/themen/_select.html.erb b/app/views/themen/_select.html.erb
index fb91bcb..2ddb1f9 100644
--- a/app/views/themen/_select.html.erb
+++ b/app/views/themen/_select.html.erb
@@ -24,8 +24,9 @@
<% unless @thema.id.nil? %>
-<% @att_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('attachment.add'), :path=>new_thema_attachment_path(@thema)}] %>
-
+<% @att_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('attachment.add'), :path=>new_thema_attachment_path(@thema),:remote=>true}] %>
+
+
<%= render :partial=>'layouts/pretty_toolbar', :object=>@att_elements %>
<% end %>
diff --git a/app/views/themen/edit.html.erb b/app/views/themen/edit.html.erb
index 5376cfb..de6c7a3 100644
--- a/app/views/themen/edit.html.erb
+++ b/app/views/themen/edit.html.erb
@@ -1,5 +1,5 @@
+
Editing thema
-
<%= render 'form' %>
-
+
<%= link_to 'Back', @thema %>
diff --git a/app/views/themen/show.html.erb b/app/views/themen/show.html.erb
index 27e38a9..041efab 100644
--- a/app/views/themen/show.html.erb
+++ b/app/views/themen/show.html.erb
@@ -11,18 +11,14 @@
-->
<%= render :partial=>'layouts/pretty_toolbar' %>
-
FAQs:
-
-<%= render :partial=>'fragen/liste' %>
-
-<% @frage=Frage.new; @frage.thema=@thema %>
-<%= render :partial=>'fragen/rform' %>
-<% @frage_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('frage.add'), :path=>new_frage_path}] %>
-<%= render :partial=>'layouts/pretty_toolbar', :object=>@frage_elements %>
+<%= render :partial=>'themen/fragen' %>
<%= I18n.t('attachment.title')%>:
+
+
+<%= link_to new_thema_attachment_path(@thema) ,:remote=>true do %> new Attachment <% end %>
<%= render :partial => "themen/select", :object => @thema, :locals=>{:editor => :false} %>
diff --git a/app/views/themengruppen/verwalten.html.erb b/app/views/themengruppen/verwalten.html.erb
index b828f3e..ee14704 100644
--- a/app/views/themengruppen/verwalten.html.erb
+++ b/app/views/themengruppen/verwalten.html.erb
@@ -2,18 +2,26 @@
#themen { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px;zoom: 1; }
#themen li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 95%; }
+
+
+
+
<% @themen.each do |thema| %>
-<%= thema.title %>
+<%= thema.title %>
<%= link_to edit_thema_path(thema),:remote=>true do %> Edit <% end %> <%= link_to thema_fragen_path(thema),:remote=>true do %> Fragen <% end %>
<% end %>
-
+
+