中国本土应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
6.2KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="oec_theme_backend.layout" name="China Erp Web Layout" inherit_id="web.layout">
  4. <xpath expr="//title" position="replace">
  5. <t t-set="web_title" t-value="request and request.env['ir.config_parameter'].sudo().get_param('oec.system_name', '')" />
  6. <title t-esc=" web_title or '' " />
  7. </xpath>
  8. </template>
  9. <template id="lock_layou" name="Lock Layout" inherit_id="web.layout" primary="True">
  10. <xpath expr="//head/meta[last()]" position="after">
  11. <meta name="viewport" content="width=device-width, initial-scale=1" />
  12. </xpath>
  13. <xpath expr="//head/link[last()]" position="after">
  14. <!-- <t t-call-assets="web.assets_frontend" t-js="false" /> -->
  15. </xpath>
  16. <xpath expr="//head/script[@id='web.layout.odooscript']" position="after">
  17. <script t-nocache="Session information should always be up to date." type="text/javascript">
  18. odoo.__session_info__ =
  19. <t t-out="json.dumps(request.env['ir.http'].get_frontend_session_info())" />
  20. ;
  21. </script>
  22. <t t-call-assets="web.assets_frontend_minimal" t-css="false" defer_load="True" />
  23. <t t-call-assets="web.assets_lock" t-js="false" />
  24. <t t-call-assets="web.assets_lock" t-css="false" />
  25. <!-- <t t-call-assets="web.assets_frontend_lazy" t-css="false" lazy_load="True" /> -->
  26. </xpath>
  27. </template>
  28. <template id="lock" name="Lock">
  29. <t t-call="oec_theme_backend.lock_layou">
  30. <t t-set="body_classname" t-value="'o_lock_client'" />
  31. <div class="container">
  32. <div id="lock-screen" class="row">
  33. <div class="col-4 lock-card bg-light bg-opacity-75 rounded-3">
  34. <form id="lock-form" class="row g-3 lock-form needs-validation" role="form" novalidate="novalidate">
  35. <div class="col-12 text-center mt-5 lock-user-info">
  36. <img class="rounded-circle img-fluid lock-avatar" width="100" t-attf-src="/web/image/res.users/{{ lock_user.id }}/avatar_128" alt="" />
  37. <h5 class="lock-name" t-esc="lock_user.name" />
  38. <span t-if="lock_user.email" class="email" t-esc="lock_user.email" />
  39. <span t-if="lock_user.mobile" class="mobile" t-esc="lock_user.mobile" />
  40. </div>
  41. <div class="row pt-2 alert-line">
  42. <div class="alert alert-danger alert-dismissible fade show d-none" role="alert">
  43. <span class="error" />
  44. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" />
  45. </div>
  46. </div>
  47. <div class="row pt-2 alert-line">
  48. <div class="alert alert-success alert-dismissible fade show d-none" role="status">
  49. <span class="message" />
  50. </div>
  51. </div>
  52. <div class="row pt-2 countdown-line d-none">
  53. <div class="countdown_wrapper text-center">
  54. <div class="countdown_number">
  55. <span id="countdown_number" class="fw-bold fs-1" t-translation="off">
  56. 3
  57. </span>
  58. </div>
  59. <div class="countdown_unit">
  60. second
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-12 username-group d-none">
  65. <label for="login" class="form-label col-form-label col-form-label-lg">
  66. Username
  67. </label>
  68. <div class="input-group has-validation">
  69. <span class="input-group-text bg-transparent form-text" id="loginIcon">
  70. <i class="fa fa-user" />
  71. </span>
  72. <input type="text" class="form-control form-control-lg bg-transparent" id="login" aria-describedby="loginIcon" required="required" t-att-value="lock_user.login" disabled="disabled" />
  73. </div>
  74. </div>
  75. <div class="col-12 password-group">
  76. <label for="password" class="form-label">
  77. Password
  78. </label>
  79. <div class="input-group has-validation">
  80. <span class="input-group-text bg-transparent form-text" id="passwordIcon">
  81. <i class="bi bi-shield-lock" />
  82. </span>
  83. <input type="text" class="form-control form-control-lg bg-transparent" id="password" aria-describedby="passwordIcon" placeholder="Password" autocomplete="off" required="required" />
  84. <button id="show_or_hide_password" class="btn d-none">
  85. <i id="show_or_hide_password_icon" class="bi bi-eye-slash" />
  86. </button>
  87. <div class="invalid-feedback">
  88. Please input a Password!
  89. </div>
  90. </div>
  91. </div>
  92. <div class="col-12 submit-line">
  93. <button id="o_unlock_button" type="submit" class="btn rounded-circle o_unlock_button">
  94. <i class="bi bi-unlock" />
  95. Unlock
  96. </button>
  97. </div>
  98. <div class="col-12 m-2 mb-3">
  99. <a id="o_lock_logout" class="text-muted o_lock_logout" data-bs-toggle="modal" data-bs-target="#logout_modal">
  100. Not
  101. <b t-esc="lock_user.name" />
  102. ?
  103. </a>
  104. </div>
  105. </form>
  106. </div>
  107. </div>
  108. <!-- modal-dialog modal-dialog-centered tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false" aria-hidden="true" role="dialog" -->
  109. <div id="logout_modal" class="modal fade" aria-labelledby="logout_modal_title" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false" aria-hidden="true" role="dialog">
  110. <div class="modal-dialog modal-dialog-centered">
  111. <div class="modal-content">
  112. <div class="modal-content">
  113. <div class="modal-header">
  114. <h5 class="modal-title" id="logout_modal_title">
  115. Log out
  116. </h5>
  117. <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
  118. </button>
  119. </div>
  120. <div class="modal-body">
  121. <div class="text-danger fs-6">
  122. <p>
  123. Are you sure you want to log off the current user:
  124. </p>
  125. <p>
  126. <span class="fw-bold" t-esc="lock_user.name" />
  127. ?
  128. </p>
  129. <p>
  130. Will cause the current user's work content to be lost!
  131. </p>
  132. </div>
  133. </div>
  134. <div class="modal-footer">
  135. <button id="o_confirm_logout_button" type="button" class="btn btn-primary">
  136. Confirm
  137. </button>
  138. <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
  139. Cancel
  140. </button>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </t>
  148. </template>
  149. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1