">
<%= 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) ) %>
|
<% end %>
<% end %>