guest_show.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. {% extends "layout.html" %}
  2. {% block title %} Guest {% endblock %}
  3. {% block head %}
  4. {{ super() }}
  5. <style type="text/css">
  6. .table {
  7. font-size: 12px;
  8. border-width: 1px;
  9. line-height: 20px;
  10. }
  11. .table > thead > tr > th,
  12. .table > tfoot > tr > th {
  13. color: #999999;
  14. font-weight: normal;
  15. border-bottom: 0 solid #e1e6eb;
  16. background-color: #F5F6FA;
  17. }
  18. .table > tbody > tr > td {
  19. color: #424547;
  20. }
  21. .table-bordered > tbody > tr {
  22. padding-top: 10px;
  23. padding-bottom: 10px;
  24. height: 106px;
  25. }
  26. .table-bordered > thead > tr > th,
  27. .table-bordered > tbody > tr > th,
  28. .table-bordered > tfoot > tr > th,
  29. .table-bordered > thead > tr > td,
  30. .table-bordered > tbody > tr > td,
  31. .table-bordered > tfoot > tr > td {
  32. border-style: solid;
  33. border-width: 1px 0 0 0;
  34. }
  35. .btn,
  36. .form-control,
  37. .modal-content {
  38. border-radius: 0 !important;
  39. }
  40. .btn-shortcut {
  41. font-size: 12px !important;
  42. padding: 0 26px;
  43. }
  44. .show {
  45. display: inline-block !important;
  46. }
  47. .tr-selected td,
  48. .tr-selected {
  49. color: #000 !important;
  50. background: #fffdf4 !important;
  51. }
  52. </style>
  53. {% endblock head %}
  54. {% block content %}
  55. <script type="text/javascript">
  56. var page = 1;
  57. var page_size = 10;
  58. var keyword = '';
  59. var cur_url = '/guests';
  60. $(document).ready(function() {
  61. page_size = $('#page_size').val();
  62. cur_url = '/guests?page=' + page + '&page_size=' + page_size;
  63. var last_ready = null;
  64. $('#content_search').keydown(function() {
  65. if (last_ready !== null) {
  66. clearTimeout(last_ready);
  67. }
  68. last_ready = setTimeout(function () {
  69. keyword = $('#content_search').val();
  70. cur_url = '/guests?page=' + page + '&page_size=' + page_size;
  71. if (keyword.length > 0) {
  72. cur_url = '/guests?page=' + page + '&page_size=' + page_size + '&keyword=' + keyword;
  73. }
  74. window.location.href=cur_url;
  75. }, 1000);
  76. });
  77. $('#page_size').change(function () {
  78. keyword = $('#content_search').val();
  79. page_size = $('#page_size').val();
  80. cur_url = '/guests?page=' + page + '&page_size=' + page_size;
  81. if (keyword.length > 0) {
  82. cur_url = '/guests?page=' + page + '&page_size=' + page_size + '&keyword=' + keyword;
  83. }
  84. window.location.href=cur_url;
  85. });
  86. $("thead").on('click', ".all_selector", function() {
  87. if ($("thead .all_selector").is(':checked')) {
  88. $("tbody tr").find('td input[type="checkbox"]:eq(0)').prop('checked', true);
  89. $(".all_selector").prop('checked', true);
  90. } else {
  91. $("tbody tr").find('td input[type="checkbox"]:eq(0)').prop('checked', false);
  92. $(".all_selector").prop('checked', false);
  93. }
  94. select_item_action();
  95. });
  96. $("tfoot").on('click', ".all_selector", function() {
  97. if ($("tfoot .all_selector").is(':checked')) {
  98. $("tbody tr").find('td input[type="checkbox"]:eq(0)').prop('checked', true);
  99. $(".all_selector").prop('checked', true);
  100. } else {
  101. $("tbody tr").find('td input[type="checkbox"]:eq(0)').prop('checked', false);
  102. $(".all_selector").prop('checked', false);
  103. }
  104. select_item_action();
  105. });
  106. $("tbody tr").on('click', "input[type='checkbox']", function() {
  107. select_item_action();
  108. });
  109. $('body').addClass('add-transition');
  110. $('.add-page-transition').on('click', function(){
  111. var transAttr = $(this).attr('data-transition');
  112. $('.add-transition').attr('class', 'add-transition');
  113. $('.add-transition').addClass(transAttr);
  114. });
  115. $('#edit_remark_modal').on('show.bs.modal', function (me) {
  116. $('#instance_uuid').val($(me.relatedTarget).parent().parent().prev().prev().text());
  117. $('#edit_remark').val($(me.relatedTarget).prev().text());
  118. })
  119. });
  120. function refresh() {
  121. keyword = $('#content_search').val();
  122. page = $('#pagination li.active a').text();
  123. page_size = $('#page_size').val();
  124. cur_url = '/guests?page=' + page + '&page_size=' + page_size;
  125. if (keyword.length > 0) {
  126. cur_url = '/guests?page=' + page + '&page_size=' + page_size + '&keyword=' + keyword;
  127. }
  128. window.location.href=cur_url;
  129. }
  130. function row_onmouseover(me) {
  131. $(me).find(".edit_remark_trigger").css('display','inline-flex');
  132. }
  133. function row_onmouseout(me) {
  134. $(me).find(".edit_remark_trigger").css('display','none');
  135. }
  136. function remark_update(me) {
  137. var uuid = $('#instance_uuid').val();
  138. var remark = $('#edit_remark').val();
  139. $('#edit_remark_modal').modal('hide');
  140. $.ajax({
  141. url : '/api/guest/' + uuid,
  142. type : 'PATCH',
  143. contentType: "application/json; charset=utf-8",
  144. data : JSON.stringify({
  145. remark: remark
  146. }),
  147. error : function() {
  148. alter_danger('实例备注更新失败!');
  149. },
  150. success : function() {
  151. $('#guest_list tbody').find('td:contains(' + uuid + ')').next().next().find('p').text(remark);
  152. alter_success('实例备注更新成功!');
  153. }
  154. });
  155. }
  156. function get_selected_element(checked) {
  157. if (checked === null) {
  158. checked = true;
  159. }
  160. if (checked) {
  161. return $('tbody :checked');
  162. } else {
  163. return $('tbody input:not(:checked)');
  164. }
  165. }
  166. function highlight_selected_element() {
  167. var selected_element = get_selected_element(true);
  168. var no_selected_element = get_selected_element(false);
  169. selected_element.each(function(i, e) {
  170. $(e).parent().parent().toggleClass('tr-selected', true);
  171. });
  172. no_selected_element.each(function(i, e) {
  173. $(e).parent().parent().toggleClass('tr-selected', false);
  174. });
  175. }
  176. function shortcut_bar_enable() {
  177. var selected_element = get_selected_element(true);
  178. if (selected_element.length > 0) {
  179. $('.btn-shortcut').toggleClass('disabled', false);
  180. } else {
  181. $('.btn-shortcut').toggleClass('disabled', true);
  182. }
  183. }
  184. function select_item_action() {
  185. highlight_selected_element();
  186. shortcut_bar_enable();
  187. }
  188. function boot(uuids) {
  189. $.ajax({
  190. url : '/api/guests/_boot/' + uuids.join(','),
  191. type : 'PUT',
  192. contentType: "application/json; charset=utf-8",
  193. error : function() {
  194. alter_danger('实例启动指令发送失败!');
  195. },
  196. success : function() {
  197. alter_success('实例启动指令发送成功!');
  198. }
  199. });
  200. }
  201. function reboot(uuids) {
  202. $.ajax({
  203. url : '/api/guests/_reboot/' + uuids.join(','),
  204. type : 'PUT',
  205. contentType: "application/json; charset=utf-8",
  206. error : function() {
  207. alter_danger('实例重启指令发送失败!');
  208. },
  209. success : function() {
  210. alter_success('实例重启指令发送成功!');
  211. }
  212. });
  213. }
  214. function force_reboot(uuids) {
  215. $.ajax({
  216. url : '/api/guests/_force_reboot/' + uuids.join(','),
  217. type : 'PUT',
  218. contentType: "application/json; charset=utf-8",
  219. error : function() {
  220. alter_danger('实例强制重启指令发送失败!');
  221. },
  222. success : function() {
  223. alter_success('实例强制重启指令发送成功!');
  224. }
  225. });
  226. }
  227. function shutdown(uuids) {
  228. $.ajax({
  229. url : '/api/guests/_shutdown/' + uuids.join(','),
  230. type : 'PUT',
  231. contentType: "application/json; charset=utf-8",
  232. error : function() {
  233. alter_danger('实例停止指令发送失败!');
  234. },
  235. success : function() {
  236. alter_success('实例停止指令发送成功!');
  237. }
  238. });
  239. }
  240. function force_shutdown(uuids) {
  241. $.ajax({
  242. url : '/api/guests/_force_shutdown/' + uuids.join(','),
  243. type : 'PUT',
  244. contentType: "application/json; charset=utf-8",
  245. error : function() {
  246. alter_danger('实例强制停止指令发送失败!');
  247. },
  248. success : function() {
  249. alter_success('实例强制停止指令发送成功!');
  250. }
  251. });
  252. }
  253. function suspend(uuids) {
  254. $.ajax({
  255. url : '/api/guests/_suspend/' + uuids.join(','),
  256. type : 'PUT',
  257. contentType: "application/json; charset=utf-8",
  258. error : function() {
  259. alter_danger('实例暂停指令发送失败!');
  260. },
  261. success : function() {
  262. alter_success('实例暂停指令发送成功!');
  263. }
  264. });
  265. }
  266. function resume(uuids) {
  267. $.ajax({
  268. url : '/api/guests/_resume/' + uuids.join(','),
  269. type : 'PUT',
  270. contentType: "application/json; charset=utf-8",
  271. error : function() {
  272. alter_danger('实例恢复指令发送失败!');
  273. },
  274. success : function() {
  275. alter_success('实例恢复指令发送成功!');
  276. }
  277. });
  278. }
  279. function remove(uuids) {
  280. $.ajax({
  281. url : '/api/guests/' + uuids.join(','),
  282. type : 'DELETE',
  283. contentType: "application/json; charset=utf-8",
  284. error : function() {
  285. alter_danger('实例删除指令发送失败!');
  286. },
  287. success : function() {
  288. alter_success('实例删除指令发送成功!');
  289. }
  290. });
  291. }
  292. function boot_at(me) {
  293. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  294. boot([uuid]);
  295. }
  296. function reboot_at(me) {
  297. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  298. reboot([uuid]);
  299. }
  300. function force_reboot_at(me) {
  301. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  302. force_reboot([uuid]);
  303. }
  304. function shutdown_at(me) {
  305. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  306. shutdown([uuid]);
  307. }
  308. function force_shutdown_at(me) {
  309. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  310. force_shutdown([uuid]);
  311. }
  312. function suspend_at(me) {
  313. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  314. suspend([uuid]);
  315. }
  316. function resume_at(me) {
  317. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  318. resume([uuid]);
  319. }
  320. function delete_at(me) {
  321. var uuid = $(me).parent().parent().parent().parent().parent().children()[0].textContent;
  322. remove([uuid]);
  323. }
  324. function get_selected_uuids() {
  325. var selected_element = get_selected_element(true);
  326. var uuids = [];
  327. selected_element.each(function(i, e) {
  328. var uuid = $(e).parent().prev().text();
  329. uuids.push(uuid);
  330. });
  331. return uuids;
  332. }
  333. function get_checked_uuids() {
  334. var uuids = get_selected_uuids();
  335. if (uuids.length < 1) {
  336. alter_warning('未选择任何可操作的实例!');
  337. return false;
  338. }
  339. return uuids;
  340. }
  341. function batch_boot() {
  342. var uuids = get_checked_uuids();
  343. if (uuids) {
  344. boot(uuids);
  345. }
  346. }
  347. function batch_reboot() {
  348. var uuids = get_checked_uuids();
  349. if (uuids) {
  350. reboot(uuids);
  351. }
  352. }
  353. function batch_force_reboot() {
  354. var uuids = get_checked_uuids();
  355. if (uuids) {
  356. force_reboot(uuids);
  357. }
  358. }
  359. function batch_shutdown() {
  360. var uuids = get_checked_uuids();
  361. if (uuids) {
  362. shutdown(uuids);
  363. }
  364. }
  365. function batch_force_shutdown() {
  366. var uuids = get_checked_uuids();
  367. if (uuids) {
  368. force_shutdown(uuids);
  369. }
  370. }
  371. function batch_suspend() {
  372. var uuids = get_checked_uuids();
  373. if (uuids) {
  374. suspend(uuids);
  375. }
  376. }
  377. function batch_resume() {
  378. var uuids = get_checked_uuids();
  379. if (uuids) {
  380. resume(uuids);
  381. }
  382. }
  383. function batch_delete() {
  384. var uuids = get_checked_uuids();
  385. if (uuids) {
  386. remove(uuids);
  387. }
  388. }
  389. </script>
  390. <div class="panel">
  391. <div class="panel-body">
  392. <h3 class="title-hero" style="font-size: 24px;">
  393. 虚拟机实例
  394. </h3>
  395. <div>
  396. <div id="datatable-row-highlight_wrapper" class="dataTables_wrapper form-inline">
  397. <div class="row" style="padding: 10px 10px 10px 0; width: 100%;">
  398. <div class="col-sm-12" style="padding-right: 0;">
  399. <div id="datatable-row-highlight_filter" class="dataTables_filter" style="display: inline-block;">
  400. <input id="content_search" type="search" class="form-control" placeholder="模糊搜索..." value="{%- if keyword -%} {{ keyword }} {%- endif -%}" style="margin-left: 0; border-radius: 0;">
  401. </div>
  402. <div class="pull-right">
  403. <button class="btn btn-default" onclick="refresh()" style="border-radius: 0;"><span class="glyph-icon icon-elusive-arrows-cw"></span></button>
  404. <a class="btn btn-info add-page-transition" href="/guests/create" data-transition="pt-page-moveFromRight-init" style="border-radius: 0; padding-left: 40px; padding-right: 40px;">创建实例</a>
  405. </div>
  406. </div>
  407. </div>
  408. <table id="guest_list" class="table table-bordered table-hover" cellspacing="0" width="100%" role="grid"
  409. style="width: 100%; margin-bottom: 0; border-bottom-width: 0;">
  410. <thead>
  411. <tr role="row">
  412. <th style="display: none;">UUID</th>
  413. <th><input class="all_selector" title="选取所有" type="checkbox"></th>
  414. <th width="180px;">名称</th>
  415. <th></th>
  416. <th>状态</th>
  417. <th>计算节点</th>
  418. <th>配置</th>
  419. <th>IP</th>
  420. <th>密码</th>
  421. <th>创建时间</th>
  422. <th>操作</th>
  423. </tr>
  424. </thead>
  425. <tbody>
  426. {% for item in guests_ret.data %}
  427. <tr role="row" class="odd" onmouseover="row_onmouseover(this);" onmouseout="row_onmouseout(this);">
  428. <td style="display: none;">{{ item.uuid }}</td>
  429. <td><input title="选中" type="checkbox"></td>
  430. <td>
  431. <div>
  432. <a href="javascript:;">{{ item.name }}</a>
  433. </div>
  434. <div>
  435. <p style="display: inline-block;">{{ item.remark }}</p>
  436. <a href="javascript:;" class="edit_remark_trigger" data-toggle="modal" data-target="#edit_remark_modal" style="display: none; float: right;">
  437. <span class="glyph-icon icon-elusive-pencil" style="width: 20px; height: 20px; margin-left: 10px; border-radius: 0; border: 1px solid rgb(220, 233, 255); background-color: #ffffff;"></span>
  438. </a>
  439. </div>
  440. </td>
  441. <td><span class="{{ os_template_mapping_by_id[item.os_template_id].icon }}"></span></td>
  442. <td>{{ format_guest_status(item.status)|safe }}</td>
  443. <td>{{ item.on_host }}</td>
  444. <td>CPU :&nbsp;&nbsp;{{ item.cpu }}&nbsp;核<br />内存 :&nbsp;&nbsp;{{ item.memory }}&nbsp;GB</td>
  445. <td>{{ item.ip }}</td>
  446. <td>{{ item.password }}</td>
  447. <td>{{ format_datetime_by_tus(item.create_time) }}</td>
  448. <td>
  449. <div class="dropdown inline-block">
  450. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
  451. 更多
  452. </a>
  453. <ul class="dropdown-menu">
  454. <li class="{% if item.status not in [4, 5, 6] %} disabled {% endif %}">
  455. <a href="javascript:;" onclick="boot_at(this);">启动</a>
  456. </li>
  457. <li class="{% if item.status not in [1] %} disabled {% endif %}">
  458. <a href="javascript:;" onclick="reboot_at(this);">重启</a>
  459. </li>
  460. <li class="{% if item.status not in [1] %} disabled {% endif %}">
  461. <a href="javascript:;" onclick="force_reboot_at(this);">强制重启</a>
  462. </li>
  463. <li class="{% if item.status not in [1] %} disabled {% endif %}">
  464. <a href="javascript:;" onclick="shutdown_at(this);">停止</a>
  465. </li>
  466. <li class="{% if item.status not in [1] %} disabled {% endif %}">
  467. <a href="javascript:;" onclick="force_shutdown_at(this);">强制停止</a>
  468. </li>
  469. <li class="divider"></li>
  470. <li class="{% if item.status not in [1] %} disabled {% endif %}">
  471. <a href="javascript:;" onclick="suspend_at(this);">暂停</a>
  472. </li>
  473. <li class="{% if item.status not in [3] %} disabled {% endif %}">
  474. <a href="javascript:;" onclick="resume_at(this);">恢复</a>
  475. </li>
  476. <li class="divider"></li>
  477. <li class="">
  478. <a href="javascript:;">远程连接</a>
  479. </li>
  480. <li class="divider"></li>
  481. <li class="">
  482. <a href="javascript:;">密码重置</a>
  483. </li>
  484. <li class="{% if item.status not in [1, 3, 4, 5, 6] %} disabled {% endif %}">
  485. <a href="javascript:;">迁移到</a>
  486. </li>
  487. <li class="divider"></li>
  488. <li class="{% if item.status not in [4, 5, 6, 255] %} disabled {% endif %}">
  489. <a href="javascript:;" onclick="delete_at(this);">删除</a>
  490. </li>
  491. </ul>
  492. </div>
  493. </td>
  494. </tr>
  495. {% endfor %}
  496. </tbody>
  497. </table>
  498. <table class="table table-bordered" style="border-top-width: 0; z-index: 99; position: sticky; bottom: 0;">
  499. <tfoot>
  500. <tr style="height: 70px;">
  501. <th><input type="checkbox" title="选取所有" class="all_selector"></th>
  502. <th>
  503. <div class="row">
  504. <div class="col-sm-6">
  505. <button class="btn btn-default btn-shortcut disabled" onclick="batch_boot();">启动</button>
  506. <button class="btn btn-default btn-shortcut disabled" onclick="batch_reboot();">重启</button>
  507. <button class="btn btn-default btn-shortcut disabled" onclick="batch_shutdown();">停止</button>
  508. <button class="btn btn-default btn-shortcut disabled" onclick="batch_suspend();">暂停</button>
  509. <button class="btn btn-default btn-shortcut disabled" onclick="batch_resume();">恢复</button>
  510. <div class="dropup inline-block">
  511. <button href="javascript:;" class="dropdown-toggle btn btn-default btn-shortcut disabled" data-toggle="dropdown">
  512. 更多
  513. </button>
  514. <ul class="dropdown-menu" style="width: 60px;">
  515. <li>
  516. <a href="javascript:;" onclick="batch_delete();">删除</a>
  517. </li>
  518. <li class="divider"></li>
  519. <li>
  520. <a href="javascript:;">迁移到</a>
  521. </li>
  522. <li>
  523. <a href="javascript:;">密码重置</a>
  524. </li>
  525. <li class="divider"></li>
  526. <li>
  527. <a href="javascript:;" onclick="batch_force_shutdown();">强制停止</a>
  528. </li>
  529. <li>
  530. <a href="javascript:;" onclick="batch_force_reboot();">强制重启</a>
  531. </li>
  532. </ul>
  533. </div>
  534. </div>
  535. <div class="col-sm-3" style="font-size: 12px; padding-top: 5px; text-align: right;">
  536. 共有{{ guests_ret.paging.total }}条,每页显示:
  537. <select id="page_size" name="datatable-row-highlight_length" title="page_size" class="form-control" style="height: 22px; vertical-align: baseline;">
  538. <option value="1" {% if page_size == 1 %} selected {% endif %}>1</option>
  539. <option value="2" {% if page_size == 2 %} selected {% endif %}>2</option>
  540. <option value="10" {% if page_size == 10 %} selected {% endif %}>10</option>
  541. <option value="20" {% if page_size == 20 %} selected {% endif %}>20</option>
  542. <option value="50" {% if page_size == 50 %} selected {% endif %}>50</option>
  543. </select>&nbsp;&nbsp;条
  544. </div>
  545. <div class="col-sm-3" style="text-align: left;">
  546. <div class="dataTables_paginate paging_bootstrap" id="datatable-row-highlight_paginate">
  547. <ul id="pagination" class="pagination">
  548. <li class="{% if page == 1 %} disabled {% endif %}">
  549. <a href="/guests?page={{ page - 1 }}&page_size={{ page_size }}{% if keyword %} &keyword={{ keyword }} {% endif %}">«</a>
  550. </li>
  551. {% for item in pages %}
  552. <li class="{% if item == page %} active {% endif %}">
  553. <a href="/guests?page={{ item }}&page_size={{ page_size }}{% if keyword %} &keyword={{ keyword }} {% endif %}">{{ item }}</a>
  554. </li>
  555. {% endfor %}
  556. <li class="{% if page == last_page %} disabled {% endif %}">
  557. <a href="/guests?page={{ page + 1 }}&page_size={{ page_size }}{% if keyword %} &keyword={{ keyword }} {% endif %}">»</a>
  558. </li>
  559. </ul>
  560. </div>
  561. </div>
  562. </div>
  563. </th>
  564. </tr>
  565. </tfoot>
  566. </table>
  567. </div>
  568. </div>
  569. </div>
  570. </div>
  571. <div class="modal" id="edit_remark_modal" tabindex="-1" role="dialog" style="margin-top: 100px;">
  572. <div class="modal-dialog modal-sm">
  573. <div class="modal-content">
  574. <div class="modal-header">
  575. <h4 class="modal-title">编辑实例名称:</h4>
  576. </div>
  577. <div class="modal-body">
  578. <input id="instance_uuid" title="实例 UUID" class="form-control" name="uuid" hidden>
  579. <input id="edit_remark" title="实例名称" class="form-control" name="remark">
  580. </div>
  581. <div class="modal-footer">
  582. <button type="button" class="btn btn-sm btn-primary" onclick="remark_update();">确定</button>
  583. <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
  584. </div>
  585. </div>
  586. </div>
  587. </div>
  588. {% endblock content %}