From 520ce0c6ed830cabc686b6d1607ac5fb31330515 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Fri, 4 Jul 2014 06:37:43 +0200 Subject: [PATCH] Form themen fix1 --- app/views/themen/_form.html.erb | 40 ++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/app/views/themen/_form.html.erb b/app/views/themen/_form.html.erb index 0185a60..cbc8b2b 100644 --- a/app/views/themen/_form.html.erb +++ b/app/views/themen/_form.html.erb @@ -31,20 +31,34 @@ <%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %> - -<% unless I18n.locale == :de %> -<% I18n.with_locale(:de) do %> -<%= raw(@thema.text) %> -<% end %><% end %> - <%= f.actions do %> - <%= f.action :submit, :as => :button, :label=> I18n.t("thema.save" ) %> - <%= f.action :submit, :as => :button, :label=> I18n.t("thema.savecont"), :button_html=>{:value=>"continue"} %> - <%= f.action :cancel, :as => :link %> - <% end %> - <% end %><% end %> +
+
+ +<% unless I18n.locale == :de do %> + <% I18n.with_locale(:de) do %> + <%= raw(@thema.text) %> + <% end %> +<% end %> +
+
+ +
+
+ + <%= f.actions do %> + <%= f.action :submit, :as => :button, :label=> I18n.t("thema.save" ) %> + <%= f.action :submit, :as => :button, :label=> I18n.t("thema.savecont"), :button_html=>{:value=>"continue"} %> + <%= f.action :cancel, :as => :link %> + <% end %> +
+
+ + <% end %> + <% end %> <%= tinymce %> -

Attachments:

- <%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %> + +

Attachments:

+<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>