forked from bofh/fetsite
36 lines
892 B
Plaintext
36 lines
892 B
Plaintext
<p id="notice"><%= notice %></p>
|
|
|
|
<h1><%= @thema.title %></h1>
|
|
<p>
|
|
<%= raw(@thema.text) %>
|
|
</p>
|
|
|
|
|
|
<%= link_to 'Edit', edit_thema_path(@thema) %> |
|
|
<%= link_to 'Back', themengruppe_path(@thema.themengruppe) %>
|
|
|
|
<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>
|
|
<% end %>
|
|
<%= link_to 'Neue Frage', new_frage_path %> <br/>
|
|
<br/>
|
|
|
|
<h2>Attachments:</h2>
|
|
<% @thema.attachments.each do |attachment| %>
|
|
<ul>
|
|
<li>
|
|
<%= link_to attachment.name, edit_thema_attachment_path(@thema,attachment) %> | <%= link_to 'Destroy',[@thema,attachment], method: :delete, data: { confirm: 'Are you sure?' } %>
|
|
</li>
|
|
</ul>
|
|
<% end %>
|
|
<%= link_to 'Neues Attachment', new_thema_attachment_path(@thema) %>
|
|
<br/>
|