diff --git a/Gemfile b/Gemfile
index eef93c371..bb94100a5 100644
--- a/Gemfile
+++ b/Gemfile
@@ -9,12 +9,11 @@ unless RUBY_PLATFORM =~ /w32/
gem "rmagick", "= 2.13.1" ## centos yum install ImageMagick-devel
end
gem 'certified'
+ gem 'net-ssh', '2.9.1'
+ gem 'jenkins_api_client'
+ gem 'nokogiri'
end
-gem 'net-ssh', '2.9.1'
-gem 'jenkins_api_client'
-gem 'nokogiri'
-
gem 'wechat',path: 'lib/wechat'
gem 'grack', path:'lib/grack'
gem 'gitlab', path: 'lib/gitlab-cli'
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 33d988e35..62b076754 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -239,14 +239,22 @@ class AccountController < ApplicationController
end
def resendmail
+ status = 1
user = User.find(params[:user]) if params[:user]
token = Token.new(:user => user, :action => "register")
if token.save
- Mailer.run.register(token)
-
+ # Mailer.run.register(token)
+ Mailer.register(token).deliver
else
yield if block_given?
+ status = 0
end
+ render :json => status
+ end
+
+ def email_activation
+
+
end
private
@@ -264,6 +272,7 @@ class AccountController < ApplicationController
if user.nil?
invalid_credentials
elsif user.status == 2
+ @user = user
invalid_credentials_new
elsif user.new_record?
onthefly_creation_failed(user, {:login => user.login, :auth_source_id => user.auth_source_id })
@@ -375,8 +384,9 @@ class AccountController < ApplicationController
def invalid_credentials_new
logger.warn "Failed login for '#{params[:username]}' from #{request.remote_ip} at #{Time.now.utc}"
- flash[:error] = l(:notice_account_invalid_creditentials_new)
- render signin_path(:login=>true)
+ # flash[:error] = l(:notice_account_invalid_creditentials_new)
+ # render signin_path(:login=>true)
+ render :action => 'email_activation'
end
# Register a user for email activation.
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index 0883b3799..32c605516 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -127,12 +127,14 @@ class MyController < ApplicationController
end
@user.safe_attributes = params[:user]
+ @user.lastname = params[:lastname]
+ @user.firstname = ""
@user.pref.attributes = params[:pref]
@user.pref[:no_self_notified] = (params[:no_self_notified] == '1')
#@user.login = params[:login]
unless @user.user_extensions.nil?
if @user.user_extensions.identity == 2
- @user.firstname = params[:enterprise_name]
+ # @user.firstname = params[:enterprise_name]
end
end
@@ -144,7 +146,7 @@ class MyController < ApplicationController
# end
@se.school_id = params[:occupation]
- @se.gender = params[:gender]
+ @se.gender = params[:sex]
@se.location = params[:province] if params[:province]
@se.location_city = params[:city] if params[:city]
@se.identity = params[:identity].to_i if params[:identity]
diff --git a/app/controllers/school_controller.rb b/app/controllers/school_controller.rb
index e0aff6254..44f4378fe 100644
--- a/app/controllers/school_controller.rb
+++ b/app/controllers/school_controller.rb
@@ -150,4 +150,55 @@ class SchoolController < ApplicationController
format.js
end
end
+
+ #申请高校(单位) name:名称 province:省 city:市 address:地址 remarks:备注
+ def apply_add_school
+
+ data = {result:0,name:params[:name],school_id:0}
+ #0 成功 1参数错误 2名称已存在
+ data[:result] = 0
+
+ #检验参数
+ if params[:name] == "" || params[:province] == "" || params[:city] == "" || params[:address] == ""
+ data[:result] = 1
+ else
+ school_id = School.find_by_sql("select id from schools where name='#{params[:name]}'").first
+ if school_id
+ data[:result] = 2
+ else
+ school = School.new
+ school.name = params[:name].strip
+ school.pinyin = Pinyin.t(params[:name].strip, splitter: '')
+ school.save
+
+ #status 0未处理 1通过 2拒绝
+ applyschool = ApplyAddSchools.new
+ applyschool.school_id = school.id
+ applyschool.name = school.name
+ applyschool.province = params[:province]
+ applyschool.city = params[:city]
+ applyschool.address = params[:address]
+ applyschool.remarks = params[:remarks]
+ applyschool.save
+
+ data[:school_id] = school.id
+ end
+ end
+ render :json =>data
+ end
+
+ def search_repeat_schoolname
+ status = 0
+ name = params[:name]
+
+ if name
+ school_id = School.find_by_sql("select id from schools where name='#{name}'").first
+
+ if school_id
+ status = 1
+ end
+ end
+
+ render :json =>status
+ end
end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index b7972ff6f..2995d880d 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1248,6 +1248,12 @@ class UsersController < ApplicationController
render :layout=>'new_base_user'
end
+ #给某人留言
+ def feedBackTo
+
+
+ end
+
def user_comments
end
diff --git a/app/controllers/words_controller.rb b/app/controllers/words_controller.rb
index 668269a26..93ba9e1ce 100644
--- a/app/controllers/words_controller.rb
+++ b/app/controllers/words_controller.rb
@@ -337,6 +337,27 @@ class WordsController < ApplicationController
UserExtensions.introduction(user, message)
redirect_to user_url(user.id)
end
+
+ #邮箱激活问题留言 留言成功给出提示框
+ def leave_email_activation_message
+ status = 1 #成功
+ me = User.find(params[:user])
+ if me
+ #课程使者id=1
+ @user = User.find(1)
+ if params[:text].size>0 && @user
+ # @user.add_jour(me, params[:text])
+ #私信
+ message = "【未收到激活邮件的用户反馈,用户邮箱:"+me.mail+"】
"+params[:text]
+ @user.journals_for_messages << JournalsForMessage.new(:user_id => me.id, :notes => message, :reply_id => 0, :status => true, :is_readed => false, :private => 1)
+ else
+ status = 0
+ end
+ render :json => status
+ else
+ render_403
+ end
+ end
private
diff --git a/app/models/apply_add_schools.rb b/app/models/apply_add_schools.rb
new file mode 100644
index 000000000..2082c0012
--- /dev/null
+++ b/app/models/apply_add_schools.rb
@@ -0,0 +1,3 @@
+class ApplyAddSchools < ActiveRecord::Base
+ attr_accessible :address, :city, :name, :province, :remarks, :school_id, :status
+end
diff --git a/app/views/account/email_activation.html.erb b/app/views/account/email_activation.html.erb
new file mode 100644
index 000000000..d625e7fc9
--- /dev/null
+++ b/app/views/account/email_activation.html.erb
@@ -0,0 +1,52 @@
+
+
+
您的账号尚未激活,请先进入您的注册邮箱,激活您的账号。
+
+ <%#= link_to l(:label_mail_resend), { :controller => 'account', :action => 'resendmail',:user => @user}, :class=>"email_verify_btn mt30 ml30", :remote => true, :method => 'get' %>
+
+ 如果您尚未收到激活邮件,请按照以下步骤操作:
+ - 检查邮箱的“订阅邮件”、“垃圾邮件”,可能会发现激活邮件。
+ - 如果激活邮件已无效,请点击重新发送激活邮件按钮。
+ - 如果您无法收到激活邮件,请您直接给我们管理员留言:
+
+
+
+
+
diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb
deleted file mode 100644
index 0bebfdf5f..000000000
--- a/app/views/account/register.html.erb
+++ /dev/null
@@ -1,127 +0,0 @@
-<% @nav_dispaly_home_path_label = 1
- @nav_dispaly_main_course_label = 1
- @nav_dispaly_main_project_label = 1
- @nav_dispaly_main_contest_label = 1 %>
-<% @nav_dispaly_forum_label = 1%>
-
-
-
-
-
-
-<%= l(:label_register) %> <%= link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>
-
-<%= labelled_form_for @user, :url => register_path do |f| %>
- <%= error_messages_for 'user' %>
-
-
- <% if @user.auth_source_id.nil? %>
-
<%= f.text_field :login, :size => 25, :required => true %>
- <%= l(:label_max_number) %>
-
-
<%= f.password_field :password, :size => 25, :required => true %>
- <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>
-
-
<%= f.password_field :password_confirmation, :size => 25, :required => true %>
- <% end %>
-
-
- <%= f.text_field :mail,:size => 25, :required => true %>
-
-
-
-
- <%= "#{l(:label_mail_attention)} " %>
- <%= "#{l(:label_mail_attention1)} " %>
-
-
-
-
-
-
-
-
-
-
-
- <%= submit_tag l(:button_submit) %> |
-
-
-
-<% end %>
-<% if Setting.openid? %>
- <%= f.text_field :identity_url %>
-<% end %>
-<% @user.custom_field_values.select { |v| v.editable? || v.required? }.each do |value| %>
- <%= custom_field_tag_with_label :user, value %>
-<% end %>
-
-<% password_min_length = Setting.password_min_length %>
-
\ No newline at end of file
diff --git a/app/views/blog_comments/show.html.erb b/app/views/blog_comments/show.html.erb
index 7d8aaed86..b1cd86484 100644
--- a/app/views/blog_comments/show.html.erb
+++ b/app/views/blog_comments/show.html.erb
@@ -91,9 +91,10 @@
<%= format_time( @article.created_on)%>
-
- <%= @article.content.html_safe%>
-
+
+
+
+ <%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>@article.id, :content=>@article.content} %>
<%#= link_to_attachments_course @topic, :author => false %>
@@ -192,12 +193,12 @@
diff --git a/app/views/layouts/_new_feedback.html.erb b/app/views/layouts/_new_feedback.html.erb
index ffec82bce..e2e935f57 100644
--- a/app/views/layouts/_new_feedback.html.erb
+++ b/app/views/layouts/_new_feedback.html.erb
@@ -16,7 +16,7 @@
<%= f.text_area :subject, :id=>"subject", :class => "opnionText", :placeholder => l(:label_feedback_tips) %>
<%= f.hidden_field :content,:id => 'hidden', :required => true , :value => l(:label_feedback_value) %>
-
+
<%= l(:label_submit)%>
<% end %>
@@ -25,7 +25,9 @@
<%#= l(:label_technical_support) %>
- 请加入师姐师兄答疑群
QQ群号:173184401
+
+
+
diff --git a/app/views/mailer/register.html.erb b/app/views/mailer/register.html.erb
index 282deca90..5b4e8262b 100644
--- a/app/views/mailer/register.html.erb
+++ b/app/views/mailer/register.html.erb
@@ -1,2 +1,6 @@
<%= l(:mail_body_register) %>
<%= link_to h(@url), @url %>
+如果点击链接无效请复制该链接到浏览器中打开
+
+感谢您的使用!
+Trustie团队
diff --git a/app/views/my/_apply_add_school.html.erb b/app/views/my/_apply_add_school.html.erb
new file mode 100644
index 000000000..1449fa1f1
--- /dev/null
+++ b/app/views/my/_apply_add_school.html.erb
@@ -0,0 +1,337 @@
+添加新的高校(单位)
+
+
+
+
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 9cca5da5c..589541c39 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -15,14 +15,13 @@
<%= error_messages_for 'user',@user.user_extensions %>
<% end %>
- - 登录名 : *
- - 邮箱 : *
- - 身份 : *
- - 姓(Last Name) : *
- - 名(First Name) : *
+ - * 登录名 :
+ - * 邮箱 :
+ - * 职业 :
+ - * 姓名 :
- 组织名 : *
- - 性别 :
- - 工作单位 :
+ - * 性别 :
+ - * 单位名称 :
- 地区 :
- 邮件通知 :
@@ -65,34 +64,50 @@
- - <%= f.text_field :lastname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
-
- <%= f.text_field :firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
-
- <%= text_field_tag :enterprise_name,@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
+
- <%= text_field_tag :lastname,@user.lastname+@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
+
-
-
+ <% if User.current.user_extensions && User.current.user_extensions.gender && User.current.user_extensions.gender == 1 %>
+
+ <% else %>
+
+ <% end %>
+
-
<% if User.current.user_extensions.nil? %>
-
-
- 平台找到了0个包含"国防"的高校
-
+
+
+
+
+ 平台找到了0个包含"国防"的高校
+
+
<% elsif User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
-
-
- 平台找到了0个包含"国防"的高校
-
+
+
+
+
+ 平台找到了0个包含"国防"的高校
+
+
<% elsif User.current.user_extensions.school.nil? %>
-
-
- 平台找到了0个包含"国防"的高校
-
+
+
+
+
+ 平台找到了0个包含"国防"的高校
+
+
<% else %>
-
-
- 平台找到了0个包含"国防"的高校
-
+
+
+
+
+ 平台找到了0个包含"国防"的高校
+
+
<% end %>
@@ -140,13 +155,13 @@
-
<%= select_tag( 'user[mail_notification]', options_for_select( user_mail_notification_options(@user), @user.mail_notification) ) %>
-
+
- <%= f.select :language, :Chinese => :zh, :English => :en %>
-
- 确认
+ 确定
@@ -429,6 +444,7 @@
$("*[nh_required='1']",$(this)).attr("required",true);
$(this).show()
});
+ $("#identity_hint").hide();
}
function init_identity_and_title(pField, identity, cField, title, language) {
for (var i = 0; i < pField.options.length; i++) {
@@ -533,6 +549,14 @@
$("input[name='occupation']").val(data);
$("#search_school_result_list").hide();
$("#hint").hide();
+ $("#errortip").hide();
+
+ }
+
+ function apply_add_school(){
+ var htmlvalue = "<%= escape_javascript( render :partial => 'my/apply_add_school' )%>";
+ pop_up_box(htmlvalue,580,20,48);
+
}
function add_school(name){
$.ajax({
@@ -619,16 +643,19 @@
$("#search_school_result_list").show();
if($(e.target).val().trim() != '') {
str = e.target.value.length > 8 ? e.target.value.substr(0, 6)+"..." : e.target.value;
- $("#hint").html('找到了' + count + '个包含"' + str + '"的高校');
+ $("#hint").html('找到了' + count + '个包含"' + str + '"的高校(单位)');
$("#hint").show();
+ $("#errortip").hide();
}else{
$("#hint").hide();
+ $("#errortip").hide();
}
}else{
$("#search_school_result_list").html('');
str = e.target.value.length > 4 ? e.target.value.substr(0, 4)+"..." : e.target.value;
- $("#hint").html('没有找到包含"'+str+'"的高校,创建高校');
+ $("#hint").html('您输入的名称尚不存在,申请添加');
$("#hint").show();
+ $("#errortip").show();
}
}
});
@@ -638,6 +665,7 @@
{
$("#search_school_result_list").hide();
$("#hint").hide();
+ $("#errortip").hide();
}
});
$("input[name='province']").on('focus', function (e) {
@@ -665,16 +693,19 @@
$("#search_school_result_list").show();
if($(e.target).val().trim() != '') {
str = e.target.value.length > 8 ? e.target.value.substr(0, 6)+"..." : e.target.value;
- $("#hint").html('找到了' + count + '个包含"' + str + '"的高校');
+ $("#hint").html('找到了' + count + '个包含"' + str + '"的高校(单位)');
$("#hint").show();
+ $("#errortip").hide();
}else{
$("#hint").hide();
+ $("#errortip").hide();
}
}else{
$("#search_school_result_list").html('');
str = e.target.value.length > 4 ? e.target.value.substr(0, 4)+"..." : e.target.value;
- $("#hint").html('没有找到包含"'+str+'"的高校,创建高校');
+ $("#hint").html('您输入的名称尚不存在,申请添加');
$("#hint").show();
+ $("#errortip").show();
}
}
});
@@ -702,19 +733,41 @@
<% if( !@act.nil? && @act == 'password') %>
$("#users_tb_2").click();
<% end %>
- $('#my_account_form_link').click(function(e){
+
+ $('#my_account_form_link').on("click",(function(e){
+ //$('#my_account_form_link').click(function(e){
if($("#userIdentity").val() == -1 ) {
$("#identity_hint").html('请选择身份').show();
e.stopImmediatePropagation();
return;
}
if( $("input[name='province']").val().trim() != '' && $("input[name='occupation']").val().trim() == ''){ //学校名字和id不对的话
- $("#hint").html('学校必须是从下拉列表中选择的,不能手动修改').show();
+ $("#hint").html('单位名称必须是从下拉列表中选择的,不能手动修改').show();
+ e.stopImmediatePropagation();
+ return;
+ }
+
+ //姓名不能为空
+ if( $("#lastname").val() == '' ){
+ $("#lastname").focus();
+ e.stopImmediatePropagation();
+ return;
+ }
+
+ if( $("input[name='province']").val().trim() == '' ){ //学校名字必须填写
+ $("#hint").html('高校(单位)名称不能为空').show();
e.stopImmediatePropagation();
return;
}
+
+ if($("#no").is(":visible") == true && $("#no").val() == ""){
+ $("#no").focus();
+ e.stopImmediatePropagation();
+ return;
+ }
+
$('#my_account_form_btn').click();
- });
+ }));
$('#my_password_form_link').click(function(){
$('#my_password_form_btn').click();
});
diff --git a/config/locales/my/zh.yml b/config/locales/my/zh.yml
index 25a949df4..39c7c3167 100644
--- a/config/locales/my/zh.yml
+++ b/config/locales/my/zh.yml
@@ -28,7 +28,7 @@ zh:
label_account_identity_choose: --请选择身份--
label_account_identity_teacher: 教师
label_account_identity_student: 学生
- label_account_identity_developer: 开发者
+ label_account_identity_developer: 从业者
label_account_identity_enterprise: 组织
label_account_identity_studentID: 请输入学号
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 3dbd2e8ef..c80a39891 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -1665,7 +1665,7 @@ zh:
#add by men
label_account_identity_teacher: 教师
label_account_identity_student: 学生
- label_account_identity_developer: 开发者
+ label_account_identity_developer: 从业者
label_account_identity_enterprise: 组织
label_teaching_course: 我执教的课程
diff --git a/config/routes.rb b/config/routes.rb
index 5dc509abd..a06cf35d1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -213,7 +213,8 @@ RedmineApp::Application.routes.draw do
resources :school, :except => [:show] do
collection do
-
+ get 'apply_add_school'
+ get 'search_repeat_schoolname'
end
member do
@@ -485,15 +486,18 @@ RedmineApp::Application.routes.draw do
match 'logout', :to => 'account#logout', :as => 'signout', :via => [:get, :post]
match 'agreement',:to => 'account#agreement',:as => 'agreement',:via=>[:get]
match 'about_us',:to=>'account#about_us',:as=>'about_us',:via=>[:get]
- match 'account/register', :via => [:get, :post], :as => 'register'
+ match 'account/register',:to=>'account#register', :via => [:get, :post], :as => 'register'
match 'account/lost_password', :via => [:get, :post], :as => 'lost_password'
match 'account/activate', :via => :get
match 'account/valid_ajax', :via => :get
match 'account/email_valid', :to => 'account#email_valid', :via => :get
- match 'account/resendmail', :to => 'account#resendmail', :via=> :get
+ match 'account/resendmail', :to => 'account#resendmail', :via=> :get, :as => 'resendmail'
match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
+ #激活邮箱反馈问题
+ match 'users/:id/leave_email_activation_message', :to => 'words#leave_email_activation_message', :via => :get, :as => "leave_email_activation_message"
+
# boards
match 'boards/:board_id/topics/new', :to => 'messages#new', :via => [:get, :post], :as => 'new_board_message'
match 'boards/:id/join_to_org_subfields', :to => 'boards#join_to_org_subfields'
diff --git a/db/migrate/20160629030320_add_school_type_to_schools.rb b/db/migrate/20160629030320_add_school_type_to_schools.rb
new file mode 100644
index 000000000..ad23ae555
--- /dev/null
+++ b/db/migrate/20160629030320_add_school_type_to_schools.rb
@@ -0,0 +1,5 @@
+class AddSchoolTypeToSchools < ActiveRecord::Migration
+ def change
+ add_column :schools, :school_type, :integer, :default => false
+ end
+end
diff --git a/db/migrate/20160629081520_create_apply_add_schools.rb b/db/migrate/20160629081520_create_apply_add_schools.rb
new file mode 100644
index 000000000..3d47f55a1
--- /dev/null
+++ b/db/migrate/20160629081520_create_apply_add_schools.rb
@@ -0,0 +1,15 @@
+class CreateApplyAddSchools < ActiveRecord::Migration
+ def change
+ create_table :apply_add_schools do |t|
+ t.string :name
+ t.string :province
+ t.string :city
+ t.string :address
+ t.string :remarks
+ t.integer :school_id
+ t.integer :status, :default => false
+
+ t.timestamps
+ end
+ end
+end
diff --git a/public/images/icons_ziliao.png b/public/images/icons_ziliao.png
new file mode 100644
index 000000000..dc72e7361
Binary files /dev/null and b/public/images/icons_ziliao.png differ
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index d0a5e7ab3..a94e61d1d 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -152,6 +152,7 @@ a.postTypeGrey:hover {color:#269ac9;}
.homepagePostIntro ul li{list-style-type: disc;margin-left: 40px;}
.homepagePostIntro td,.homepagePostIntro tr {border: 1px solid; border-color: inherit;}
.homepagePostIntro a{color: #136ec2;}
+.homepagePostIntro p{line-height: 1;}
.homepagePostDeadline {font-size:12px; color:#888888; float:left; margin-top: 2px;}
.homepagePostDate {font-size:12px; color:#888888;margin-bottom: 5px;}
.homepagePostReply {width:710px; margin:0px auto; background-color:#f1f1f1; margin-top:10px;}
@@ -1426,4 +1427,4 @@ a.pages-big{ width:50px;}
.H60 {height:60px !important;}
.W420 {width:420px;}
.W300 {width:300px !important;}
-.W600{ width:600px;}
+.W600{ width:600px;}
diff --git a/public/stylesheets/header.css b/public/stylesheets/header.css
index 767d76cb2..5700d0b00 100644
--- a/public/stylesheets/header.css
+++ b/public/stylesheets/header.css
@@ -117,3 +117,179 @@ a.f_grey:hover {color:#000000 !important;}
#loginInButton {height:54px; padding-left:10px; padding-right:10px; text-align:center; line-height:54px; vertical-align:middle; color:#ffffff; font-size:16px;}
#loginSignButton:hover {background-color:#297fb8;}
#loginInButton:hover {background-color:#297fb8;}
+
+/* 邮箱验证 */
+.email_verify body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{ margin:0; padding:0;}
+.mt30{ margin-top:30px;}
+.ml30{ margin-left:30px;}
+.new_content{
+ width:1000px;
+ margin:10px auto;
+ padding:30px 0;
+ background-color:#fff;
+}
+.email_verify{
+ width:720px;
+ margin:0px auto;
+}
+.email_verify_prompt{
+ border:2px solid #dd0000;
+ background:#ffe3e3 url(../images/icons_prompt.png) 25px 10px no-repeat;;
+ height:35px;
+ line-height:35px;
+ padding-left:45px;
+ color:#8b0000;
+ font-size:14px;
+}
+.email_verify_btn{
+ border-style:none;
+ height:35px;
+ padding:0 15px;
+ line-height:35px;
+ color:#fff;
+ background:#3a95d7;
+ text-align:center;
+ -webkit-border-radius:5px;
+ -moz-border-radius:5px;
+ -o-border-radius:5px;
+ border-radius:5px;
+ font-size:14px;
+}
+.email_verify_btn:hover{
+ background:#017bd3;
+}
+.email_sub_btn{
+ border-style:none;
+ height:30px;
+ padding:0 25px;
+ line-height:30px;
+ color:#fff;
+ background:#3a95d7;
+ text-align:center;
+ -webkit-border-radius:5px;
+ -moz-border-radius:5px;
+ -o-border-radius:5px;
+ border-radius:5px;
+ font-size:14px;
+}
+.email_sub_btn:hover{
+ background:#017bd3;
+}
+.email_prompt_p{
+ font-size:14px;
+ color:#000;
+ margin-bottom:10px;
+}
+.email_prompt_txt{ width:480px;}
+.email_prompt_txt li{
+ margin-left:15px;
+ list-style-type: disc;
+ color:#777;
+ line-height:1.9;
+ font-size:14px;
+}
+.email_prompt_mes{
+ border:1px solid #ccc;
+ -webkit-border-radius:5px;
+ -moz-border-radius:5px;
+ -o-border-radius:5px;
+ border-radius:5px;
+ width:468px;
+ height:60px;
+ background:#fff;
+ padding:5px;
+ margin-bottom: 5px;
+}
+.email_tanbox{
+ border:2px solid #3a95d7;
+ background:#fff;
+ width:480px;
+
+}
+.email_tancon{
+ width:420px;
+ margin:0 auto;
+ text-align:center;
+ padding:20px 30px;
+ background:#fff;
+}
+.email_tan_title{
+ font-size:18px;
+ color:#3a95d7;
+ font-weight:normal;
+ margin-bottom:5px;
+}
+.email_tan_p{
+ font-size:14px;
+ color:#4c4c4c;
+
+}
+.email_verify_p{
+ font-size:14px;
+ color:#3a95d7;
+}
+
+/***** Ajax indicator ******/
+/*-------resendmail---------*/
+#ajax-indicator {
+ position: absolute; /* fixed not supported by IE */
+ background-color:#eee;
+ border: 1px solid #bbb;
+ top:35%;
+ left:40%;
+ width:20%;
+ font-weight:bold;
+ text-align:center;
+ padding:0.6em;
+ z-index:100000;
+ opacity: 0.5;
+}
+
+html>body #ajax-indicator { position: fixed; }
+
+#ajax-indicator span {
+ background-position: 0% 40%;
+ background-repeat: no-repeat;
+ background-image: url(../images/loading.gif);
+ padding-left: 26px;
+ vertical-align: bottom;
+}
+
+div.modal {
+ border-radius: 5px;
+ background: #fff;
+ z-index: 50;
+ padding: 4px;
+}
+.ui-widget-content {
+ border: 1px solid #ddd;
+ color: #333;
+}
+.ui-widget {
+ font-family: Verdana, sans-serif;
+ font-size: 1.1em;
+}
+.ui-dialog .ui-dialog-content {
+ position: relative;
+ border: 0;
+ padding: .5em 1em;
+ background: none;
+ overflow: auto;
+ zoom: 1;
+}
+.ui-widget-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+.ui-widget-overlay {
+ background: #666 url(http://forge.trustie.net/stylesheets/jquery/images/xui-bg_diagonals-thick_20_666666_40x40.png.pagespeed.ic.9mfuw_R0z1.png) 50% 50% repeat;
+ opacity: .5;
+ filter: Alpha(Opacity=50);
+}
+.resourceUploadPopup {width:400px; height:auto; border:3px solid #269ac9 !important; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-200px; z-index:1000;}
+a.Blue-btn{ display:block; margin-right:15px;width:65px; height:22px; background-color:#ffffff; line-height:24px; vertical-align:middle; text-align:center; border:1px solid #3598db; color:#3598db; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}
+a:hover.Blue-btn{ background:#3598db; color:#fff;}
+/***** end Ajax indicator ******/
\ No newline at end of file
diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css
index 7fad9854f..a65edc490 100644
--- a/public/stylesheets/new_user.css
+++ b/public/stylesheets/new_user.css
@@ -683,6 +683,7 @@ a.postTypeGrey:hover {color:#269ac9;}
.homepagePostIntro ul li{list-style-type: disc;margin-left: 40px;}
.homepagePostIntro td,.homepagePostIntro tr {border: 1px solid; border-color: inherit;}
.homepagePostIntro a{color: #136ec2;}
+.homepagePostIntro p{line-height: 1;}
.homepagePostReplyBanner {width:718px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888; position: relative;}
.borderBottomNone {border-bottom:none !important;}
.homepagePostReplyBanner {width:718px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;}
@@ -1802,4 +1803,99 @@ input.new_loggin_input{
.H60 {height:60px !important;}
.W420 {width:420px;}
.W300 {width:300px !important;}
-.W600{ width:600px;}
+.W600{ width:600px;}
+
+/* 个人资料修改弹框 */
+.winbox{
+ background-color: #fff;
+ padding: 20px;
+ width:480px;
+ -webkit-border-radius:5px;
+ -moz-border-radius:5px;
+ -o-border-radius:5px;
+ border-radius:5px;
+ border:none;
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%,-50%);
+}
+.winbox_h2{
+ font-size: 14px;
+ font-weight: normal;
+ color: #333;
+ border-bottom: 1px solid #ccc;
+ height: 28px;
+}
+.winbox_edit_new{
+ /*width: 425px;*/
+ margin: 28px 0;
+}
+.winbox_edit_new li{
+ height: 45px;
+ line-height: 30px;
+ font-size: 14px;
+}
+.winbox_edit_new label{
+ width: 80px;
+ text-align: right;
+ display: block;
+}
+.winbox_input{
+ width: 330px;
+ height: 28px;
+ border: 1px solid #ccc;
+ padding: 0 5px;
+ color: #888;
+}
+.winbox_select{
+ height: 28px;
+ border: 1px solid #ccc;
+ color: #888;
+}
+.winbox_textarea{
+ width: 330px;
+ height: 50px;
+ border: 1px solid #ccc;
+ padding: 5px;
+ color: #888;
+}
+.winbox_btn_blue{
+ padding: 5px 25px;
+ color: #fff;
+ text-align: center;
+ background-color: #3b94d6;
+ border: none;
+}
+.winbox_btn_blue:hover{
+ background-color: #2e83c2;
+}
+.icons_warning{
+ display: block;
+ width:20px;
+ height:20px;
+ background:url(../images/icons_ziliao.png) 0 2px no-repeat;
+}
+.icons_right{
+ display: block;
+ width:20px;
+ height:20px;
+ background:url(../images/icons_ziliao.png) 0 -25px no-repeat;
+}
+.icons_error{
+ display: block;
+ width:20px;
+ height:20px;
+ background:url(../images/icons_ziliao.png) 0 -52px no-repeat;
+}
+a.winbox_btn_close{
+ color: #3b94d6;
+ font-size: 18px;
+ font-weight: bold;
+}
+.winbox_p{
+ font-size: 14px;
+ text-align: center;
+
+
+}
\ No newline at end of file
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index bde560613..354c0f1ac 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -969,6 +969,7 @@ a:hover.Reply_pic{border:1px solid #64bdd9;}
color: #484848;
overflow: hidden;
}
+.homepagePostIntro p{line-height: 1;}
.homepagePostReply {
width: 710px;
margin: 10px auto 0px;
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index 80340f77f..7cfb7f9e0 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -633,6 +633,7 @@ a.postTypeGrey:hover {color:#269ac9;}
.homepagePostIntro ul li{list-style-type: disc;margin-left: 40px;}
.homepagePostIntro td,.homepagePostIntro tr {border: 1px solid; border-color: inherit;}
.homepagePostIntro a{color: #136ec2;}
+.homepagePostIntro p{line-height: 1;}
.homepagePostDeadline {font-size:12px; color:#888888; float:left; margin-top: 2px;}
.homepagePostDate {font-size:12px; color:#888888;margin-bottom: 5px;}
.homepagePostReplyBanner {width:708px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888; position: relative;}
diff --git a/public/stylesheets/users.css b/public/stylesheets/users.css
index eaefb8d1b..ad6fefad9 100644
--- a/public/stylesheets/users.css
+++ b/public/stylesheets/users.css
@@ -86,7 +86,7 @@ a.select_btn_select{ background:#64bddb; color:#fff;}
.users_ctt{ font-size:14px; color:#666; margin-top:10px;}
.setting_left{ width:115px; text-align:right; float:left;}
.setting_left li{ height:28px;line-height:28px;}
-.setting_right{width:500px; text-align:left; float:left; margin-left:8px;}
+.setting_right{width:600px; text-align:left; float:left; margin-left:8px;}
.setting_right li{ height:28px;line-height:28px;}
.users_ctt ul li{ margin-bottom:10px;}
.users_ctt input,.users_ctt select,.users_ctt textarea{ border:1px solid #CCC;}
diff --git a/spec/factories/apply_add_schools.rb b/spec/factories/apply_add_schools.rb
new file mode 100644
index 000000000..a2994d28b
--- /dev/null
+++ b/spec/factories/apply_add_schools.rb
@@ -0,0 +1,12 @@
+FactoryGirl.define do
+ factory :apply_add_school, :class => 'ApplyAddSchools' do
+ name "MyString"
+province "MyString"
+city "MyString"
+address "MyString"
+remarks "MyString"
+school_id 1
+status 1
+ end
+
+end
diff --git a/spec/models/apply_add_schools_spec.rb b/spec/models/apply_add_schools_spec.rb
new file mode 100644
index 000000000..de1b7c05a
--- /dev/null
+++ b/spec/models/apply_add_schools_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe ApplyAddSchools, :type => :model do
+ pending "add some examples to (or delete) #{__FILE__}"
+end