You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit.tmpl 2.5 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div id="mask">
  2. <div id="loadingPage">
  3. <div class="rect1"></div>
  4. <div class="rect2"></div>
  5. <div class="rect3"></div>
  6. <div class="rect4"></div>
  7. <div class="rect5"></div>
  8. </div>
  9. </div>
  10. {{template "base/head" .}}
  11. <div class="repository">
  12. {{template "repo/header" .}}
  13. <div class="ui container">
  14. <input type="hidden" id="dataset-file-desc" value="{{.Attachment.Description}}">
  15. <div style="width: 80%;margin: auto;">
  16. <h4 class="ui top attached header">
  17. {{$.i18n.Tr "dataset.modify_dataset_description"}}
  18. </h4>
  19. <div class="ui attached segment" style="padding: 2em 3em;">
  20. <div class="ui form" id="dataset-base">
  21. <el-form label-width="140px">
  22. {{.CsrfTokenHtml}}
  23. <el-form-item label='{{$.i18n.Tr "dataset.dataset_available_clusters"}}:' prop="title">
  24. <span style="display: flex;color: #3291F8;"><i class="ri-archive-drawer-line" style="margin-right: 10px;"></i>{{.Attachment.Type | AttachmentResourceType}}</span>
  25. <!-- <span>请输入字母、数字、_和-,最长64个字符,且不能以中划线(-)结尾。</span> -->
  26. </el-form-item>
  27. <el-form-item label='{{$.i18n.Tr "dataset.file"}}:' prop="description">
  28. <span>{{.Attachment.Name}}</span>
  29. </el-form-item>
  30. <el-form-item label='{{$.i18n.Tr "dataset.file_description"}}:' prop="description">
  31. <el-input type="textarea" :rows="3" maxlength="255" placeholder="{{$.i18n.Tr "repo.modelarts.train_job.new_place"}}" v-model="descfile"></el-input>
  32. </el-form-item>
  33. <el-form-item>
  34. <el-button style="background-color: #21ba45;" type="success" @click="editDatasetFile({{.Attachment.ID}},'{{$.RepoLink}}')">确定</el-button>
  35. <el-button type="info" @click="cancelDataset('','{{$.RepoLink}}')">取消</el-button>
  36. </el-form-item>
  37. </el-form>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. {{template "base/footer" .}}
  44. <script>
  45. console.log({{.Attachment}})
  46. console.log({{$.RepoLink}})
  47. console.log({{$.Link}})
  48. </script>