add.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <form id="add-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" >
  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="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <select id="c-sex" data-rule="required" class="form-control selectpicker" name="row[sex]">
  34. {foreach name="sexList" item="vo"}
  35. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  36. {/foreach}
  37. </select>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Birth')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-birth" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birth]" type="text" value="{:date('Y-m-d')}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <div class="input-group">
  50. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text">
  51. <div class="input-group-addon no-border no-padding">
  52. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  53. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  54. </div>
  55. <span class="msg-box n-right" for="c-image"></span>
  56. </div>
  57. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Certificateimage')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <div class="input-group">
  64. <input id="c-certificateimage" class="form-control" size="50" name="row[certificateimage]" type="text">
  65. <div class="input-group-addon no-border no-padding">
  66. <span><button type="button" id="faupload-certificateimage" class="btn btn-danger faupload" data-input-id="c-certificateimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificateimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  67. <span><button type="button" id="fachoose-certificateimage" class="btn btn-primary fachoose" data-input-id="c-certificateimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  68. </div>
  69. <span class="msg-box n-right" for="c-certificateimage"></span>
  70. </div>
  71. <ul class="row list-inline faupload-preview" id="p-certificateimage"></ul>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-email" class="form-control" name="row[email]" type="text">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Work')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-work" class="form-control" name="row[work]" type="text">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Specialty')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-specialty" data-rule="required" class="form-control" name="row[specialty]" type="text">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Education')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-education" class="form-control" name="row[education]" type="text">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Is_vol')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <select id="c-is_vol" data-rule="required" class="form-control selectpicker" name="row[is_vol]">
  108. {foreach name="isVolList" item="vo"}
  109. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  110. {/foreach}
  111. </select>
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="control-label col-xs-12 col-sm-2">{:__('Is_experience')}:</label>
  116. <div class="col-xs-12 col-sm-8">
  117. <select id="c-is_experience" data-rule="required" class="form-control selectpicker" name="row[is_experience]">
  118. {foreach name="isExperienceList" item="vo"}
  119. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  120. {/foreach}
  121. </select>
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Start_hour')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <input id="c-start_hour" data-rule="required" class="form-control" name="row[start_hour]" type="text">
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="control-label col-xs-12 col-sm-2">{:__('End_hour')}:</label>
  132. <div class="col-xs-12 col-sm-8">
  133. <input id="c-end_hour" data-rule="required" class="form-control" name="row[end_hour]" type="text">
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="control-label col-xs-12 col-sm-2">{:__('Work_week')}:</label>
  138. <div class="col-xs-12 col-sm-8">
  139. <select id="c-work_week" data-rule="required" class="form-control selectpicker" multiple="" name="row[work_week][]">
  140. {foreach name="workWeekList" item="vo"}
  141. <option value="{$key}" {in name="key" value="1,2,3,4,5,6,7"}selected{/in}>{$vo}</option>
  142. {/foreach}
  143. </select>
  144. </div>
  145. </div>
  146. <div class="form-group">
  147. <label class="control-label col-xs-12 col-sm-2">{:__('Taste')}:</label>
  148. <div class="col-xs-12 col-sm-8">
  149. <input id="c-taste" data-rule="required" class="form-control" name="row[taste]" type="text">
  150. </div>
  151. </div>
  152. <div class="form-group">
  153. <label class="control-label col-xs-12 col-sm-2">{:__('Taste_title')}:</label>
  154. <div class="col-xs-12 col-sm-8">
  155. <input id="c-taste_title" class="form-control" name="row[taste_title]" type="text">
  156. </div>
  157. </div>
  158. <div class="form-group">
  159. <label class="control-label col-xs-12 col-sm-2">{:__('Speciali')}:</label>
  160. <div class="col-xs-12 col-sm-8">
  161. <input id="c-speciali" data-rule="required" class="form-control" name="row[speciali]" type="text">
  162. </div>
  163. </div>
  164. <div class="form-group">
  165. <label class="control-label col-xs-12 col-sm-2">{:__('Speciali_title')}:</label>
  166. <div class="col-xs-12 col-sm-8">
  167. <input id="c-speciali_title" class="form-control" name="row[speciali_title]" type="text">
  168. </div>
  169. </div>
  170. <div class="form-group">
  171. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  172. <div class="col-xs-12 col-sm-8">
  173. <div class="radio">
  174. {foreach name="statusList" item="vo"}
  175. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  176. {/foreach}
  177. </div>
  178. </div>
  179. </div>
  180. <div class="form-group layer-footer">
  181. <label class="control-label col-xs-12 col-sm-2"></label>
  182. <div class="col-xs-12 col-sm-8">
  183. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  184. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  185. </div>
  186. </div>
  187. </form>