Skip to content

Commit

Permalink
saved
Browse files Browse the repository at this point in the history
  • Loading branch information
em230418 committed Oct 2, 2024
1 parent 5ffe380 commit 4d3072c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
1 change: 0 additions & 1 deletion portal_passport_editing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import controllers
Expand Down
1 change: 0 additions & 1 deletion portal_passport_editing/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
],
"data": [
"views/assets.xml",
"views/website_portal_templates.xml",
],
"demo": [],
}
1 change: 0 additions & 1 deletion portal_passport_editing/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import controllers
2 changes: 0 additions & 2 deletions portal_passport_editing/static/src/js/portal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
odoo.define("tg_.portal", function (require) {
"use strict";

require("portal.portal");
});
9 changes: 6 additions & 3 deletions portal_passport_editing/views/assets.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="assets_frontend" inherit_id="portal.assets_frontend">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/portal_passport_editing/static/src/js/portal.js"></script>
<script
type="text/javascript"
src="/portal_passport_editing/static/src/js/portal.js"
/>
</xpath>
</template>
</odoo>
</odoo>
18 changes: 10 additions & 8 deletions tg_portal/views/portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,33 @@
</div>
<br />
<div
t-attf-class="form-group form-check #{error.get('passport') and 'o_has_error' or ''} col-lg-6"
t-attf-class="mb-3 #{error.get('passport') and 'o_has_error' or ''} col-xl-6"
>
<label class="control-label" for="passport">Passport</label>
<label class="col-form-label" for="passport">Passport</label>
<input
type="text"
name="passport"
t-attf-class="form-control #{error.get('passport') and 'is-invalid' or ''}"
t-att-value="passport or partner.passport"
/>
<div class="form-check" t-if="show_passport_checkbox">
<div class="mb-3" t-if="show_passport_checkbox">
<input
class="form-check-input"
type="checkbox"
id="is_passport_not_ready"
name="is_passport_not_ready"
t-att-checked="is_passport_not_ready or partner.is_passport_not_ready"
/>
<!-- TODO: form-check-label? -->
<!-- TODO: form-check-input? -->
<label
class="form-check-label"
for="is_passport_not_ready"
>Passport is not ready</label>
</div>
</div>
<div
t-attf-class="form-group form-check #{error.get('cedula') and 'o_has_error' or ''} col-lg-6"
t-attf-class="mb-3 #{error.get('cedula') and 'o_has_error' or ''} col-xl-6"
>
<t t-set="has_cedula" t-value="has_cedula or partner.has_cedula" />

Expand Down Expand Up @@ -62,9 +64,9 @@
</div>
</div>
<div
t-attf-class="form-group #{error.get('birthdate_date') and 'o_has_error' or ''} col-lg-6"
t-attf-class="mb-3 #{error.get('birthdate_date') and 'o_has_error' or ''} col-xl-6"
>
<label class="control-label" for="birthdate_date">Date of Birth</label>
<label class="col-form-label" for="birthdate_date">Date of Birth</label>
<input
type="date"
name="birthdate_date"
Expand All @@ -73,10 +75,10 @@
/>
</div>
<div
t-attf-class="form-group #{error.get('nationality_id') and 'o_has_error' or ''} col-lg-6"
t-attf-class="mb-3 #{error.get('nationality_id') and 'o_has_error' or ''} col-xl-6"
>
<label
class="control-label"
class="col-form-label"
for="nationality_id"
>Country of Citizenship</label>
<select
Expand Down

0 comments on commit 4d3072c

Please sign in to comment.