<% content_for :javascript do %> <% end %> <%= hidden_field_tag :all_tags, "'#{Tag.find(:all).map { |tag| tag.title }.join('\',\'')}'" %> <%= hidden_field_tag :collection_id, params[:collection_id] %> <%= form.label :title, :Title, {:class => 'big'} %>
<%= form.text_field :title, {:class => 'big'} %>
<%= form.label :description %>
<%= form.text_area :description %>
<%= form.label :address %>
<%= form.text_area :address, { :rows => 3} %>
<%= form.label :note %>
<%= form.text_area :note %>
<%= form.label :tags %>
<%= form.text_field :tags, { :autocomplete => "off", :class => 'tag_list', :value => @album.tags.map{|tag|tag.title}.join(" ") } %>

<% if @album.path? %> Location on disk: <%= APP_CONFIG[:photos_path] + @album.path %>
Contains: <%= @album.photos.count %> photos
<% end %>