SaveInfo.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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/User/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/User/Index')}}">
  9. <legend>
  10. <span class="fs-16">
  11. <if condition="empty($data['id'])">
  12. {{:L('user_add_name')}}
  13. <else />
  14. {{:L('user_edit_name')}}
  15. </if>
  16. </span>
  17. <a href="{{:U('Admin/User/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('user_nickname_name')}}</label>
  21. <input type="text" name="nickname" placeholder="{{:L('user_nickname_name')}}" maxlength="16" data-validation-message="{{:L('user_nickname_format')}}" class="am-radius" <notempty name="data"> value="{{$data.nickname}}"</notempty> />
  22. </div>
  23. <div class="am-form-group">
  24. <label>{{:L('user_login_pwd_name')}}</label>
  25. <input type="password" name="pwd" placeholder="{{:L('user_login_pwd_name')}}" pattern="{{:L('common_regex_pwd')}}" data-validation-message="{{:L('user_login_pwd_format')}}" class="am-radius" />
  26. </div>
  27. <div class="am-form-group">
  28. <label>{{:L('common_mobile_name')}}</label>
  29. <input type="text" name="mobile" class="am-radius" placeholder="{{:L('common_mobile_name')}}" pattern="{{:L('common_regex_mobile')}}" data-validation-message="{{:L('common_mobile_format_error')}}" <notempty name="data"> value="{{$data.mobile}}"</notempty> />
  30. </div>
  31. <div class="am-form-group">
  32. <label>{{:L('common_email_name')}}</label>
  33. <input type="email" name="email" class="am-radius" placeholder="{{:L('common_email_name')}}" data-validation-message="{{:L('common_email_format_error')}}" <notempty name="data"> value="{{$data.email}}"</notempty> />
  34. </div>
  35. <include file="Lib/Gender" />
  36. <div class="am-form-group">
  37. <label>{{:L('user_birthday_name')}}</label>
  38. <input type="text" name="birthday" class="am-radius" placeholder="{{:L('user_birthday_name')}}" pattern="{{:L('common_regex_birthday')}}" data-validation-message="{{:L('user_birthday_format')}}" <notempty name="data"> value="{{$data.birthday}}" </notempty> data-am-datepicker="{format: 'yyyy-mm-dd', viewMode: 'years'}" readonly />
  39. </div>
  40. <include file="Lib/UserState" />
  41. <div class="am-form-group">
  42. <label>{{:L('user_signature_name')}}</label>
  43. <textarea rows="3" maxlength="168" name="signature" class="am-radius" placeholder="{{:L('user_signature_name')}}" data-validation-message="{{:L('user_signature_format')}}"><present name="data">{{$data.signature}}</present></textarea>
  44. </div>
  45. <div class="am-form-group">
  46. <label>{{:L('user_describe_name')}}</label>
  47. <textarea rows="5" maxlength="255" name="describe" class="am-radius" placeholder="{{:L('user_describe_name')}}" data-validation-message="{{:L('user_describe_format')}}"><present name="data">{{$data.describe}}</present></textarea>
  48. </div>
  49. <div class="am-form-group">
  50. <input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"</notempty> />
  51. <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>
  52. </div>
  53. </form>
  54. <!-- form end -->
  55. </div>
  56. </div>
  57. <!-- right content end -->
  58. <!-- footer start -->
  59. <include file="Public/Footer" />
  60. <!-- footer end -->