diff --git a/app/controllers/school_controller.rb b/app/controllers/school_controller.rb
index 264f0ae1f..4553d6ea9 100644
--- a/app/controllers/school_controller.rb
+++ b/app/controllers/school_controller.rb
@@ -229,7 +229,7 @@ class SchoolController < ApplicationController
status = 0
end
- render :json=>{:status=>status,:id=>params[:id],:address=>name}
+ render :json=>{:status=>status,:id=>params[:id],:name=>name}
end
def edit_apply_address
diff --git a/app/views/admin/applied_schools.html.erb b/app/views/admin/applied_schools.html.erb
index 319051d78..61db6769f 100644
--- a/app/views/admin/applied_schools.html.erb
+++ b/app/views/admin/applied_schools.html.erb
@@ -54,7 +54,7 @@
<%= apply.id %>
- <%= apply.name %>
+ <%= apply.name %>
|
diff --git a/app/views/admin/has_applied_schools.html.erb b/app/views/admin/has_applied_schools.html.erb
index 2f6fc1f23..cbb0e70e5 100644
--- a/app/views/admin/has_applied_schools.html.erb
+++ b/app/views/admin/has_applied_schools.html.erb
@@ -53,10 +53,11 @@
|
<%= apply.id %>
|
-
+ |
<% unless apply.school_id.nil? %>
<% school_name = School.where("id=?", apply.school_id).first %>
- <%= school_name.name %>
+ <%= school_name %>
+
<% end %>
|
@@ -66,13 +67,51 @@
<% end %>
|
- <% unless apply.school_id.nil? %>
- <% school_province = School.where("id=?", apply.school_id).first %>
- <%= school_province.province %>
- <% end %>
+
+ <%= (apply.province.nil? ? "" : apply.province) + (apply.city.nil? ? "" : apply.city) %>
+
+
+
|
- <%= apply.address %>
+ <%= apply.address %>
+
|
<%= apply.name %>
@@ -84,6 +123,9 @@
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'applied' },:method => :delete, :confirm => l(:text_are_you_sure) ) %>
|
+
<% unless apply.remarks.blank? %>
|