<%= notice %>

<%=I18n.t('admin.providers.requests')%>


<%= render 'adm_agency/providers_form', {form_ctrlr_name: 'rtp'} unless session[:provs].count <= 1%>

<% nb_row = 2+@rtp.count %> <% if current_user.is_superadmin? %> <% end %> <% prov = [] %> <% prov = @providers.collect{|p| p.id} %> <% @rtp.each do |r| %> <% if current_user.is_superadmin? %> <% end %> <% end %>
<%= I18n.t('title') %> <%= I18n.t('user') %> <%= I18n.t('date_label') %> <%= I18n.t('text') %><%= I18n.t('selected_providers') %><%= I18n.t('status') %> <%= I18n.t('send_photos')%>
<%= @rtp_user[r].title.name %> <%= "#{@rtp_user[r].first_name} #{@rtp_user[r].last_name} / #{@rtp_user[r].email}" %> <%= I18n.l r.created_at %> <%= r.text %><%= select_tag :prov_list, options_for_select(@rtp_provs[r]), style: "font-size: 12px;" %> <% imgs = Reqphoto.where(:request_to_provider_id => r.id).count %> <% if imgs == 0 %> <%= I18n.t('waited_rtp') %> <% else %> <%= "#{I18n.t('answered_rtp')} - #{imgs} #{I18n.t('pictures_sent')})" %> <% end %> <%= link_to "".html_safe, edit_request_to_provider_path(r.id) %>