1 <% content_for :head do %>
2 <%= javascript_include_tag "diary_entry" %>
7 <%= error_messages_for 'diary_entry' %>
9 <%= form_for :diary_entry do |f| %>
10 <table class="diary_entry">
12 <td class="fieldName"><%= t 'diary_entry.edit.subject' -%></td>
13 <td><%= f.text_field :title, :size => 60 %></td>
16 <td class="fieldName"><%= t 'diary_entry.edit.body' -%></td>
17 <td><%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %></td>
20 <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>
21 <td><%= f.collection_select :language_code, Language.order(:english_name), :code, :name %></td>
24 <td class="fieldName"><%= t 'diary_entry.edit.location' -%></td>
26 <%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
27 <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>
28 <a href="#" id="usemap"><%= t 'diary_entry.edit.use_map_link' -%></a>
35 <%= submit_tag t('diary_entry.edit.save_button') %>
36 <%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>