实训配置页面

This commit is contained in:
daiao 2017-03-17 16:12:29 +08:00
parent 5cde12c454
commit a72defba5e
3 changed files with 6 additions and 6 deletions

View File

@ -2,9 +2,6 @@
<%= render :partial => "shixuns/settings_challenges_result_tip" %>
</div>
<div class="task-setting-tab">
<div id="training_project_filter_tip">
<%= render :partial => "shixuns/settings_challenges_action_tip" %>
</div>
<div class="panel-form">
<ul>
<%= form_tag(url_for(:controller => 'shixuns', :action => 'add_script', :id => @shixun), :method => "post", :remote => true, :id => "project_script_form") do %>
@ -14,6 +11,9 @@
<span id ="shixun_script_tip" class="c_red ml85" style="display: none">内容不能为空</span>
</li>
<li class="clearfix">
<div id="training_project_filter_tip">
<%= render :partial => "shixuns/settings_challenges_action_tip" %>
</div>
<a href="javascript:void(0)" class="task-btn task-btn-green fr mr10" onclick="project_script_commit()">保存</a>
</li>
<% end %>

View File

@ -1,7 +1,7 @@
<% unless @shixun.script.blank? %>
<% if @shixun.status == 1 %>
<%= link_to "重启实训", shixun_job_update_shixun_path(@shixun), :class => "fr sy_btn_green mb10", :remote => true %>
<%= link_to "重启实训", shixun_job_update_shixun_path(@shixun), :class => "task-btn task-btn-green fr mr10", :remote => true %>
<% else %>
<%= link_to "开启实训", shixun_job_create_shixun_path(@shixun), :class => "fr sy_btn_green mb10", :remote => true %>
<%= link_to "开启实训", shixun_job_create_shixun_path(@shixun), :class => "task-btn task-btn-green fr mr10", :remote => true %>
<% end %>
<% end %>

View File

@ -1,3 +1,3 @@
<% if @notice %>
<div class="alert alert-orange ml15 mr15 mb10"><p><%= @notice %></p></div>
<div class="alert alert-orange ml15 mr15 mb10 mt10"><p><%= @notice %></p></div>
<% end %>