<%=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_shcools'}, :class => 'icon icon-reload' %>
<% end %>  
<% @apply_status.each do |apply| %> <% if apply.status == 0 %> "> <% unless apply.remarks.empty? %> <% end %> <% end %> <% end %>
序号 单位名称 地区 详细地址 用户 创建时间 操作
<%= apply.id %> <%= apply.name %> <%= apply.province + 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 => 'icon-del') %> <%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id },:method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon-del') %> <%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true %>
<%= apply.remarks %>