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.

new.tmpl 2.9 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{template "base/head" .}}
  2. <div class="repository">
  3. {{template "repo/header" .}}
  4. <div class="repository new repo ui middle very relaxed page grid">
  5. <div class="column">
  6. {{template "base/alert" .}}
  7. <form class="ui form" action="{{.Link}}" method="post">
  8. {{.CsrfTokenHtml}}
  9. <h3 class="ui top attached header">
  10. {{.i18n.Tr "repo.cloudbrain.new"}}
  11. </h3>
  12. <div class="ui attached segment">
  13. <br>
  14. <div class="inline required field">
  15. <label>任务名称</label>
  16. <input name="job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.job_name}}" tabindex="3" autofocus required maxlength="255">
  17. </div>
  18. <br>
  19. <div class="inline required field">
  20. <label>镜像</label>
  21. <select id="cloudbrain_image" placeholder="选择镜像" style='width:385px' name="image">
  22. {{range .images}}
  23. <option name="image" value="{{.Place}}">{{.PlaceView}}</option>
  24. {{end}}
  25. </select>
  26. </div>
  27. <div class="inline required field">
  28. <label>数据集(只有zip格式的数据集才能发起云脑任务)</label>
  29. <select id="cloudbrain_dataset" placeholder="选择数据集" style='width:385px' name="attachment">
  30. {{range .attachments}}
  31. <option name="attachment" value="{{.UUID}}">{{.Attachment.Name}}</option>
  32. {{end}}
  33. </select>
  34. </div>
  35. <div class="inline required field">
  36. <label>数据集存放路径</label>
  37. <input name="dataset_path" id="cloudbrain_dataset_path" value="{{.dataset_path}}" tabindex="3" autofocus required maxlength="255" readonly="readonly">
  38. </div>
  39. <div class="inline required field">
  40. <label>模型存放路径</label>
  41. <input name="model_path" id="cloudbrain_model_path" value="{{.model_path}}" tabindex="3" autofocus required maxlength="255" readonly="readonly">
  42. </div>
  43. <div class="inline required field">
  44. <label>代码存放路径</label>
  45. <input name="code_path" id="cloudbrain_code_path" value="{{.code_path}}" tabindex="3" autofocus required maxlength="255" readonly="readonly">
  46. </div>
  47. <div class="inline required field" hidden>
  48. <label>启动命令</label>
  49. <textarea name="command" rows="10" readonly="readonly">{{.command}}</textarea>
  50. </div>
  51. <div class="inline field">
  52. <label></label>
  53. <button class="ui green button">
  54. {{.i18n.Tr "repo.cloudbrain.new"}}
  55. </button>
  56. <a class="ui button" href="/">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. {{template "base/footer" .}}