dev_bj
杨树明 6 years ago
parent aca6075606
commit 2fcf391018

@ -295,7 +295,7 @@
</div>
<% end %>
<% if User.current.admin? || User.current.business? %>
<div class="edu-back-white padding40-20 mb20">
<div class=<%User.current.admin? || User.current.business? ? "edu-back-white padding40-20 mb20":"none" %> >
<p class="color-grey-6 font-16 mb30">服务配置</p>
<% @shixun.shixun_service_configs.each do |config| %>
<p class="color-grey-6 font-16 mt30" id="shixun_scenario_type_name"><%= config.mirror_repository.try(:type_name) %></p>
@ -304,7 +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="">
>
placeholder="请输入类别名称"/>
</div>
<div class="cl"></div>
@ -313,7 +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="">
>
placeholder="请输入类别名称"/>
</div>
<div class="cl"></div>
@ -322,7 +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="">
>
placeholder="请输入类别名称"/>
</div>
<div class="cl"></div>
@ -331,7 +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="">
>
placeholder="请输入类别名称"/>
</div>
<label class="panel-form-label fl" style="width: 48%">温馨提示纯编程类型实训建议使用默认值对于大数据等建议使用最大内存的30%</label>
@ -374,7 +374,7 @@
<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"
disabled=<!=list.admin!>
>
placeholder="请输入类别名称"/>
</div>
<div class="cl"></div>
@ -383,7 +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>
@ -392,7 +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>
@ -401,7 +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>

Loading…
Cancel
Save