|
|
@ -1,6 +1,11 @@
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
.down-select .magic-radio + label:before, .down-select .magic-checkbox + label:before {top: 10px !important;}
|
|
|
|
.down-select .magic-radio + label:before, .down-select .magic-checkbox + label:before {
|
|
|
|
.down-select .magic-checkbox + label:after {top: 10px !important}
|
|
|
|
top: 10px !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.down-select .magic-checkbox + label:after {
|
|
|
|
|
|
|
|
top: 10px !important
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<div class="educontent mt30 mb80">
|
|
|
|
<div class="educontent mt30 mb80">
|
|
|
|
<%= form_for(@shixun) do |f| %>
|
|
|
|
<%= form_for(@shixun) do |f| %>
|
|
|
@ -138,14 +143,14 @@
|
|
|
|
其它参数可按实际需求定制
|
|
|
|
其它参数可按实际需求定制
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="inviteTipbtn with100 fl"><a href="javascript:void(0);" onclick="$('#test_script_tip').hide();">知道了</a></p>
|
|
|
|
<p class="inviteTipbtn with100 fl">
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" onclick="$('#test_script_tip').hide();">知道了</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mb10 edu-back-white padding40-20">
|
|
|
|
<div class="mb10 edu-back-white padding40-20">
|
|
|
|
<div class="clearfix mb20">
|
|
|
|
<div class="clearfix mb20">
|
|
|
|
<p class="color-grey-6 font-16 mb30 fl">发布信息</p>
|
|
|
|
<p class="color-grey-6 font-16 mb30 fl">发布信息</p>
|
|
|
@ -282,13 +287,65 @@
|
|
|
|
<%= render_shixun_departments %>
|
|
|
|
<%= render_shixun_departments %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a class="edu-default-btn edu-blueline-btn fl mt1" href="javascript:void(0)" onclick="$('#person-unit').show();$('#person-unit').find('input').val('');$('#scope-down-list').hide();">+ 添加</a>
|
|
|
|
<a class="edu-default-btn edu-blueline-btn fl mt1" href="javascript:void(0)" onclick="$('#person-unit').show();$('#person-unit').find('input').val('');$('#scope-down-list').hide();">+
|
|
|
|
|
|
|
|
添加</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="color-orange ml20 fl none" id="public_unit_notice"><i class="fa fa-exclamation-circle mr3"></i>请选择需要公开的单位</span>
|
|
|
|
<span class="color-orange ml20 fl none" id="public_unit_notice"><i class="fa fa-exclamation-circle mr3"></i>请选择需要公开的单位</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if User.current.admin? || User.cuurent.business? %>
|
|
|
|
|
|
|
|
<div class="edu-back-white padding40-20 mb20">
|
|
|
|
|
|
|
|
<p class="color-grey-6 font-16 mb30">服务配置</p>
|
|
|
|
|
|
|
|
<% @shixun.shixun_service_configs.each do |config| %>
|
|
|
|
|
|
|
|
<p class="color-grey-6 font-16 mt30"><%= config.mirror_repository.try(:type_name) %></p>
|
|
|
|
|
|
|
|
<input type="hidden" name="mirror_id[]" value="<%= config.mirror_repository.try(:id) %>'">
|
|
|
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
|
|
|
<label class="panel-form-label fl">CPU(核):</label>
|
|
|
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
|
|
|
<input type="text" name="cpu_limit[]" value="<%= config.cpu_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
|
|
|
<label class="panel-form-label fl">最低CPU(核):</label>
|
|
|
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
|
|
|
<input type="text" name="lower_cpu_limit[]" value="<%= config.lower_cpu_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
|
|
|
<label class="panel-form-label fl">内存限制(M):</label>
|
|
|
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
|
|
|
<input type="text" name="memory_limit[]" value="<%= config.memory_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
|
|
|
<label class="panel-form-label fl">内存要求(M):</label>
|
|
|
|
|
|
|
|
<div class="pr fl with20 status_con">
|
|
|
|
|
|
|
|
<input type="text" name="request_limit[]" value="<%= config.request_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label class="panel-form-label fl" style="width: 48%">温馨提示:纯编程类型实训建议使用默认值,对于大数据等建议使用最大内存的30%</label>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="clearfix mb5">-->
|
|
|
|
|
|
|
|
<!-- <label class="panel-form-label fl">磁盘限制(K):</label>-->
|
|
|
|
|
|
|
|
<!-- <div class="pr fl with80 status_con">-->
|
|
|
|
|
|
|
|
<!-- <input type="text" name="resource_limit[]" value="<%#= config.resource_limit %>" class="panel-box-sizing task-form-100 task-height-40"-->
|
|
|
|
|
|
|
|
<!-- placeholder="请输入类别名称"/>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<!-- <div class="cl"></div>-->
|
|
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<div class="clearfix mt30">
|
|
|
|
<div class="clearfix mt30">
|
|
|
|
<a href="javascript:void(0)" class="defalutSubmitbtn fl mr20" onclick="submit_edit_shixun(<%= @shixun.id %>);">保存</a>
|
|
|
|
<a href="javascript:void(0)" class="defalutSubmitbtn fl mr20" onclick="submit_edit_shixun(<%= @shixun.id %>);">保存</a>
|
|
|
|
<%= link_to "取消", settings_shixun_path(@shixun), :class => "defalutCancelbtn fl" %>
|
|
|
|
<%= link_to "取消", settings_shixun_path(@shixun), :class => "defalutCancelbtn fl" %>
|
|
|
|