Browse Source

fix issue

pull/2458/head
zhoupzh 2 years ago
parent
commit
8e301ed7c9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      templates/repo/modelarts/inferencejob/index.tmpl

+ 4
- 4
templates/repo/modelarts/inferencejob/index.tmpl View File

@@ -156,13 +156,13 @@
<!-- 停止任务 --> <!-- 停止任务 -->
{{if eq .Cloudbrain.Type 0 }} {{if eq .Cloudbrain.Type 0 }}
<div class="ui compact buttons"> <div class="ui compact buttons">
<form id="stopForm-{{.Cloudbrain.ID}}" style="margin-left:-1px;">
<form id="stopForm-{{.JobID}}" style="margin-left:-1px;">
{{$.CsrfTokenHtml}} {{$.CsrfTokenHtml}}
{{if .CanDel}} {{if .CanDel}}
<a id="ai-stop-{{.Cloudbrain.ID}}"
<a id="ai-stop-{{.JobID}}"
class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED"}}disabled {{else}}blue {{end}}button' class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED"}}disabled {{else}}blue {{end}}button'
data-repopath="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/stop"
data-jobid="{{.Cloudbrain.ID}}">
data-repopath="{{$.RepoLink}}/cloudbrain/{{.JobID}}/stop"
data-jobid="{{.JobID}}">
{{$.i18n.Tr "repo.stop"}} {{$.i18n.Tr "repo.stop"}}
</a> </a>
{{else}} {{else}}


Loading…
Cancel
Save