calentries -neuigkeiten calender fix

This commit is contained in:
Andreas Stephanides
2013-10-04 16:11:36 +02:00
parent 0fe92a4b48
commit 2e01fd574b
13 changed files with 63 additions and 28 deletions

View File

@@ -1,19 +1,20 @@
<%= tinymce_assets %>
<%= semantic_form_for [@neuigkeit.rubrik,@neuigkeit] do |f| %>
<%= f.inputs do %>
<%= f.input :title, :placeholder=>"Titel" %>
<%= f.input :text, :as=>:tinymce_text %>
<% f.input :datum, :as=>:datepicker %>
<%= f.input :rubrik, :as=>:radio, :collection=>Rubrik.all %>
<%= f.input :author, :as=>:radio %>
<%= f.input :picture, :as=>:file %>
<%= f.inputs :for => :calentry do |calentry| %>
<%= calentry.input :start, :as =>:datepicker %>
<%= calentry.input :ende, :as =>:datepicker %>
<%= calentry.input :typ %>
<%= f.input :title, :placeholder=> "Titel" %>
<%= f.input :text, :as=> :tinymce_text %>
<% f.input :datum, :as=> :datepicker %>
<%= f.input :rubrik, :as=> :radio, :collection=>Rubrik.all %>
<%= f.input :author, :as=> :radio %>
<%= f.input :picture, :as=> :file %>
<% unless @neuigkeit.calentry.nil? %>
<%= f.inputs :for => :calentry do |calentry| %>
<%= calentry.input :start, :as => :datepicker %>
<%= calentry.input :ende , :as => :datepicker %>
<%= calentry.input :typ %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>

View File

@@ -1,4 +1,4 @@
<h1><%=I18n.t("neuigkeit.new.title") %></h1>
<h1><%= I18n.t("neuigkeit.new.title") %></h1>
<%= render 'form' %>