| @@ -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-repopath="{{$.RepoLink}}/cloudbrain/{{.Cloudbrain.ID}}/stop" | ||||
| data-jobid="{{.Cloudbrain.ID}}"> | |||||
| data-jobid="{{.JobID}}"> | |||||
| {{$.i18n.Tr "repo.stop"}} | {{$.i18n.Tr "repo.stop"}} | ||||
| </a> | </a> | ||||
| {{else}} | {{else}} | ||||