edit.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Full_name')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-full_name" class="form-control" name="row[full_name]" type="text" value="{$row.full_name|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <select id="c-sex" class="form-control selectpicker" name="row[sex]">
  28. {foreach name="sexList" item="vo"}
  29. <option value="{$key}" {in name="key" value="$row.sex"}selected{/in}>{$vo}</option>
  30. {/foreach}
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Vocation')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-vocation" class="form-control" name="row[vocation]" type="text" value="{$row.vocation|htmlentities}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Education')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <select id="c-education" class="form-control selectpicker" name="row[education]">
  56. {foreach name="educationList" item="vo"}
  57. <option value="{$key}" {in name="key" value="$row.education"}selected{/in}>{$vo}</option>
  58. {/foreach}
  59. </select>
  60. </div>
  61. </div>
  62. <!--<div class="form-group">-->
  63. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>-->
  64. <!-- <div class="col-xs-12 col-sm-8">-->
  65. <!-- <select id="c-category_ids" class="form-control selectpicker" multiple onchange="selectChange()">-->
  66. <!-- <option value="39" {in name="39" value="$row.category_ids"}selected{/in}>眼角膜</option>-->
  67. <!-- <option value="38" {in name="38" value="$row.category_ids"}selected{/in}>全部器官</option>-->
  68. <!-- <option value="31" {in name="31" value="$row.category_ids"}selected{/in}>肾脏</option>-->
  69. <!-- <option value="34" {in name="34" value="$row.category_ids"}selected{/in}>肺脏</option>-->
  70. <!-- <option value="32" {in name="32" value="$row.category_ids"}selected{/in}>肝脏</option>-->
  71. <!-- <option value="33" {in name="33" value="$row.category_ids"}selected{/in}>心脏</option>-->
  72. <!-- <option value="35" {in name="35" value="$row.category_ids"}selected{/in}>胰腺</option>-->
  73. <!-- <option value="36" {in name="36" value="$row.category_ids"}selected{/in}>小肠</option>-->
  74. <!-- <option value="23" {in name="23" value="$row.category_ids"}selected{/in}>遗体</option>-->
  75. <!-- <option value="37" {in name="37" value="$row.category_ids"}selected{/in}>其他</option>-->
  76. <!-- </select>-->
  77. <!-- <input style="display:none" type="text/submit/hidden/button/image" id='aaaa' name="row[category_ids]" value="" />-->
  78. <!-- </div>-->
  79. <!--</div>-->
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-category_ids" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"donate"}' class="form-control selectpage" name="row[category_ids]" type="text" value="{$row.category_ids|htmlentities}" data-multiple="true">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-tel" class="form-control" name="row[tel]" type="text" value="{$row.tel|htmlentities}">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Executor')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-executor" class="form-control" name="row[executor]" type="text" value="{$row.executor|htmlentities}">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Executor_id_card')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-executor_id_card" class="form-control" name="row[executor_id_card]" type="text" value="{$row.executor_id_card|htmlentities}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Executor_tel')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-executor_tel" class="form-control" name="row[executor_tel]" type="text" value="{$row.executor_tel|htmlentities}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Executor_mobile')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <input id="c-executor_mobile" class="form-control" name="row[executor_mobile]" type="text" value="{$row.executor_mobile|htmlentities}">
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <div class="radio">
  126. {foreach name="statusList" item="vo"}
  127. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  128. {/foreach}
  129. </div>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <input id="c-SN" class="form-control" name="row[SN]" type="text" value="{$row.SN|htmlentities}">
  136. </div>
  137. </div>
  138. <div class="form-group layer-footer">
  139. <label class="control-label col-xs-12 col-sm-2"></label>
  140. <div class="col-xs-12 col-sm-8">
  141. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  142. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  143. </div>
  144. </div>
  145. </form>