parent
8c81346ffb
commit
a934908439
|
@ -58,7 +58,7 @@ class SchoolController < ApplicationController
|
||||||
|
|
||||||
options_s = ""
|
options_s = ""
|
||||||
school.each do |s|
|
school.each do |s|
|
||||||
options_s << "<li style = 'width: 33%; float: left'><a id=#{s.id} onclick='test(this.id, this.text)'>#{s.name}</a></li>"
|
options_s << "<li style = 'width: 33%; float: left'><a style='cursor: pointer;' id=#{s.id} onclick='test(this.id, this.text)'>#{s.name}</a></li>"
|
||||||
end
|
end
|
||||||
|
|
||||||
res = Hash.new
|
res = Hash.new
|
||||||
|
@ -78,7 +78,7 @@ class SchoolController < ApplicationController
|
||||||
|
|
||||||
@school.each do |s|
|
@school.each do |s|
|
||||||
#options << "<option value=#{s.id}>#{s.name}</option>"
|
#options << "<option value=#{s.id}>#{s.name}</option>"
|
||||||
options << "<li style = 'width: 33%; float: left'><a id=#{s.id} onclick='test(this.id, this.text)'>#{s.name}</a></li>"
|
options << "<li style = 'width: 33%; float: left'><a style='cursor: pointer;' id=#{s.id} onclick='test(this.id, this.text)'>#{s.name}</a></li>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class SchoolController < ApplicationController
|
||||||
|
|
||||||
options = ""
|
options = ""
|
||||||
@school.each do |s|
|
@school.each do |s|
|
||||||
options << "<li style = 'width: 33%; float: left'><a id=#{s.id} onclick='test(this.id)'>#{s.name}</a></li>"
|
options << "<li style = 'width: 33%; float: left'><a style='cursor: pointer;' id=#{s.id} onclick='test(this.id)'>#{s.name}</a></li>"
|
||||||
end
|
end
|
||||||
|
|
||||||
render :text => options
|
render :text => options
|
||||||
|
@ -105,7 +105,7 @@ class SchoolController < ApplicationController
|
||||||
|
|
||||||
options = ""
|
options = ""
|
||||||
@school.each do |s|
|
@school.each do |s|
|
||||||
options << "<li style = 'width: 33%; float: left'> <a id=#{s.id} onclick='test(this.id)'>#{s.name}</a></li>"
|
options << "<li style = 'width: 33%; float: left'> <a style='cursor: pointer;' id=#{s.id} onclick='test(this.id)'>#{s.name}</a></li>"
|
||||||
end
|
end
|
||||||
|
|
||||||
options = "<div class='flash error' id='flash_error'>#{l(:label_school_not_fount)}</div>" if options.blank?
|
options = "<div class='flash error' id='flash_error'>#{l(:label_school_not_fount)}</div>" if options.blank?
|
||||||
|
|
Loading…
Reference in New Issue