Zeit formatiert

Datetimepicker fixed, Speichern und weiter
This commit is contained in:
2014-06-21 16:36:30 +05:30
parent 6c9a1b51c4
commit a87990c338
6 changed files with 25 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
<%= tinymce_assets %>
<div class="container-fluid">
<%= semantic_form_for @thema, :remote=>remote do |f| %>
<%= f.inputs do %>
@@ -17,8 +18,8 @@
</div>
<%= f.actions do %>
<%= f.action :submit, :as => :button %>
<%= f.action :submit, :as => :button, :label=> "&edit", :params=>{edit: true} %>
<%= 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 %>

View File

@@ -23,10 +23,7 @@
</div>
</br>
<% unless @thema.id.nil? %>
<% @att_elements = [{:icon=>:plus, :hicon=>'icon-plus', :text=>I18n.t('attachment.add'), :path=>new_thema_attachment_path(@thema),:remote=>true}] %>
<div id="attachmentform">
</div>
<%= render :partial=>'layouts/pretty_toolbar', :object=>@att_elements %>
<% end %>
<br/>

View File

@@ -1,5 +1,5 @@
<div id="themaview">
<h1>Editing thema</h1>
<%= render 'form' , :locals=>{:remote=>false}, :remote=>false %>
<h1><%= I18n.t("thema.edit")%></h1>
<%= render 'form', :locals=>{:remote=>false}, :remote=>false %>
</div>
</br><%= link_to 'Back', @thema %>