<%= content_for :javascript do %> <%= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=true" -%> <%= javascript_include_tag "tag/tag" -%> <% end %>
<%= hidden_field_tag :all_tags, "'#{Tag.all.map { |tag| tag.title }.join('\',\'')}'" %> <%= hidden_field_tag :collection_id, params[:collection_id] %> <%= form.hidden_field :id %> <%= form.hidden_field :latitude %> <%= form.hidden_field :longitude %>
<%= form.label :title, t('activerecord.models.album.attributes.title'), {:class => 'control-label'} %>
<%= form.text_field :title, {:class => 'input-xlarge'} %>
<%= form.label :description, t('activerecord.models.album.attributes.description'), {:class => 'control-label'} %>
<%= form.text_area :description, {:class => 'input-xlarge', :rows => 5} %>
<%= form.label :public, t('activerecord.models.album.attributes.visible'), {:class => 'control-label'} %>
<%= form.label :address, t('activerecord.models.album.attributes.address'), {:class => 'control-label'} %>
<%= form.text_area :address, {:class => 'input-xlarge', :rows => 5} %>
<%= form.label :note, t('activerecord.models.album.attributes.note'), {:class => 'control-label'} %>
<%= form.text_area :note, {:class => 'input-xlarge', :rows => 5} %>
<%= form.label :tags, t('activerecord.models.album.attributes.tags'), {:class => 'control-label'} %>
<%= form.text_field :tags, {:class => 'input-xlarge', :autocomplete => "off", :class => 'tag_list', :value => (@album.tags.map{|tag|tag.title}.join(" ") unless @album.tags.nil?) } %>

Contains: <%= @album.photos.count %> photos