X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26777c44648f908b723c0c74b65972f75ac5fd3d..62dff6ab7ff94c38b19208dd1423ad0be5cb9dcf:/app/views/diary_entries/edit.html.erb diff --git a/app/views/diary_entries/edit.html.erb b/app/views/diary_entries/edit.html.erb index b46dadf1c..62aed884c 100644 --- a/app/views/diary_entries/edit.html.erb +++ b/app/views/diary_entries/edit.html.erb @@ -6,46 +6,46 @@

<%= @title %>

<% end %> -<%= error_messages_for 'diary_entry' %> +<%= 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} %> + + <%= 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" %>
<% if action_name == 'new' %> - <%= submit_tag t('diary_entries.new.publish_button') %> + <%= submit_tag t("diary_entries.new.publish_button") %> <% else %> - <%= submit_tag t('.save_button') %> + <%= submit_tag t(".save_button") %> <% end %>
<% end %>