<%= tinymce_assets %>

<div class="container-fluid">
  <%= semantic_form_for @thema, :remote=>remote do |f| %>
  <%= f.inputs do %>
  <div class="row-fluid">
    <div class="span6">
      <%= f.input :title %>
    </div> 
    <div class="span6">
      <%= f.input :themengruppe %>
    </div>
  </div>
  <div class="row-fluid"> 
    <div class="span4">
      <%= f.input :isdraft %>
    </div>  
    <div class="span4">
      <%= f.input :hidelink, :as=>:boolean %>

    </div>  
    <div class="span4">
      <%= f.input :hideattachment %>

    </div>  

  </div>

  <div class="row-fluid"> 
    <div class="span12"> 
      <%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
    </div> 
  </div> 

  <div class="row-fluid"> 
    <div class="span12"> 

<% unless I18n.locale == :de  %>
  <% I18n.with_locale(:de) do %>
    <%= raw(@thema.text) %>
  <% end %>
<% end %>
    </div> 
  </div> 

  <div class="row-fluid"> 
    <div class="span12"> 

      <%= 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 %> 
    </div> 
  </div> 

  <% end %>
  <% end %>
  <%= tinymce %>

</div>

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



