challenge取消按钮添加链接

This commit is contained in:
huang 2017-04-01 10:30:07 +08:00
parent dba4c11e4d
commit 18a9676d7a
1 changed files with 3 additions and 1 deletions

View File

@ -150,10 +150,12 @@
<li class="clearfix">
<% if params[:action] == "edit" %>
<a href="javascript:void(0)" class="task-btn task-btn-green fr mr10" onclick="challenge_update()">保存</a>
<a href="<%= shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" class="task-btn fr mr10">取消</a>
<% else %>
<a href="javascript:void(0)" class="task-btn task-btn-green fr mr10" onclick="challenge_create()">保存</a>
<a href="<%= shixun_challenges_path(@shixun) %>" class="task-btn fr mr10">取消</a>
<% end %>
<a href="javascript:void(0)" class="task-btn fr mr10">取消</a>
</li>
</div>