edit.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {extend name="layout/content"}
  2. {block name="content"}
  3. <div class="ibox float-e-margins">
  4. <div class="ibox-content">
  5. <form id="hospitalInfoForm" action="/admin/nhc.hospital/upsert" method="post" target="hiddenIframe">
  6. <div class="form-horizontal">
  7. <input id="id" name="id" value="{$row.id}" type="hidden"/>
  8. <div class="row">
  9. <div class="col-sm-6">
  10. <div class="form-group">
  11. <label class="col-sm-3 control-label">名称</label>
  12. <div class="col-sm-9">
  13. <input class="form-control" id="name" name="name" value="{$row.name}"/>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-3 control-label">
  18. 是否总院
  19. </label>
  20. <div class="col-sm-9">
  21. <select class="form-control" id="isGeneral" name="isGeneral" selectVal="{$row.isGeneral}">
  22. <option value="2">否</option>
  23. <option value="1">是</option>
  24. </select>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-3 control-label">
  29. 是否启用
  30. </label>
  31. <div class="col-sm-9">
  32. <select class="form-control" id="status" name="status" selectVal="{$row.status}">
  33. <option value="1">是</option>
  34. <option value="2">否</option>
  35. </select>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="col-sm-6">
  40. <div class="form-group">
  41. <label class="col-sm-3 control-label">
  42. 医共体
  43. </label>
  44. <div class="col-sm-9">
  45. <select class="form-control" id="communityId" name="communityId" selectVal="{$row.communityId}">
  46. <option value=""></option>
  47. {volist name="$medicalCommunities" id="mc"}
  48. <option value="{$mc.id}">{$mc.name}</option>
  49. {/volist}
  50. </select>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="col-sm-3 control-label">
  55. 排序
  56. </label>
  57. <div class="col-sm-9">
  58. <input class="form-control" id="num" name="num" type="text" value="{$row.num}">
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-sm-3 control-label">
  63. 备注
  64. </label>
  65. <div class="col-sm-9">
  66. <input class="form-control" id="description" name="description" type="text" value="{$row.description}">
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="row btn-group-m-t">
  72. <div class="col-sm-12" style="text-align: center;">
  73. <button type="button" class="btn btn-sm btn-info " onclick="HospitalInfo.editSubmit()" id="ensure">
  74. <i class="fa fa-check"></i>&nbsp;提交
  75. </button>
  76. <button type="button" class="btn btn-sm btn-danger " onclick="HospitalInfo.close()" id="cancel">
  77. <i class="fa fa-eraser"></i>&nbsp;取消
  78. </button>
  79. </div>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. </div>
  85. <iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
  86. <script type="text/javascript">
  87. document.write('<script src="/static/modular/nhc/hospital/hospital_info.js?v=' + (new Date()).getTime() + '"><\/script>');
  88. </script>
  89. {/block}