info.ejs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <% include ./sub_menu.ejs %>
  2. <div class="panel-content" id="app">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>账号资料</h2>
  6. </div>
  7. </div>
  8. <div class="content-wrap">
  9. <div class="c-body">
  10. <div class="row m-0">
  11. <div class="col-5 my-3">
  12. <!--账号资料-->
  13. <form action="/profile/save" method="post" id="base-form">
  14. <input-text label="账号" value="<%= accountData.account %>" readonly="readonly"></input-text>
  15. <input-text label="姓名" value="<%= accountData.name %>" placeholder="请输入姓名" name="name"></input-text>
  16. <input-text label="单位" value="<%= accountData.company %>" name="company"></input-text>
  17. <input-text label="角色/职称" value="<%= accountData.role %>" name="role"></input-text>
  18. <input-text label="手机" value="<%= accountData.mobile %>" name="mobile" maxlength="11"></input-text>
  19. <input-text label="电话" value="<%= accountData.telephone %>" name="telephone"></input-text>
  20. <input type="hidden" name="_csrf" value="<%= ctx.csrf %>">
  21. <button type="submit" class="btn btn-primary" id="base-submit">确认修改</button>
  22. </form>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. <%- baseJsValidator %>
  29. <script type="text/javascript">
  30. new Vue({
  31. el: '#app',
  32. });
  33. const csrf = '<%= ctx.csrf %>';
  34. </script>
  35. <script type="text/javascript" src="/public/js/profile.js"></script>