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 <div class="diary_entry standard-form">
14 <div class='form-row'>
15 <label class="standard-label"><%= t '.subject' -%></label>
16 <%= f.text_field :title, :class => "richtext_title" %>
18 <div class='form-row'>
19 <label class="standard-label"><%= t '.body' -%></label>
20 <%= richtext_area :diary_entry, :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %>
22 <div class='form-row'>
23 <label class="standard-label"><%= t '.language' -%></label>
24 <%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>
27 <fieldset class='location'>
28 <label class="standard-label"><%= t '.location' -%></label>
29 <%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
30 <div class='form-row clearfix'>
31 <div class='form-column'>
32 <label class="secondary standard-label"><%= t '.latitude' -%></label>
33 <%= f.text_field :latitude, :size => 20, :id => "latitude" %>
35 <div class='form-column'>
36 <label class="secondary standard-label"><%= t '.longitude' -%></label>
37 <%= f.text_field :longitude, :size => 20, :id => "longitude" %>
39 <div class='form-column'>
40 <a href="#" id="usemap"><%= t '.use_map_link' -%></a>
45 <% if action_name == 'new' %>
46 <%= submit_tag t('diary_entry.new.publish_button') %>
48 <%= submit_tag t('.save_button') %>