竞赛页面中添加参赛作品成功创建的提示语

This commit is contained in:
wanglinchun 2014-05-21 11:16:46 +08:00
parent a5cb14274c
commit 947c0f8f64
3 changed files with 4 additions and 3 deletions

View File

@ -149,8 +149,7 @@ class SoftapplicationsController < ApplicationController
respond_to do |format| respond_to do |format|
if @softapplication.save if @softapplication.save
ContestingSoftapplication.create(:contest_id => params[:contest_id], :softapplication_id => @softapplication.id) ContestingSoftapplication.create(:contest_id => params[:contest_id], :softapplication_id => @softapplication.id)
format.js format.html { redirect_to show_attendingcontest_contest_path(:id => params[:contest_id]), notice: l(:notice_attendingcontest_work_successfully_created) }
format.html { redirect_to show_attendingcontest_contest_path(:id => params[:contest_id]) }
# format.json { render json: @softapplication, status: :created, location: @softapplication } # format.json { render json: @softapplication, status: :created, location: @softapplication }
else else
format.js { render status: 406 } format.js { render status: 406 }

View File

@ -59,7 +59,7 @@
} }
</script> </script>
<p style="padding-left:20px; background-color: #dfffdf; border-color: #9fcf9f; color: #005f00; border: 0px solid; font-size: 1.1em;"><%= notice %></p>
<!--参赛步骤--> <!--参赛步骤-->
<div style="padding-left: 23px; padding-bottom: 10px; color: grey; font-size: 12px"> <div style="padding-left: 23px; padding-bottom: 10px; color: grey; font-size: 12px">
<div>温馨提示:如果您准备参加竞赛,请点击下面的"新建参赛作品"</div> <div>温馨提示:如果您准备参加竞赛,请点击下面的"新建参赛作品"</div>

View File

@ -1900,6 +1900,8 @@ zh:
label_contest_delete: 删除竞赛 label_contest_delete: 删除竞赛
label_noawards_current: 暂未评奖 label_noawards_current: 暂未评奖
notice_account_updated: 帐号更新成功
notice_attendingcontest_work_successfully_created: 恭喜您,参赛作品成功创建!
# ajax异步验证 # ajax异步验证
modal_valid_passing: 可以使用 modal_valid_passing: 可以使用