| @@ -153,9 +153,9 @@ func SaveModelConvert(ctx *context.Context) { | |||||
| ctx.JSON(403, ctx.Tr("repo.model_noright")) | ctx.JSON(403, ctx.Tr("repo.model_noright")) | ||||
| return | return | ||||
| } | } | ||||
| name := ctx.Query("model_convert_name") | |||||
| desc := ctx.Query("Description") | |||||
| modelId := ctx.Query("ModelVersion") | |||||
| name := ctx.Query("name") | |||||
| desc := ctx.Query("desc") | |||||
| modelId := ctx.Query("modelId") | |||||
| SrcEngine := ctx.QueryInt("SrcEngine") | SrcEngine := ctx.QueryInt("SrcEngine") | ||||
| InputShape := ctx.Query("inputshape") | InputShape := ctx.Query("inputshape") | ||||
| InputDataFormat := ctx.Query("inputdataformat") | InputDataFormat := ctx.Query("inputdataformat") | ||||
| @@ -115,15 +115,9 @@ | |||||
| <form id="delForm-{{.ID}}" action="{{$.RepoLink}}/modelmanage/delete_model_convert/{{.ID}}" method="post"> | <form id="delForm-{{.ID}}" action="{{$.RepoLink}}/modelmanage/delete_model_convert/{{.ID}}" method="post"> | ||||
| <input type="hidden" name="debugListType" value="all"> | <input type="hidden" name="debugListType" value="all"> | ||||
| {{$.CsrfTokenHtml}} | {{$.CsrfTokenHtml}} | ||||
| {{if .IsCanDelete}} | |||||
| <a id="ai-delete-{{.ID}}" class='ui basic ai_delete {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;"> | |||||
| <a id="ai-delete-{{.ID}}" class='ui basic ai_delete blue button' style="border-radius: .28571429rem;"> | |||||
| {{$.i18n.Tr "repo.delete"}} | {{$.i18n.Tr "repo.delete"}} | ||||
| </a> | </a> | ||||
| {{else}} | |||||
| <a class="ui basic button disabled" style="border-radius: .28571429rem;"> | |||||
| {{$.i18n.Tr "repo.delete"}} | |||||
| </a> | |||||
| {{end}} | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||