147 lines
13 KiB
XML
147 lines
13 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<odoo>
|
||
|
|
<template id="auth_signup.fields" name="Auth Signup/ResetPassword form fields">
|
||
|
|
|
||
|
|
<div t-attf-class="text-center" style="margin:5px 0 33px 0;">
|
||
|
|
<b style="font-family:Khmer OS Muol Light; src:url(../fonts/KhmerOSmuollight.ttf) ;format('truetype'); font-size:17px;color:#15599a">បង្កើតគណនី</b>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;margin-bottom:18px;">
|
||
|
|
<label for="login" class="control-label" style="color:#15599a;">អ៊ីម៉ែល ឬលេខកូដអាហារូបករណ៍</label>
|
||
|
|
<input type="text" name="login" t-att-value="login" id="login" class="form-control" autofocus="autofocus"
|
||
|
|
autocapitalize="off" required="required" placeholder="អុីម៉ែល" t-att-readonly="'readonly' if only_passwords else None"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-name" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;margin-bottom:18x;">
|
||
|
|
<label for="name" class="control-label" style="color:#15599a;">ឈ្មេាះរបស់អ្នក</label>
|
||
|
|
<input type="text" name="name" t-att-value="name" id="name" class="form-control" placeholder="ឧទាហរណ៍:ជ័យ មង្គល"
|
||
|
|
required="required" t-att-readonly="'readonly' if only_passwords else None"
|
||
|
|
t-att-autofocus="'autofocus' if login and not only_passwords else None" />
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-password" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;margin-bottom:15px;margin-top:18px;">
|
||
|
|
<label for="password" class="control-label" style="color:#15599a;">ពាក្យសម្ងាត់</label>
|
||
|
|
<input type="password" name="password" id="password" class="form-control" placeholder="ពាក្យសម្ងាត់"
|
||
|
|
required="required" t-att-autofocus="'autofocus' if only_passwords else None"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-confirm_password" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;margin-bottom:18px;">
|
||
|
|
<label for="confirm_password" class="control-label" style="color:#15599a;">បញ្ជាក់ពាក្យសម្ងាត់</label>
|
||
|
|
<input type="password" name="confirm_password" placeholder="បញ្ជាក់ពាក្យសម្ងាត់" id="confirm_password" class="form-control" required="required"/>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
<!-- <template id="inherit_auth_signup" inherit_id="auth_signup.login">-->
|
||
|
|
<!-- <xpath expr="//div[hasclass('justify-content-between','mt-2','d-flex','small')]" position="replace">-->
|
||
|
|
<!-- <div class="justify-content-between mt-3 d-flex small" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:12px;">-->
|
||
|
|
<!-- <a t-if="signup_enabled" style="font-size:15px;color:#15599a;text-decoration: underline;" t-attf-href="/web/signup?{{ keep_query() }}">បង្កើតគណនី</a>-->
|
||
|
|
<!-- <a t-if="reset_password_enabled" style="font-size:15px;margin-right:7%;color:#15599a;text-decoration: underline;" t-attf-href="/web/reset_password?{{ keep_query() }}">ភ្លេចពាក្យសម្ងាត់</a>-->
|
||
|
|
<!-- <a t-attf-href="/web/preview_doc?{{ keep_query() }}" class="pull-right" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;;margin:0 0 0 10px;color:#15599a;text-decoration: underline;">ការណែនាំ</a>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- </xpath>-->
|
||
|
|
<!-- </template>-->
|
||
|
|
<!-- <template id="homepage_extend1" inherit_id="custom_template_amt.inherit_auth_signup">-->
|
||
|
|
<!-- <xpath expr="//a[@id='reset']" position='after'>-->
|
||
|
|
<!-- <a t-attf-href="/web/preview_doc?{{ keep_query() }}" class="pull-right mt-3" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;;margin:7px 0 0 25px;color:#0b83c5;text-decoration: underline;">ការណែនាំ</a>-->
|
||
|
|
<!-- </xpath>-->
|
||
|
|
<!-- </template>-->
|
||
|
|
<template id="ck_signup.verify_pin_code" name="verify_pin_code">
|
||
|
|
<t t-call="web.login_layout">
|
||
|
|
<form class="oe_reset_password_form" role="form" t-attf-action="/web/verify_pin_code" method="post">
|
||
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
||
|
|
<div class="form-group field-login">
|
||
|
|
<label for="login" class="control-label" style="color:#15599a;font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">អ៊ីម៉ែល</label>
|
||
|
|
<input type="text" name="login" t-att-value="login" id="login" class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-Pin_code">
|
||
|
|
<label for="Pin_code" class="control-label" style="color:#15599a;font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">Pin Code From Email</label>
|
||
|
|
<input type="text" name="pin_code" t-att-value="pin_code" id="pin_code" class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<!-- <div class="form-group field-x_code_name">-->
|
||
|
|
<!-- <label for="Pin_code" class="control-label" style="color:#F3F2F2;font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">Scholarship Code</label>-->
|
||
|
|
<!-- <input type="text" name="x_code_name" t-att-value="x_code_name" id="x_code_name" class="form-control"-->
|
||
|
|
<!-- autofocus="autofocus" required="required" autocapitalize="off"/>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<p class="alert alert-success" t-if="message">
|
||
|
|
<t t-esc="message"/>
|
||
|
|
</p>
|
||
|
|
<p class="alert alert-danger" t-if="error">
|
||
|
|
<t t-esc="error"/>
|
||
|
|
</p>
|
||
|
|
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<button type="submit" class="btn btn-primary pull-left" style="background-color:#330066;margin-top:5%;">ផ្ទៀងផ្ទាត់គណនី</button>
|
||
|
|
<a t-attf-href="/web/view_request_pin_code?{{ keep_query() }}" class="btn btn-link pull-right" style="color:#15599a;margin-top:5%;">ស្នើសុំ PIN CODE ថ្មី</a>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</t>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<template id="ck_signup.view_request_new_pin_code" name="view_request_new_pin_code">
|
||
|
|
<t t-call="web.login_layout">
|
||
|
|
<p class="alert alert-success" t-if="message">
|
||
|
|
<t t-esc="message"/>
|
||
|
|
<p><a t-attf-href="/web/pin_code?{{ keep_query() }}" class="btn btn-link pull-right" style="color:#15599a;">ផ្ទៀងផ្ទាត់PIN CODE</a></p>
|
||
|
|
</p>
|
||
|
|
<form class="oe_reset_password_form" role="form" t-attf-action="/web/request_new_pin_code" method="post">
|
||
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<label for="login" class="control-label" style="color:#F3F2F2;">អ៊ីម៉ែល</label>
|
||
|
|
<input type="text" name="login" t-att-value="login" id="login" class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<p class="alert alert-success" t-if="message">
|
||
|
|
<t t-esc="message"/>
|
||
|
|
</p>
|
||
|
|
<p class="alert alert-danger" t-if="error">
|
||
|
|
<t t-esc="error"/>
|
||
|
|
</p>
|
||
|
|
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<button type="submit" class="btn btn-primary pull-left" style="color:#ffff;margin-top:5%;">ស្នើប្ដូរ PIN Code</button>
|
||
|
|
<a t-attf-href="/web/login?{{ keep_query() }}" class="btn btn-link pull-right" style="color:#15599a;margin-top:5%;">ត្រឡប់ក្រោយ</a>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</t>
|
||
|
|
</template>
|
||
|
|
<!-- Change Password template-->
|
||
|
|
<template id="ck_signup.reset_password_direct" name="Reset password">
|
||
|
|
<t t-call="web.login_layout">
|
||
|
|
<form class="oe_reset_password_form" role="form" action="/web/reset_password/submit" method="post">
|
||
|
|
<div class="form-group field-name" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;margin-bottom:15x;">
|
||
|
|
<label for="name" class="control-label" style="color:#f2f5f2;">ឈ្មេាះរបស់អ្នក</label>
|
||
|
|
<input type="text" name="name" t-att-value="name" id="name" class="form-control" placeholder="ឧទាហរណ៍:ជ័យ មង្គល"
|
||
|
|
required="required" t-att-readonly="'readonly' if only_passwords else None"
|
||
|
|
t-att-autofocus="'autofocus' if login and not only_passwords else None" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<label for="user_name" class="col-form-label">អ៊ីម៉ែល ឬលេខកូដអាហារូបករណ៍</label>
|
||
|
|
<input type="text" name="user_name" t-att-value="username" id="user_name" class="form-control" autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<label for="old_password" class="col-form-label">ពាក្យសម្ងាត់ចាស់</label>
|
||
|
|
<input type="password" name="old_password" t-att-value="old_password" id="old_password"
|
||
|
|
class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<label for="new_password" class="col-form-label">ពាក្យសម្ងាត់ថ្មី</label>
|
||
|
|
<input type="password" name="new_password" t-att-value="new_password" id="new_password"
|
||
|
|
class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<div class="form-group field-login" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<label for="confirm_new_password" class="col-form-label">បញ្ជាក់ពាក្យសម្ងាត់ថ្មី</label>
|
||
|
|
<input type="password" name="confirm_new_password" t-att-value="confirm_new_password"
|
||
|
|
id="confirm_new_password" class="form-control"
|
||
|
|
autofocus="autofocus" required="required" autocapitalize="off"/>
|
||
|
|
</div>
|
||
|
|
<p class="alert alert-danger" t-if="error" role="alert">
|
||
|
|
<t t-esc="error"/>
|
||
|
|
</p>
|
||
|
|
<br/>
|
||
|
|
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||
|
|
<button type="submit" style="width:100%;" class="btn btn-primary btn-block">យល់ព្រម</button>
|
||
|
|
<div class="d-flex justify-content-between align-items-center small mt-2">
|
||
|
|
<a t-attf-href="/web/session/logout?redirect=/">ត្រឡប់ក្រោយមកទំព័រដើម</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</t>
|
||
|
|
</template>
|
||
|
|
</odoo>
|