2009-06-03 21:30:09 +02:00
|
|
|
<% content_for :javascript do %>
|
2010-11-21 12:16:52 +01:00
|
|
|
<%= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=true" -%>
|
|
|
|
<%= javascript_include_tag "tag/tag" -%>
|
2009-06-03 21:30:09 +02:00
|
|
|
<% end %>
|
|
|
|
|
2009-07-07 22:14:58 +02:00
|
|
|
<div id="map_canvas"></div>
|
2009-07-06 15:41:19 +02:00
|
|
|
|
2009-06-03 21:30:09 +02:00
|
|
|
<%= hidden_field_tag :all_tags, "'#{Tag.find(:all).map { |tag| tag.title }.join('\',\'')}'" %>
|
2009-06-30 22:41:27 +02:00
|
|
|
<%= hidden_field_tag :collection_id, params[:collection_id] %>
|
2009-07-06 15:41:19 +02:00
|
|
|
<%= form.hidden_field :id %>
|
|
|
|
<%= form.hidden_field :latitude %>
|
|
|
|
<%= form.hidden_field :longitude %>
|
2009-06-03 21:30:09 +02:00
|
|
|
|
2009-06-02 00:08:57 +02:00
|
|
|
<%= form.label :title, :Title, {:class => 'big'} %><br />
|
|
|
|
<%= form.text_field :title, {:class => 'big'} %><br />
|
2009-06-30 22:41:27 +02:00
|
|
|
|
2009-05-25 21:39:43 +02:00
|
|
|
<%= form.label :description %><br />
|
|
|
|
<%= form.text_area :description %><br />
|
2009-06-02 00:08:57 +02:00
|
|
|
|
|
|
|
<%= form.label :address %><br />
|
|
|
|
<%= form.text_area :address, { :rows => 3} %><br />
|
|
|
|
|
|
|
|
<%= form.label :note %><br />
|
|
|
|
<%= form.text_area :note %><br />
|
|
|
|
|
2009-06-18 15:38:37 +02:00
|
|
|
<%= form.label :tags %><br />
|
2009-07-06 15:41:19 +02:00
|
|
|
<%= form.text_field :tags, { :autocomplete => "off", :class => 'tag_list', :value => (@album.tags.map{|tag|tag.title}.join(" ") unless @album.tags.nil?) } %><br />
|
2009-06-02 00:08:57 +02:00
|
|
|
|
2009-05-22 21:04:41 +02:00
|
|
|
<br />
|
2010-04-14 05:56:13 +02:00
|
|
|
Contains: <%= @album.photos.count %> photos<br/>
|