CHANGE: pretty_toolbar für Fragen und Themen

This commit is contained in:
HausdorffHimself
2013-09-01 23:56:04 +02:00
parent 94925e34ba
commit 9c316f165c
8 changed files with 47 additions and 25 deletions

View File

@@ -5,23 +5,23 @@
<%= raw(@thema.text) %>
</p>
<!--
<%= link_to 'Edit', edit_thema_path(@thema) %> |
<%= link_to 'Back', themengruppe_path(@thema.themengruppe) %>
-->
<%= render :partial=>'layouts/pretty_toolbar' %>
<h2>FAQs:</h2>
<% @thema.fragen.each do |frage| %>
<p>
<b> <%= frage.title %> </b> <br/>
<%= raw(frage.text) %>
<br/>
<%= link_to 'Edit', edit_frage_path(frage) %> |
<%= link_to 'Destroy',frage, method: :delete, data: { confirm: 'Are you sure?' } %>
</p>
<%= render frage %>
<% end %>
<% @frage_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('frage.add'), :path=>new_frage_path}] %>
<%= render :partial=>'layouts/pretty_toolbar', :object=>@frage_elements %>
<!--
<%= link_to 'Neue Frage', new_frage_path %> <br/>
-->
<br/>
<h2>Attachments:</h2>
<%= render :partial => "themen/select", :object => @thema, :locals => { :editor => :false }%>
<h2><%= I18n.t('attachment.title')%>:</h2>
<%= render :partial => "themen/select", :object => @thema, :locals=>{:editor => :false} %>