对于应标需求,提交作业,提交竞赛作品成功后闪出的flash做了区别
This commit is contained in:
parent
5fb0bc945c
commit
9b9745ea0a
|
@ -380,7 +380,19 @@ class BidsController < ApplicationController
|
|||
bid_message = params[:bid_for_save][:bid_message]
|
||||
if BidingProject.where("project_id = ? and bid_id = ?", project.id, @bid.id).size == 0
|
||||
if BidingProject.cerate_bidding(@bid.id, project.id, bid_message)
|
||||
flash[:notice] = l(:label_bidding_succeed)
|
||||
|
||||
# added by bai type ==1 需求,type==2 竞赛, type==3 作业
|
||||
if @bid.reward_type == 1
|
||||
flash[:notice] = l(:label_bidding_succeed)
|
||||
|
||||
elsif @bid.reward_type == 2
|
||||
flash[:notice] = l(:label_bidding_contest_succeed)
|
||||
|
||||
else @bid.reward_type == 3
|
||||
flash[:notice] = l(:label_bidding_homework_succeed)
|
||||
end
|
||||
# end
|
||||
|
||||
end
|
||||
else
|
||||
if @bid.reward_type == 3
|
||||
|
|
|
@ -1298,6 +1298,8 @@ zh:
|
|||
label_wrong_budget: 错误的金额格式
|
||||
label_wrong_date: 时间格式错误,请输入正确的时间 yyyy-mm-dd
|
||||
label_bidding_succeed: 应标成功
|
||||
label_bidding_contest_succeed: 竞赛提交成功 #added by bai
|
||||
label_bidding_homework_succeed: 作业提交成功 #added by bai
|
||||
label_bidding_fail: 应标失败,该项目已经应标
|
||||
label_bidding_homework_fail: 作业提交失败,该作业已经被提交!
|
||||
|
||||
|
|
Loading…
Reference in New Issue