X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7893df84ed0de89bff772cd9bf94caf8fcfc383..b5188cae0865597462bd6b5068a80ccfceab802a:/app/views/diary_entries/new.html.erb diff --git a/app/views/diary_entries/new.html.erb b/app/views/diary_entries/new.html.erb index b1645d5c5..9d8ad6170 100644 --- a/app/views/diary_entries/new.html.erb +++ b/app/views/diary_entries/new.html.erb @@ -6,42 +6,6 @@

<%= @title %>

<% end %> -<%= error_messages_for "diary_entry" %> - -<%= form_for @diary_entry do |f| %> -
-
-
- - <%= f.text_field :title, :class => "richtext_title" %> -
-
- - <%= richtext_area :diary_entry, :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %> -
-
- - <%= f.collection_select :language_code, Language.order(:english_name), :code, :name %> -
-
-
- - <%= content_tag "div", "", :id => "map", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %> -
-
- - <%= f.text_field :latitude, :size => 20, :id => "latitude" %> -
-
- - <%= f.text_field :longitude, :size => 20, :id => "longitude" %> -
- -
-
- - <%= submit_tag t("diary_entries.new.publish_button") %> -
+<%= form_for @diary_entry, :builder => RichtextFormBuilder do |f| %> + <%= render :partial => "form", :locals => { :f => f } %> <% end %>