forked from bofh/fetsite
Form themen fix1
This commit is contained in:
@@ -31,19 +31,33 @@
|
|||||||
<%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
|
<%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<% unless I18n.locale == :de %>
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
|
||||||
|
<% unless I18n.locale == :de do %>
|
||||||
<% I18n.with_locale(:de) do %>
|
<% I18n.with_locale(:de) do %>
|
||||||
<%= raw(@thema.text) %>
|
<%= raw(@thema.text) %>
|
||||||
<% end %><% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
|
||||||
<%= f.actions do %>
|
<%= f.actions do %>
|
||||||
<%= f.action :submit, :as => :button, :label=> I18n.t("thema.save" ) %>
|
<%= 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 :submit, :as => :button, :label=> I18n.t("thema.savecont"), :button_html=>{:value=>"continue"} %>
|
||||||
<%= f.action :cancel, :as => :link %>
|
<%= f.action :cancel, :as => :link %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %><% end %>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<%= tinymce %>
|
<%= tinymce %>
|
||||||
|
</div>
|
||||||
<h2>Attachments:</h2>
|
<h2>Attachments:</h2>
|
||||||
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
|
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user