<h1>Slajdy - edytowanie pokazu </h1>

 <%= link_to 'Odtwarzanie pokazu',
             :action => 'show', :id => @slideshow %>


 <div id='slideshow-contents'>
   <p style='text-align: center;'><b>Slajdy w pokazie </b></p>
   <div id='slideshow-thumbs'>
     <%= render :partial => 'show_slides_draggable' %>
   </div>
 </div>

 <div id='slideshow-photo-picker'>
   <p style='text-align: center;'><b>Niewykorzystane fotografie</b></p>
   <div id='slideshow-photos'>
     <%= render :partial => 'unused_photo', :collection => @photos %>
   </div>
 </div>

 <div id='slideshow-attributes'>
   <p><%= link_to 'Odtwarzanie tego pokazu', :action => 'show', :id => @slideshow %></p>

<p>
   <label for="category_id">Filtruj "Niewykorzystane fotografie" dla kategorii</label><br/>
   <%= collection_select(:category, :id, @all_categories, :id, :long_name) %>
   <%= observe_field(:category_id,
                :frequency => 2.0,
                :update => 'slideshow-photos',
                :url => { :action => 'change_filter'},
                :with => 'category_id' ) %>
 </p>
   <div style='border: thin solid; padding-left: 1em;'>
     <p style='text-align: center;'><b>Atrybuty</b></p>
        <% form_for(@slideshow) do |f| %>
          <%= render :partial => 'form', :locals => { :f => f } %>
        <% end %>
   </div>
   <p>
     <b>Informacja:</b> Mysz pozwala na wygodne
     przenoszenie fotografii z jednej listy do
     drugiej. Podobnie reorganizujemy slajdy w ramach
     pokazu.
   </p>
 </div>

<%= drop_receiving_element("slideshow-contents", :url => {:action => "add_photo" }) %>
<%= drop_receiving_element("slideshow-photo-picker",:url => {:action => "remove_slide" }) %>
