SaveInfo.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- form start -->
  8. <form class="am-form form-validation view-save" action="{{:U('Admin/Teacher/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/Teacher/Index')}}">
  9. <legend>
  10. <span class="fs-16">
  11. <if condition="empty($data['id'])">
  12. {{:L('teacher_add_name')}}
  13. <else />
  14. {{:L('teacher_edit_name')}}
  15. </if>
  16. </span>
  17. <a href="{{:U('Admin/Teacher/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
  18. </legend>
  19. <div class="am-form-group">
  20. <label>{{:L('teacher_username_text')}}</label>
  21. <input type="text" name="username" placeholder="{{:L('teacher_username_text')}}" minlength="2" maxlength="16" data-validation-message="{{:L('teacher_username_format')}}" class="am-radius" <notempty name="data"> value="{{$data.username}}"</notempty> required />
  22. </div>
  23. <div class="am-form-group">
  24. <label>{{:L('common_view_id_card_text')}}</label>
  25. <input type="text" name="id_card" placeholder="{{:L('common_view_id_card_text')}}" pattern="{{:L('common_regex_id_card')}}" data-validation-message="{{:L('common_view_id_card_format')}}" class="am-radius" <notempty name="data"> value="{{$data.id_card}}" disabled</notempty> required />
  26. </div>
  27. <include file="Lib/Gender" />
  28. <div class="am-form-group">
  29. <label>{{:L('teacher_birthday_text')}}</label>
  30. <input type="text" name="birthday" class="am-radius" placeholder="{{:L('teacher_birthday_text')}}" pattern="{{:L('common_regex_birthday')}}" data-validation-message="{{:L('teacher_birthday_format')}}" <notempty name="data"> value="{{$data.birthday}}" </notempty> data-am-datepicker="{format: 'yyyy-mm-dd', viewMode: 'years'}" readonly required />
  31. </div>
  32. <div class="am-form-group">
  33. <label>{{:L('common_address_text')}}</label>
  34. <input type="text" placeholder="{{:L('common_address_text')}}" name="address" data-validation-message="{{:L('common_address_format')}}" class="am-radius" <notempty name="data"> value="{{$data.address}}"</notempty> />
  35. </div>
  36. <div class="am-form-group">
  37. <label>{{:L('common_mobile_name')}}</label>
  38. <input type="text" placeholder="{{:L('common_mobile_name')}}" name="mobile" pattern="{{:L('common_regex_mobile')}}" data-validation-message="{{:L('common_mobile_format_error')}}" class="am-radius" <notempty name="data"> value="{{$data.mobile}}"</notempty> required />
  39. </div>
  40. <div class="am-form-group">
  41. <label>{{:L('common_view_tel_name')}}</label>
  42. <input type="text" placeholder="{{:L('common_view_tel_name')}}" name="tel" pattern="{{:L('common_regex_tel')}}" data-validation-message="{{:L('common_view_tel_error')}}" class="am-radius" <notempty name="data"> value="{{$data.tel}}"</notempty> />
  43. </div>
  44. <div class="am-form-group">
  45. <label>{{:L('common_email_name')}}</label>
  46. <input type="text" placeholder="{{:L('common_email_name')}}" name="email" pattern="{{:L('common_regex_email')}}" data-validation-message="{{:L('common_email_format_error')}}" maxlength="60" class="am-radius" <notempty name="data"> value="{{$data.email}}"</notempty> />
  47. </div>
  48. <include file="Lib/TeacherState" />
  49. <div class="am-form-group">
  50. <label>{{:L('teacher_subject_text')}}</label>
  51. <div class="view-checkbox-list">
  52. <foreach name="subject_list" key="k" item="v">
  53. <label class="am-checkbox-inline <if condition="$k neq count($subject_list)-1">m-r-20</if>">
  54. <input type="checkbox" value="{{$v.id}}" name="subject_id" minchecked="1" data-validation-message="{{:L('teacher_subject_format')}}" <if condition="!empty($data['subject_id']) and in_array($v['id'], $data['subject_id'])">checked</if> data-am-ucheck required />{{$v.name}}
  55. </label>
  56. </foreach>
  57. </div>
  58. </div>
  59. <div class="am-form-group">
  60. <input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"</notempty>" />
  61. <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
  62. </div>
  63. </form>
  64. <!-- form end -->
  65. </div>
  66. </div>
  67. <!-- right content end -->
  68. <!-- footer start -->
  69. <include file="Public/Footer" />
  70. <!-- footer end