|
|
|
@ -304,6 +304,7 @@
|
|
|
|
|
<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"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -312,6 +313,7 @@
|
|
|
|
|
<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"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -320,6 +322,7 @@
|
|
|
|
|
<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"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -328,6 +331,7 @@
|
|
|
|
|
<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"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<label class="panel-form-label fl" style="width: 48%">温馨提示:纯编程类型实训建议使用默认值,对于大数据等建议使用最大内存的30%</label>
|
|
|
|
@ -365,12 +369,13 @@
|
|
|
|
|
<p class="color-grey-6 font-16 mt30" id="shixun_scenario_type_name">
|
|
|
|
|
<!=listname[i]!>
|
|
|
|
|
</p>
|
|
|
|
|
<input type="hidden" name="mirror_id[]" value=<!=list[i]!> >
|
|
|
|
|
<input type="hidden" name="mirror_id[]" value=>
|
|
|
|
|
<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="1" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
@ -378,6 +383,7 @@
|
|
|
|
|
<label class="panel-form-label fl">最低CPU(核):</label>
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
<input type="text" name="lower_cpu_limit[]" value="0.1" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -386,6 +392,7 @@
|
|
|
|
|
<label class="panel-form-label fl">内存限制(M):</label>
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
<input type="text" name="memory_limit[]" value="1024" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -394,6 +401,7 @@
|
|
|
|
|
<label class="panel-form-label fl">内存要求(M):</label>
|
|
|
|
|
<div class="pr fl with20 status_con">
|
|
|
|
|
<input type="text" name="request_limit[]" value="10" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
disabled=<!=list.admin!>
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<label class="panel-form-label fl" style="width: 48%">温馨提示:纯编程类型实训建议使用默认值,对于大数据等建议使用最大内存的30%</label>
|
|
|
|
@ -529,9 +537,10 @@
|
|
|
|
|
}
|
|
|
|
|
var data={
|
|
|
|
|
"listname":arrs,
|
|
|
|
|
"list":idarr
|
|
|
|
|
"list":idarr,
|
|
|
|
|
"admin":<%= User.current.admin? %>
|
|
|
|
|
};
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
var htmlidarr=bt('t:edit-setting-list',data);
|
|
|
|
|
document.getElementById('result').innerHTML=htmlidarr;
|
|
|
|
|
$("input[name='small_type']").val(idarr);
|
|
|
|
|