Wiki Erstentwurf,

gollum installiert und Aktiviert,
noch nicht fertig!

Neuigkeiten / Rubriken Verwaltung verbessert
+ Neue Neuigkeiten einfügen,
+ Liste der Neuigkeiten einer Kategorie
+ html für Neuigkeiten
This commit is contained in:
Andreas Stephanides
2013-03-02 14:09:12 +01:00
parent 748497ce98
commit cdf7acd426
19 changed files with 120 additions and 41 deletions

View File

@@ -1,11 +1,14 @@
<%= tinymce_assets %>
<%= semantic_form_for @neuigkeit do |f| %>
<%= f.inputs do %>
<%= f.input :title, :placeholder=>"Titel" %>
<%= f.input :text %>
<%= f.input :text, :as=>:tinymce_text %>
<%= f.input :datum %>
<%= f.input :rubrik, :as=>:radio, :colleciton=>Rubrik.all %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>
<%= tinymce %>

View File

@@ -1,2 +1,2 @@
<h2><%=neuigkeit.title %></h2>
<p><%= neuigkeit.text %></p>
<p><%= raw(neuigkeit.text) %></p>

View File

@@ -2,4 +2,4 @@
<%= render 'form' %>
<%= link_to 'Back', neuigkeiten_path %>
<%= link_to 'Back', rubrik_path(@rubrik) %>