first push message
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="ck_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">Inherit config</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@id='access_rights']" position="after">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="intern" string="Intern"/>
|
||||
<field name="exam" string="Exam"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label string="Intern and Exam" for="exam"/>
|
||||
<div class="text-muted">
|
||||
Intern in Login Page
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -0,0 +1,27 @@
|
||||
<odoo>
|
||||
<record id="view_multi_user_creation_wizard" model="ir.ui.view">
|
||||
<field name="name">multi.user.creation.wizard.form</field>
|
||||
<field name="model">multi.user</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Multi User Creation Wizard">
|
||||
<group>
|
||||
<field name="user_data" widget="text"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string="Create Users" type="object" name="action_create_users" class="btn-primary"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_multi_user_creation_wizard" model="ir.actions.act_window">
|
||||
<field name="name">Multi User Creation Wizard</field>
|
||||
<field name="res_model">multi.user</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_multi_user_creation_wizard" name="Multi User Creation"
|
||||
parent="register_v15.menu_root_setting" action="action_multi_user_creation_wizard" groups="base.group_system"/>
|
||||
</odoo>
|
||||
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="inherit_user">
|
||||
<field name="name">res_user_inherit</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='access_rights']" position="inside">
|
||||
<group>
|
||||
<field name="groups" string="តំបន់ត្រួតពិនិត្យ"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="tree_code_spm" model="ir.ui.view">
|
||||
<field name="name">លេខកូដអាហារូបករណ៍</field>
|
||||
<field name="model">pin.spm</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<!-- <field name="reciewer"/>-->
|
||||
<field name="user_use_code"/>
|
||||
<field name="info_name"/>
|
||||
<field name="eng_name"/>
|
||||
<field name="gender"/>
|
||||
<field name="dob"/>
|
||||
<field name="id_card"/>
|
||||
<field name="phone"/>
|
||||
<field name="study_level"/>
|
||||
<field name="status"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="form_code_spm" model="ir.ui.view">
|
||||
<field name="name">លេខកូដអាហារូបករណ៍</field>
|
||||
<field name="model">pin.spm</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="name_info"/>
|
||||
<field name="email"/>
|
||||
<field name="data_rec" invisible="1"/>
|
||||
<!-- <field name="reciewer"/>-->
|
||||
<field name="user_use_code"/>
|
||||
<field name="info_name"/>
|
||||
<field name="eng_name"/>
|
||||
<field name="gender"/>
|
||||
<field name="dob"/>
|
||||
<field name="id_card"/>
|
||||
<field name="phone"/>
|
||||
<field name="study_level"/>
|
||||
<field name="create_uids"/>
|
||||
<field name="status"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="main_tree" model="ir.ui.view">
|
||||
<field name="name">List View</field>
|
||||
<field name="model">main.pin</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="data_term"/>
|
||||
<field name="requester"/>
|
||||
<!-- <field name="data_term"/>-->
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="main_form" model="ir.ui.view">
|
||||
<field name="name">Main Pin code</field>
|
||||
<field name="model">main.pin</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button type="object" name="compute_code" string="Generate Code"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="data_term"/>
|
||||
<field name="custom_group_label" invisible="1"/>
|
||||
<!-- <field name="reciewer_code" domain="[('groups_id','=',groups)]" required="1"/>-->
|
||||
<field name="requester"/>
|
||||
<field name="name" string="ឆ្នាំ"/>
|
||||
<field name="link_qr" widget="image" style="width:100px;height:120px"/>
|
||||
<field name="selection_data" required="1"/>
|
||||
<field name="school_kind" invisible="selection_data == '0'" required="selection_data == '01'"/>
|
||||
<field name="pass_percent" widget="progressbar" options="{'editable': true}" string="ចំនួនភាគរយទទួលបានអាហារូបករណ៍" invisible="selection_data == '0'"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="files" filename="file_name" colspan="2" class="oe_inline" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="pin_code_id" widget="one2many_list">
|
||||
<list>
|
||||
<field name="name" string="លេខកូដ"/>
|
||||
<field name="data_rec" invisible="1" nolabel="1"/>
|
||||
<!-- <field name="reciewer"/>-->
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_code_spm" model="ir.actions.act_window">
|
||||
<field name="name">លេខកូដអាហារូបករណ៍</field>
|
||||
<field name="res_model">pin.spm</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
<record id="action_main_spm" model="ir.actions.act_window">
|
||||
<field name="name">លេខកូដអាហារូបករណ៍</field>
|
||||
<field name="res_model">main.pin</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
<!-- <record id="action_user_info" model="ir.actions.server">-->
|
||||
<!-- <field name="name">បង្ហាញឈ្មោះអ្នកប្រើលេខកូដ</field>-->
|
||||
<!-- <field name="model_id" ref="model_pin_spm"/>-->
|
||||
<!-- <field name="binding_model_id" ref="ck_signup.model_pin_spm"/>-->
|
||||
<!-- <field name="binding_view_types">form,list</field>-->
|
||||
<!-- <field name="state">code</field>-->
|
||||
<!-- <field name="code">action=model.sudo().check_use_code()</field>-->
|
||||
<!-- </record>-->
|
||||
<menuitem name="កំណត់" id="menu_root_setting" parent="register_v15.menu_root" sequence="8" groups="register_v15.group_register_manager"/>
|
||||
<menuitem name="Generate Code" id="menu_code_generate" action="action_main_spm" parent="menu_root_setting" sequence="2" groups="register_v15.group_register_manager"/>
|
||||
<menuitem name="លេខកូដអាហារូបករណ៍" id="menu_code_spm" action="action_code_spm" parent="menu_root_setting" sequence="2" groups="register_v15.group_register_manager"/>
|
||||
</odoo>
|
||||
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="auth_signup.reset_password_email" name="User Reset Password">
|
||||
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #FFFFFF; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: #FFFFFF; color: #454748; border-collapse:separate;">
|
||||
<tbody>
|
||||
<!-- HEADER -->
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr><td valign="middle">
|
||||
<span style="font-size: 10px;">Your Account</span><br/>
|
||||
<span style="font-size: 20px; font-weight: bold;">
|
||||
<t t-out="object.name or ''">Marc Demo</t>
|
||||
</span>
|
||||
</td><td valign="middle" align="right" t-if="not object.company_id.uses_default_logo">
|
||||
<img t-attf-src="/logo.png?company={{ object.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.company_id.name"/>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" style="text-align:center;">
|
||||
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- CONTENT -->
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr><td valign="top" style="font-size: 13px;">
|
||||
<div>
|
||||
Dear <t t-out="object.name or ''">Marc Demo</t>,<br/><br/>
|
||||
A password reset was requested for the your account linked to this email.
|
||||
You may change your password by following this link which will remain valid during 24 hours:<br/>
|
||||
<div style="margin: 16px 0px 16px 0px;">
|
||||
<a t-att-href="object.signup_url"
|
||||
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
|
||||
Change password
|
||||
</a>
|
||||
</div>
|
||||
If you do not expect this, you can safely ignore this email.<br/><br/>
|
||||
Thanks,
|
||||
<t t-if="user.signature">
|
||||
<br/>
|
||||
<t t-out="user.signature">--<br/>Mitchell Admin</t>
|
||||
</t>
|
||||
</div>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;">
|
||||
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- FOOTER -->
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr><td valign="middle" align="left">
|
||||
<t t-out="object.company_id.name or ''">YourCompany</t>
|
||||
</td></tr>
|
||||
<tr><td valign="middle" align="left" style="opacity: 0.7;">
|
||||
<t t-out="object.company_id.phone or ''">+1 650-123-4567</t>
|
||||
|
||||
<t t-if="object.company_id.email">
|
||||
| <a t-att-href="'mailto:%s' % object.company_id.email" style="text-decoration:none; color: #454748;" t-out="object.company_id.email">info@yourcompany.com</a>
|
||||
</t>
|
||||
<t t-if="object.company_id.website">
|
||||
| <a t-att-href="'%s' % object.company_id.website" style="text-decoration:none; color: #454748;" t-out="object.company_id.website">http://www.example.com</a>
|
||||
</t>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td></tr>
|
||||
<!-- POWERED BY -->
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<template id="auth_signup.alert_login_new_device" name="Alert Login with new Device">
|
||||
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #FFFFFF; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: #FFFFFF; color: #454748; border-collapse:separate;">
|
||||
<tbody>
|
||||
<!-- HEADER -->
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr><td valign="top" style="font-size: 13px;">
|
||||
<div>
|
||||
Dear <t t-out="object.name or ''">Marc Demo</t>,<br/><br/>
|
||||
A new device was used to sign in to your account. <br/><br/>
|
||||
Here are some details about the connection:<br/>
|
||||
<ul>
|
||||
<li><span style="font-weight: bold;">
|
||||
Date:</span> <t t-out="format_datetime(login_date, dt_format='long')">day, month dd, yyyy - hh:mm:ss (GMT)</t></li>
|
||||
<t t-if="location_address">
|
||||
<li><span style="font-weight: bold;">
|
||||
Location:</span> <t t-out="location_address">City, Region, Country</t></li>
|
||||
</t>
|
||||
<t t-if="useros">
|
||||
<li><span style="font-weight: bold;">
|
||||
Platform:</span> <t t-out="useros">OS</t></li>
|
||||
</t>
|
||||
<t t-if="browser">
|
||||
<li><span style="font-weight: bold;">
|
||||
Browser:</span> <t t-out="browser">Browser</t></li>
|
||||
</t>
|
||||
<li><span style="font-weight: bold;">
|
||||
IP Address:</span> <t t-out="ip_address">111.222.333.444</t></li>
|
||||
</ul>
|
||||
If you don't recognize it, you should change your password immediately via this link:<br/>
|
||||
<div style="margin: 16px 0px 16px 0px;">
|
||||
<a t-attf-href="{{ object.get_base_url() }}/web/reset_password"
|
||||
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
|
||||
Reset Password
|
||||
</a>
|
||||
</div>
|
||||
Otherwise, you can safely ignore this email.
|
||||
|
||||
</div>
|
||||
</td></tr>
|
||||
<tr><td style="text-align:center;">
|
||||
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="ck_signup.signup" name="Sign up login">
|
||||
<t t-call="web.login_layout">
|
||||
<form class="oe_signup_form" role="form" method="post">
|
||||
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
||||
|
||||
<t t-call="auth_signup.fields">
|
||||
<t t-set="only_passwords" t-value="bool(token)"/>
|
||||
</t>
|
||||
<div t-if="intern" class="form-group field-group" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||||
<label style="color:#15599a;" for="group" class="control-label">ជ្រើសរើស</label>
|
||||
<select class="form-control" name="group" id="group">
|
||||
<t t-foreach="groups" t-as="groups">
|
||||
<option class="form-control" t-att-value="groups.id" name="group"><span t-esc="groups.name"/></option>
|
||||
</t>
|
||||
</select>
|
||||
</div><br/>
|
||||
<div t-if="intern" class="form-group field-group" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||||
<label style="color:#15599a;" for="country_id" class="control-label">ស្នើសុំទៅប្រទេស</label>
|
||||
<select class="form-control" id="country" name="country">
|
||||
<t t-foreach="request.env['res.country'].sudo().search([('id','in',(48,116))])"
|
||||
t-as="countries" t-key="countries.id">
|
||||
<option t-att-value="countries.id">
|
||||
<t t-esc="countries.name"/>
|
||||
</option>
|
||||
</t>
|
||||
</select>
|
||||
</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>
|
||||
<input type="hidden" name="redirect" t-att-value="redirect"/>
|
||||
<input type="hidden" name="token" t-att-value="token"/>
|
||||
<input type="hidden" name="active" t-att-value="active"/>
|
||||
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:15px;">
|
||||
<a t-attf-href="/web/login?{{ keep_query() }}" class="btn btn-link pull-right" style="color:#15599a;font-size:17px;margin-top:10px;font-weight: 800;">ត្រឡប់ក្រោយ</a>
|
||||
<a t-attf-href="/web/pin_code?{{ keep_query() }}" class="btn btn-link pull-right" style="color:#15599a;font-size:17px;margin-top:10px;font-weight: 800;">ផ្ទៀងផ្ទាត់PIN CODE</a>
|
||||
<button type="submit" class="btn btn-primary pull-right" style="background-color: rgba(255,255,255,0.5); color:#15599a;margin-top:15px;">ចុះឈ្មោះ</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -0,0 +1,147 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- <template id="ck_signup.view_preview_doc" name="view_preview_doc" >-->
|
||||
<!-- <object data="/ck_signup/static/src/doc/AMT_Registration.pdf" type="application/pdf" width="100%" height="90%">-->
|
||||
<!-- <a href="/ck_signup/static/src/doc/AMT_Registration.pdf">AMT_Registration.pdf</a>-->
|
||||
<!-- </object>-->
|
||||
<!-- <div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:12px;">-->
|
||||
<!-- <a t-attf-href="/web/login?{{ keep_query() }}" class="btn btn-link" style="margin-left:45%;color:color:#15599a;">ត្រឡប់ក្រោយទៅភ្ជាប់ចូល ឬក៌បង្កើតគណនី</a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<template id="ck_signup.back_to_verify" name="back_to_verify">
|
||||
<p style="text-align:center;">PIN Codeបានផ្ញើចូលអ៊ីម៉ែលរបស់លោកអ្នកដោយជោគជ័យ!<br/>
|
||||
សូមចុចត្រឡប់ក្រោយទៅVerify Pin Code and Scholarship Code(តំណរភ្ជាប់ខាងក្រោម) ដើម្បីដាក់Email, Pin Code and Scholarship Code<br/>
|
||||
រួចចុចផ្ទៀងផ្ទាត់គណនីរបស់លោកអ្នក!
|
||||
</p>
|
||||
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:12px;">
|
||||
<a t-attf-href="/web/pin_code?{{ keep_query() }}" class="btn btn-link" style="margin-left:45%;color:color:#15599a;">ត្រឡប់ក្រោយទៅ Verify Pin Code and Scholarship Code</a>
|
||||
</div>
|
||||
</template>
|
||||
<template id="ck_signup.back_to_signup" name="back_to_signup">
|
||||
<p style="text-align:center;">អ្នកបានស្នើសុំPin Code លើសពីការកំណត់ហើយ!<br/>
|
||||
សូមចុចត្រឡប់ក្រោយដើម្បីដាក់អ៊ីម៉ែលថ្មីសម្រាប់ទទួលបានPin Code ថ្មី!
|
||||
</p>
|
||||
<div class="clearfix oe_login_buttons" style="font-family:Khmer OS content; src:url(../font/Khmer_OS_Siemreap.ttf) ;format('truetype'); font-size:12px;">
|
||||
<a t-attf-href="/web/signup?{{ keep_query() }}" class="btn btn-link" style="margin-left:45%;color:color:#15599a;">ត្រឡប់ក្រោយ</a>
|
||||
</div>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user