forked from bofh/fetsite
ADD: Informationsseite:
Models für Themengruppen/Themen/FAQs/Attachments Views für Themengruppen/Themen
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<%= tinymce_assets %>
|
||||
<%= semantic_form_for @thema do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :text %>
|
||||
<%= f.input :themengruppe %>
|
||||
<%= f.input :text, :as=>:tinymce_text%>
|
||||
<% end %>
|
||||
<%= tinymce %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
|
||||
3
app/views/themen/_small.html.erb
Normal file
3
app/views/themen/_small.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<%= raw(small.text) %>
|
||||
<br/>
|
||||
<%= link_to 'Edit', edit_thema_path(small) %>
|
||||
2
app/views/themen/_thema.html.erb
Normal file
2
app/views/themen/_thema.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<%= link_to thema.title,themengruppe_thema_path(thema.themengruppe,thema)%>
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1><%= @thema.title %></h1>
|
||||
<p>
|
||||
<b>Title:</b>
|
||||
<%= @thema.title %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Text:</b>
|
||||
<%= @thema.text %>
|
||||
<%= raw(@thema.text) %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_thema_path(@thema) %> |
|
||||
<%= link_to 'Back', themen_path %>
|
||||
<%= link_to 'Back', themengruppe_path(@thema.themengruppe) %>
|
||||
|
||||
Reference in New Issue
Block a user