1 <% content_for :head do %>
2 <%= javascript_include_tag "diary_entry" %>
5 <% content_for :heading do %>
9 <%= error_messages_for 'diary_entry' %>
11 <%= form_for :diary_entry do |f| %>
12 <table class="diary_entry">
14 <td class="fieldName"><%= t 'diary_entry.edit.subject' -%></td>
15 <td><%= f.text_field :title, :size => 60 %></td>
18 <td class="fieldName"><%= t 'diary_entry.edit.body' -%></td>
19 <td><%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %></td>
22 <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>
23 <td><%= f.collection_select :language_code, Language.order(:english_name), :code, :name %></td>
26 <td class="fieldName"><%= t 'diary_entry.edit.location' -%></td>
28 <%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
29 <span class="location"><%= t 'diary_entry.edit.latitude' -%> <%= f.text_field :latitude, :size => 20, :id => "latitude" %> <%= t 'diary_entry.edit.longitude' -%> <%= f.text_field :longitude, :size => 20, :id => "longitude" %></span>
30 <a href="#" id="usemap"><%= t 'diary_entry.edit.use_map_link' -%></a>
37 <%= submit_tag t('diary_entry.edit.save_button') %>
38 <%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>