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 26 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. {{template "base/head" .}}
  2. <style>
  3. .unite {
  4. font-family: SourceHanSansSC-medium !important;
  5. color: rgba(16, 16, 16, 100) !important;
  6. }
  7. .title {
  8. font-size: 16px !important;
  9. padding-left: 3rem !important;
  10. }
  11. .min_title{
  12. font-size: 14px !important;
  13. margin-bottom: 2rem !important;
  14. }
  15. .width100 {
  16. width: 100% !important;
  17. }
  18. .width81 {
  19. margin-left: 1.5rem;
  20. width: 81% !important;
  21. }
  22. .width85 {
  23. width: 85% !important;
  24. margin-left: 10.5rem !important;
  25. align-items: center;
  26. }
  27. .width48 {
  28. width: 48.5% !important;
  29. }
  30. .nowrapx {
  31. white-space: nowrap !important;
  32. }
  33. .v-middle {
  34. vertical-align: middle;
  35. }
  36. .label-required:after {
  37. margin: -0.2em 0 0 0.2em;
  38. content: '*';
  39. color: #db2828;
  40. visibility: visible !important;
  41. }
  42. </style>
  43. {{template "custom/global_mask" .}}
  44. <div class="repository">
  45. {{template "repo/header" .}}
  46. <div class="ui container">
  47. {{$Grampus := (or (eq (index (SubJumpablePath .Link) 1) "create_grampus_gpu") (eq (index (SubJumpablePath .Link) 1) "create_grampus_npu"))}}
  48. <div class="cloudbrain-type" style="display: none;" data-grampus="{{$Grampus}}" data-cloudbrain-type="{{.datasetType}}" data-repo-link="{{.RepoLink}}" data-flag-model="true" data-dataset-uuid="{{.attachment}}" data-dataset-name="{{.dataset_name}}" data-queue="{{.QueuesDetail}}" data-queue-start="{{.i18n.Tr "repo.wait_count_start"}}" data-queue-end="{{.i18n.Tr "repo.wait_count_end"}}"></div>
  49. {{template "base/alert" .}}
  50. <h4 class="ui top attached header">
  51. {{.i18n.Tr "repo.modelarts.evaluate_job.new_job"}}
  52. </h4>
  53. <div class="ui attached segment">
  54. <input type="hidden" name="benchmarkMode" value="{{.benchmarkMode}}">
  55. <form id="form_id" class="ui form alogrithm_form" action="{{.RepoLink}}/modelsafety/create" method="post">
  56. {{.CsrfTokenHtml}}
  57. <input type="hidden" name="compute_resource" value="{{.compute_resource}}">
  58. <input type="hidden" name="type" value="{{.type}}">
  59. <input type="hidden" id="ai_engine_name" name="engine_names" value="">
  60. <input type="hidden" id="ai_flaver_name" name="flaver_names" value="">
  61. <div class="required min_title inline field">
  62. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.cloudbrain.benchmark.evaluate_scenes"}}</label>
  63. <div class="ui blue small menu compact selectcloudbrain">
  64. <a class="item alogrithm_benchmark"
  65. href="{{.RepoLink}}/cloudbrain/benchmark/create?benchmarkMode=alogrithm">{{.i18n.Tr "repo.cloudbrain.benchmark.algorithm"}}</a>
  66. <a class="item model_benchmark"
  67. href="{{.RepoLink}}/cloudbrain/benchmark/create?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a>
  68. <a class="item active model_safe_benchmark"
  69. href="{{.Link}}">{{.i18n.Tr "modelsafety.model_security_evaluation"}}</a>
  70. </div>
  71. </div>
  72. <!-- <div class="required unite min_title inline field">
  73. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "cloudbrain.resource_cluster"}}</label>
  74. <div class="ui blue mini menu compact selectcloudbrain">
  75. <a class="item {{if not $Grampus}}active{{end}}" href="{{.RepoLink}}/modelsafety/create_gpu">
  76. <svg class="svg" sxmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"></path></svg>
  77. {{.i18n.Tr "cloudbrain.resource_cluster_openi"}}
  78. </a>
  79. <a class="item {{if $Grampus}}active{{end}}" href="{{.RepoLink}}/modelsafety/create_grampus_gpu">
  80. <svg class="svg" sxmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"></path></svg>
  81. {{.i18n.Tr "cloudbrain.resource_cluster_c2net"}}(Beta)
  82. </a>
  83. </div>
  84. </div> -->
  85. <div class="inline min_title required field">
  86. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "cloudbrain.compute_resource"}}</label>
  87. <div class="ui blue mini menu compact selectcloudbrain">
  88. <a class="{{if eq .datasetType 0}}active{{end}} item" href="{{.RepoLink}}/modelsafety/create_{{if $Grampus}}grampus_{{end}}gpu">
  89. <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16"
  90. height="16">
  91. <path fill="none" d="M0 0h24v24H0z" />
  92. <path
  93. d="M3 2.992C3 2.444 3.445 2 3.993 2h16.014a1 1 0 0 1 .993.992v18.016a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 21.008V2.992zM19 11V4H5v7h14zm0 2H5v7h14v-7zM9 6h6v2H9V6zm0 9h6v2H9v-2z" />
  94. </svg>
  95. CPU/GPU
  96. </a>
  97. <a class="{{if eq .datasetType 1}}active{{end}} item" href="{{.RepoLink}}/modelsafety/create_{{if $Grampus}}grampus_{{end}}npu">
  98. <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16"
  99. height="16">
  100. <path fill="none" d="M0 0h24v24H0z" />
  101. <path
  102. d="M3 2.992C3 2.444 3.445 2 3.993 2h16.014a1 1 0 0 1 .993.992v18.016a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 21.008V2.992zM19 11V4H5v7h14zm0 2H5v7h14v-7zM9 6h6v2H9V6zm0 9h6v2H9v-2z" />
  103. </svg>
  104. Ascend NPU</a>
  105. </div>
  106. </div>
  107. <div>
  108. <div class="min_title inline field" style="margin-top:-10px;">
  109. <label class="label-fix-width" style="font-weight: normal;"></label>
  110. {{template "custom/task_wait_count" .}}
  111. </div>
  112. <div class="min_title inline field" style="margin-top:-20px;margin-bottom:12px !important;">
  113. <label class="label-fix-width" style="font-weight: normal;"></label>
  114. <div style="display:inline-block;">
  115. <div style="display:flex;align-items:center;color:#f2711c;">
  116. <i class="ri-error-warning-line" style="margin-right: 0.5rem; font-size: 14px"></i>
  117. <span style="font-size: 12px">{{.i18n.Tr "modelsafety.new_model_security_evaluation_tips"}}</span>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="required min_title inline field">
  122. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>
  123. <input style="width: 80%;" name="display_job_name" id="trainjob_job_name"
  124. placeholder={{.i18n.Tr "repo.modelarts.train_job.job_name"}} value="{{.display_job_name}}"
  125. tabindex="3" autofocus required maxlength="36">
  126. <span class="tooltips" style="display: block;margin-left: 11.5rem;">{{.i18n.Tr "repo.cloudbrain_jobname_err"}}</span>
  127. </div>
  128. <div class="min_title inline field">
  129. <label class="label-fix-width" style="font-weight: normal;"
  130. for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}}</label>
  131. <textarea style="width: 80%;" id="description" name="description" rows="2" maxlength="254"
  132. placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}}
  133. onchange="this.value=this.value.substring(0, 255)"
  134. onkeydown="this.value=this.value.substring(0, 255)"
  135. onkeyup="this.value=this.value.substring(0, 255)">{{.description}}</textarea>
  136. </div>
  137. <input type="hidden" id="ai_model_version" name="model_version" value="{{$.model_version}}">
  138. <div class="required unite inline min_title fields" style="width: 96.8%;">
  139. <div class="required eight wide field">
  140. <label style="font-weight: normal;white-space: nowrap;width: 210px;text-align: right;">{{.i18n.Tr "repo.modelarts.infer_job.select_model"}}</label>
  141. <div class="ui fluid search selection dropdown" id="select_model">
  142. <input type="hidden" name="model_name" required>
  143. <div class="text"></div>
  144. <i class="dropdown icon"></i>
  145. <div class="menu" id="model_name">
  146. </div>
  147. </div>
  148. </div>
  149. <div class="three wide field">
  150. <div class="ui fluid search selection dropdown" id="select_model_version">
  151. <input type="hidden" name="train_url" required>
  152. <div class="text"></div>
  153. <i class="dropdown icon"></i>
  154. <div class="menu" id="model_name_version"></div>
  155. </div>
  156. </div>
  157. <div class="five wide field">
  158. <div class="ui fluid search selection dropdown" id="select_model_checkpoint">
  159. <input type="hidden" name="ckpt_name" required>
  160. <div class="text"></div>
  161. <i class="dropdown icon"></i>
  162. <div class="menu" id="model_checkpoint">
  163. </div>
  164. </div>
  165. </div>
  166. <span >
  167. <i class="question circle icon" data-content="{{.i18n.Tr "cloudbrain.model_file_postfix_rule"}}" data-position="top center" data-variation="inverted mini"></i>
  168. </span>
  169. </div>
  170. <div class="required inline min_title field " style="display: none;">
  171. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.resource_pool"}}</label>
  172. <select class="ui dropdown width48" id="trainjob_resource_pool" name="pool_id">
  173. {{range .resource_pools}}
  174. <option value="{{.ID}}">{{.Value}}</option>
  175. {{end}}
  176. </select>
  177. </div>
  178. {{if not $Grampus}}
  179. {{if eq .datasetType 0}}
  180. <div id="images-new-cb"></div>
  181. {{else}}
  182. <div class="required inline min_title fields" style="width: 95%;">
  183. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.AI_driver"}}</label>
  184. <div class="field" style="flex: 1.5;">
  185. <select class="ui dropdown width100" id="trainjob_engines">
  186. {{range .engines}}
  187. <option value="{{.Value}}">{{.Value}}</option>
  188. {{end}}
  189. </select>
  190. </div>
  191. <div class="field" style="flex: 2;" id="engine_name">
  192. <select class="ui dropdown width100" id="trainjob_engine_versions" name="engine_id">
  193. {{if .engine_id}}
  194. {{range .engine_versions}}
  195. {{if eq $.engine_id .ID}}
  196. <option value="{{.ID}}">{{.Value}}</option>
  197. {{end}}
  198. {{end}}
  199. {{range .engine_versions}}
  200. {{if ne $.engine_id .ID}}
  201. <option value="{{.ID}}">{{.Value}}</option>
  202. {{end}}
  203. {{end}}
  204. {{else}}
  205. {{range .engine_versions}}
  206. <option value="{{.ID}}">{{.Value}}</option>
  207. {{end}}
  208. {{end}}
  209. </select>
  210. </div>
  211. </div>
  212. {{end}}
  213. {{else}}
  214. {{if eq .datasetType 0}}
  215. <div id="images-new-grampus"></div>
  216. {{else}}
  217. <div class="required min_title inline field" id="engine_name">
  218. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "cloudbrain.mirror"}}</label>
  219. <select class="ui dropdown width48" id="trainjob_images" name="image_id">
  220. {{if .image_id}}
  221. {{range .images}}
  222. {{if eq $.image_id .ID}}
  223. <option value="{{.ID}}">{{.Name}}</option>
  224. {{end}}
  225. {{end}}
  226. {{range .images}}
  227. {{if ne $.image_id .ID}}
  228. <option value="{{.ID}}">{{.Name}}</option>
  229. {{end}}
  230. {{end}}
  231. {{else}}
  232. {{range .images}}
  233. <option name="image_id" value="{{.ID}}">{{.Name}}</option>
  234. {{end}}
  235. {{end}}
  236. </select>
  237. </div>
  238. {{end}}
  239. {{end}}
  240. <div class="inline field min_title required">
  241. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.start_file"}}</label>
  242. <input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="{{.boot_file}}" tabindex="3" autofocus required maxlength="255">
  243. <span>
  244. <i class="question circle icon link" data-content={{.i18n.Tr "repo.modelarts.train_job.boot_file_helper"}} data-position="right center" data-variation="mini"></i>
  245. </span>
  246. <a href="https://git.openi.org.cn/OpenIOSSG/aisafety" target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a>
  247. </div>
  248. <div class="inline field min_title required fields" style="width: 95%;">
  249. <label class="label-fix-width label-required" style="font-weight: normal;">{{.i18n.Tr "modelsafety.base_data_set"}}</label>
  250. <div class="field" style="flex:1.5">
  251. <select id="baseDataSet-sel" class="ui dropdown width100" name="src_dataset"></select>
  252. </div>
  253. <div class="field" style="flex:2;display:flex;">
  254. <label class="label-fix-width label-required" style="font-weight:normal;display:flex;justify-content:right;align-items: center;">{{.i18n.Tr "modelsafety.combat_data_set"}}</label>
  255. <div style="flex:1">
  256. <select id="combatDataSet-sel" class="ui dropdown width100" name="combat_dataset"></select>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="inline min_title field required">
  261. <label class="label-fix-width" style="font-weight:normal;">{{.i18n.Tr "modelsafety.evaluation_indicators"}}</label>
  262. <input type="text" style="display:none;" name="evaluation_index" />
  263. <select id="job_indicators" class="ui dropdown width48 v-middle" multiple style='width:385px;'>
  264. <option value="ACC">ACC</option>
  265. <option value="CAV">CAV</option>
  266. <option value="ASS">ASS</option>
  267. <option value="ALDp">ALDp</option>
  268. <option value="ACAC">ACAC</option>
  269. <!-- <option value="ACTC">ACTC</option> -->
  270. <option value="PSD">PSD</option>
  271. <option value="CACC">CACC</option>
  272. </select>
  273. {{template "repo/modelsafety/indicators_descr".}}
  274. </div>
  275. <div class="inline min_title field">
  276. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</label>
  277. <span id="add_run_para" style="margin-left: 0.5rem;cursor:pointer;color: rgba(3, 102, 214, 100);font-size: 14px;line-height: 26px;font-family: SourceHanSansSC-medium;">
  278. <i class="plus square outline icon"></i>{{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}}
  279. </span>
  280. <input id="store_run_para" type="hidden" name="run_para_list">
  281. <div class="dynamic field" style="margin-top: 1rem;" data-params="{{.run_para_list}}" data-params-value="{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}" data-params-name="{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}"></div>
  282. </div>
  283. <div class="required min_title inline field">
  284. <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "cloudbrain.resource_specification"}}</label>
  285. <select id="__specs__" class="ui dropdown width48"
  286. placeholder="{{.i18n.Tr "cloudbrain.select_specification"}}" style='width:385px' ovalue="{{.spec_id}}"
  287. {{if .CloudBrainPaySwitch}}blance="{{.PointAccount.Balance}}"{{end}}
  288. name="spec_id">
  289. </select>
  290. {{if .CloudBrainPaySwitch}}
  291. <div class="cloudbrain_resource_spec_blance_tip width48" style="padding:0 5px;margin:6px 0;margin-left:155px;font-size:12px;">
  292. <span>{{$.i18n.Tr "points.balance_of_points"}}<span style="color:red;margin: 0 3px">{{.PointAccount.Balance}}</span>{{$.i18n.Tr "points.points"}}</span><span>{{$.i18n.Tr "points.expected_time"}}<span style="color:red;margin: 0 3px" class="can-use-time"></span>{{$.i18n.Tr "points.hours"}}</span>
  293. <span style="float:right;">
  294. <i class="question circle icon link" data-position="right center" data-variation="mini"></i>
  295. <a href="{{AppSubUrl}}/reward/point/rule" target="_blank">{{$.i18n.Tr "points.points_acquisition_instructions"}}</a>
  296. </span>
  297. </div>
  298. {{end}}
  299. </div>
  300. <div class="inline unite min_title field">
  301. <label class="label-fix-width" style="font-weight: normal;"></label>
  302. <button class="ui create_train_job green button">
  303. {{.i18n.Tr "repo.cloudbrain.new"}}
  304. </button>
  305. <a class="ui button" href="{{.RepoLink}}/cloudbrain/benchmark">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a>
  306. </div>
  307. </div>
  308. </form>
  309. </div>
  310. </div>
  311. </div>
  312. {{template "base/footer" .}}
  313. <script src="{{StaticUrlPrefix}}/js/specsuse.js?v={{MD5 AppVer}}" type="text/javascript"></script>
  314. <script src="{{StaticUrlPrefix}}/js/cloudbrainNew.js?v={{MD5 AppVer}}" type="text/javascript"></script>
  315. <script>
  316. let form = document.getElementById('form_id');
  317. let createFlag = false
  318. form.onsubmit = function (e) {
  319. if(createFlag) return false
  320. createFlag = true
  321. }
  322. $('.menu .item').tab();
  323. var isValidate = false;
  324. function validate() {
  325. $('.ui.form')
  326. .form({
  327. on: 'blur',
  328. fields: {
  329. model_name:{
  330. identifier : 'model_name',
  331. rules: [
  332. {
  333. type: 'empty',
  334. }
  335. ]
  336. },
  337. train_url:{
  338. identifier : 'train_url',
  339. rules: [
  340. {
  341. type: 'empty',
  342. }
  343. ]
  344. },
  345. ckpt_name:{
  346. identifier : 'ckpt_name',
  347. rules: [
  348. {
  349. type: 'empty',
  350. }
  351. ]
  352. },
  353. },
  354. onSuccess: function () {
  355. // $('.ui.page.dimmer').dimmer('show')
  356. document.getElementById("mask").style.display = "block"
  357. isValidate = true;
  358. },
  359. onFailure: function (e) {
  360. isValidate = false;
  361. return false;
  362. }
  363. })
  364. }
  365. // validate()
  366. $('.ui.create_train_job.green.button').click(function (e) {
  367. validate()
  368. })
  369. ;(function() {
  370. var SPECS = {{ .benchmark_specs }} || {{ .Specs }};
  371. var showPoint = {{ .CloudBrainPaySwitch }};
  372. window.renderSpecsSelect($('#__specs__'), SPECS, showPoint, {
  373. gpu_memory: {{$.i18n.Tr "cloudbrain.gpu_memory"}},
  374. free: {{$.i18n.Tr "cloudbrain.free"}},
  375. point_hr: {{$.i18n.Tr "cloudbrain.point_hr"}},
  376. memory: {{$.i18n.Tr "cloudbrain.memory"}},
  377. shared_memory: {{$.i18n.Tr "cloudbrain.shared_memory"}},
  378. });
  379. })();
  380. ;(function() {
  381. var baseDataSetName = {{.BaseDataSetName}} || '';
  382. var baseDataSetUUID = {{.BaseDataSetUUID}} || '';
  383. var combatDataSetName = {{.CombatDataSetName}} || '';
  384. var combatDataSetUUID = {{.CombatDataSetUUID}} || '';
  385. var baseDataSetSel = $('#baseDataSet-sel');
  386. var combatDataSetSel = $('#combatDataSet-sel');
  387. function initDataSetSelect(names, keys, selectEl) {
  388. selectEl.empty();
  389. var nameList = names.split(',');
  390. var keyList = keys.split(',')
  391. for (var i = 0, iLen = nameList.length; i < iLen; i++) {
  392. selectEl.append(`<option index="${i}" value="${keyList[i]}">${nameList[i]}</option>`);
  393. }
  394. selectEl.on('change', function() {
  395. var self = $(this);
  396. var selectIndex = self.find('option:selected').attr('index');
  397. var type = self.attr('id');
  398. if (type === 'baseDataSet-sel') {
  399. var val = combatDataSetSel.find('option[index="'+selectIndex+'"]').attr('value');
  400. combatDataSetSel.dropdown('set selected', val);
  401. } else {
  402. var val = baseDataSetSel.find('option[index="'+selectIndex+'"]').attr('value');
  403. baseDataSetSel.dropdown('set selected', val);
  404. }
  405. }).trigger('change');
  406. }
  407. initDataSetSelect(baseDataSetName, baseDataSetUUID, baseDataSetSel);
  408. initDataSetSelect(combatDataSetName, combatDataSetUUID, combatDataSetSel);
  409. $('#job_indicators').on('change', function() {
  410. var value = $(this).val();
  411. $('input[name="evaluation_index"]').val(value.join(';'));
  412. }).trigger('change');
  413. })();
  414. </script>