<% #
 # This file is part of the Anotatornia suite.
 # 
 # Copyright © 2007, 2008, 2009, 2010 by Instytut Podstaw Informatyki
 # Polskiej Akademii Nauk (IPI PAN; Institute of Computer Science, Polish
 # Academy of Sciences; cf. www.ipipan.waw.pl).  All rights reserved.
 # 
 # This file may be distributed and/or modified under the terms of the
 # GNU General Public License version 3 as published by the Free Software
 # Foundation and appearing in the file COPYING included in the packaging
 # of this file.  (See http://www.gnu.org/licenses/translations.html for
 # unofficial translations.)
 # 
 # A commercial license is available from IPI PAN (contact
 # Michal.Ciesiolka.waw.pl or ipi.waw.pl for more
 # information).  Licensees holding a valid commercial license from IPI
 # PAN may use this file in accordance with that license.
 # 
 # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 # THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 # PURPOSE.
%>

<% anotator = odbierz_transze 
transze_select = anotator.transze_otwarte.collect{ |tra|
  [tra.opis_nohtml, tra.transza_auto_id] }
   -%>
<fieldset>
  <% remote_form_for :prosba_o_odebranie, @prosba, 
:url =>  {:action => :prosbe_o_odebranie_zapisz, 
                            :id => anotator } do |form| %>

  <%= form.select :transza_auto_id,
      transze_select,   {:prompt => "wyb. transzę"}, { } -%>
<br/>
   <legend>Wpisz przyczynę prośby</legend>
<%= form.text_area :przyczyna, :rows => 4, :cols => 60 %>

<%= submit_tag "zatwierdź" , :class => "submit" -%>


<%=    link_to_remote  'anuluj', 
      :url => {:action =>:prosba_anulowana,  :id => anotator },
  :update => 'odbierz_transze'
-%>

<% end #of form 
 -%>
  </fieldset>
