Browse Source

fix issue

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
cc024296fb
2 changed files with 33 additions and 6 deletions
  1. +15
    -0
      templates/repo/grampus/notebook/gpu/new.tmpl
  2. +18
    -6
      templates/repo/grampus/notebook/show.tmpl

+ 15
- 0
templates/repo/grampus/notebook/gpu/new.tmpl View File

@@ -111,6 +111,21 @@
</div>
{{end}}
</div>
<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.dataset_storage_path"}}</label>
<input name="dataset_path" id="cloudbrain_dataset_path" value="{{.dataset_path}}" tabindex="3"
disabled autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.model_storage_path"}}</label>
<input name="model_path" id="cloudbrain_model_path" value="{{.model_path}}" tabindex="3"
disabled autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.code_storage_path"}}</label>
<input name="code_path" id="cloudbrain_code_path" value="{{.code_path}}" tabindex="3" disabled
autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline field">
<label>{{.i18n.Tr "cloudbrain.description"}}</label>
<input name="description" id="cloudbrain_description" tabindex="3" autofocus maxlength="255">


+ 18
- 6
templates/repo/grampus/notebook/show.tmpl View File

@@ -210,6 +210,17 @@
{{end}}
</div>
</td>
</tr>
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "repo.grampus.train_job.ai_center"}}
</td>

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-ai_center">
{{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}}
</div>
</td>
</tr>
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
@@ -227,7 +238,7 @@
</div>
</td>
</tr>
{{if eq .ComputeResource "NPU"}}
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
代码obs地址
@@ -253,7 +264,7 @@
</div>
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
@@ -261,6 +272,7 @@


</div>
{{if eq .ComputeResource "NPU"}}
<div style="clear:both">
<table style="border:none" class="ui fixed small stackable table">
<thead>
@@ -284,7 +296,8 @@
{{end}}
</tbody>
</table>
</div>
</div>
{{end}}
</div>
</div>

@@ -333,8 +346,7 @@
});
$('td.ti-text-form-content.spec div').text(specStr);
})();
console.log("---------=-=")
console.log("---------=-sdfsdfsd=")
console.log({{.task}})
console.log({{$.datasetDownload}})
console.log({{$.duration}});
</script>

Loading…
Cancel
Save