Browse Source

fix issue

tags/v1.22.11.1^2
zhoupzh 3 years ago
parent
commit
b306e35a31
5 changed files with 40 additions and 5 deletions
  1. +12
    -0
      templates/custom/alert_cb.tmpl
  2. +1
    -0
      templates/repo/cloudbrain/new.tmpl
  3. +13
    -1
      templates/repo/modelarts/notebook/new.tmpl
  4. +3
    -0
      web_src/js/features/cloudrbanin.js
  5. +11
    -4
      web_src/less/_form.less

+ 12
- 0
templates/custom/alert_cb.tmpl View File

@@ -0,0 +1,12 @@
{{if .NotStopTaskCount}}
<div class="ui message" style="background-color: rgba(242, 113, 28, 0.05);border: 1px solid rgba(242, 113, 28, 1);border-radius: 5px;">
<i class="close icon"></i>
<div style="display: flex;align-items: center;">
<i class="ri-information-line" style="font-size: 35px;color: rgba(242, 113, 28, 1);;"></i>
<div style="text-align: left;margin-left: 1rem;">
<div style="font-weight: 600;line-height: 2;">您已经有 <span style="color:rgba(242, 113, 28, 1);">同类任务</span> 正在等待或运行中,请等待任务结束再创建</div>
<div style="color:#939393">可以在 “<a href="#" >个人中心 > 云脑任务</a>” 查看您所有的云脑任务</div>
</div>
</div>
</div>
{{end}}

+ 1
- 0
templates/repo/cloudbrain/new.tmpl View File

@@ -28,6 +28,7 @@
<div class="ui negative message" id="messageInfo" style="display:none;">
<p></p>
</div>
{{template "custom/alert_cb" .}}
<form id="form_id" class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<input type="hidden" name='isBranches' value="{{.Branches}}">


+ 13
- 1
templates/repo/modelarts/notebook/new.tmpl View File

@@ -15,6 +15,8 @@
<div class="ui negative message" id="messageInfo">
<p></p>
</div>

{{template "custom/alert_cb" .}}
<form class="ui form" id="form_id" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<h3 class="ui top attached header">
@@ -178,8 +180,18 @@
document.getElementById("mask").style.display = "none"
}
}
$('select.dropdown')
.dropdown();

$(function() {
$("#cloudbrain_job_type").change(function() {
if ($(this).val() == 'BENCHMARK') {
$(".cloudbrain_benchmark").show();
} else {
$(".cloudbrain_benchmark").hide();
}
})
})
$(document).ready(function(){
$(document).keydown(function(event){
if(event.keyCode==13){


+ 3
- 0
web_src/js/features/cloudrbanin.js View File

@@ -575,3 +575,6 @@ function AdaminSearchControll() {
}
userSearchControll();
AdaminSearchControll();
$(".message .close").on("click", function () {
$(this).closest(".message").transition("fade");
});

+ 11
- 4
web_src/less/_form.less View File

@@ -1,8 +1,8 @@
.form {
.help {
color: #999999;
padding-top: .6em;
padding-top: 0.6em;
display: inline-block;
}
}
@@ -109,7 +109,7 @@
@media screen and (max-height: 575px) {
#rc-imageselect,
.g-recaptcha {
transform: scale(.77);
transform: scale(0.77);
transform-origin: 0 0;
}
}
@@ -141,7 +141,7 @@
}
}

input[type=number] {
input[type="number"] {
-moz-appearance: textfield;
}

@@ -157,6 +157,13 @@
&.new.repo,
&.new.migrate,
&.new.fork {
.ui.message {
@media only screen and (min-width: 768px) {
width: 800px !important;
}
margin: 0 auto;
margin-bottom: 1rem;
}
#create-page-form;

form {


Loading…
Cancel
Save