<%=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 => 'has_applied_schools'}, :class => 'icon icon-reload' %>
<% end %>  
<% @has_apply_status.each do |apply| %> <% if apply.status == 1 || apply.status == 2%> "> <% end %> <% end %>
序号 单位名称 申请者 地区 详细地址 原名 用户 创建时间 操作
<%= apply.id %> <% unless apply.school_id.nil? %> <% school_name = School.where("id=?", apply.school_id).first %> <%= school_name.name %> <% end %> <% user = User.where("id=?", apply.user_id).first%> <% unless user.nil? %> <%=link_to user.show_name, user_path(user), :target => '_blank'%> <% end %> <%= (apply.province.nil? ? "" : apply.province) + (apply.city.nil? ? "" : apply.city) %> <%= apply.address %> <%= apply.name %> <% count = UserExtensions.where("school_id = #{apply.school_id}").count %> <%= count %> <%= format_date(apply.created_at) %> <%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'applied' },:method => :delete, :confirm => l(:text_are_you_sure) ) %>