<%=l(:label_applied_shcools)%>

<%= render 'tab_has_applied_applied' %> <%= form_tag({}, :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入单位名称进行搜索' %> <%= submit_tag l(:button_apply ), :class => "small", :name => nil %> <%= link_to l(:button_clear), {:controller => 'admin', :action => 'applied_schools'}, :class => 'icon icon-reload' %>
<% end %>  
<% @apply_status.each do |apply| %> <% if apply.status == 0 %> "> <% unless apply.remarks.blank? %> <% end %> <% end %> <% end %>
序号 <%= link_to '单位名称', apply_shcool_sort_path(:sort=> @sort == "desc" ? 'asc' : 'desc', :order => 'name', :tip=>'unapplied') %> 申请者 地区 详细地址 用户 创建时间 操作
<%= apply.id %> <%= apply.name %> <% user = User.where("id=?", apply.user_id).first %> <% unless user.nil? %> <%=link_to user.show_name, user_path(user),:target => '_blank', :class => "application-default-link" %> <% end %> <%= (apply.province.nil? ? "" : apply.province) + (apply.city.nil? ? "" : apply.city) %> <%= apply.address %> <% count = UserExtensions.where("school_id = #{apply.school_id}").count %> <%= count %> <%= format_date(apply.created_at) %> <%= link_to( l(:label_approve), { :controller => 'admin', :action => 'approve_applied_schools', :id => apply.id }, :class => "application-default-link" ) %> <%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'unapplied' },:method => :delete, :confirm => l(:text_are_you_sure), :class => "application-default-link") %> <%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true, :class => "application-default-link" %>
<%= apply.remarks %>