diff --git a/README.md b/README.md index ba2ef06..792be5f 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,6 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[g2p_odk_user_mapping](g2p_odk_user_mapping/) | 17.0.0.0.0 | | ODK App User Mapping -[g2p_portal_base](g2p_portal_base/) | 17.0.0.0.0 | | G2P Registration Portal: Base -[g2p_registration_portal](g2p_registration_portal/) | 17.0.0.0.0 | | G2P Registration Portal Beneficiary Management [g2p_registry_g2p_connect_rest_api](g2p_registry_g2p_connect_rest_api/) | 17.0.0.0.0 | | OpenG2P Registry: G2P Connect REST API [g2p_registry_id_deduplication](g2p_registry_id_deduplication/) | 17.0.0.0.0 | | OpenG2P Registry ID Deduplication [g2p_social_registry](g2p_social_registry/) | 17.0.0.0.0 | | OpenG2P Social Registry diff --git a/g2p_odk_user_mapping/README.md b/g2p_odk_user_mapping/README.md deleted file mode 100644 index fae7a8c..0000000 --- a/g2p_odk_user_mapping/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ODK App User Mapping - -Refer to https://docs.openg2p.org. diff --git a/g2p_odk_user_mapping/__init__.py b/g2p_odk_user_mapping/__init__.py deleted file mode 100644 index 0650744..0000000 --- a/g2p_odk_user_mapping/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/g2p_odk_user_mapping/__manifest__.py b/g2p_odk_user_mapping/__manifest__.py deleted file mode 100644 index ab2d183..0000000 --- a/g2p_odk_user_mapping/__manifest__.py +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "ODK App User Mapping", - "category": "G2P", - "version": "17.0.0.0.0", - "sequence": 1, - "author": "OpenG2P", - "website": "https://openg2p.org", - "license": "LGPL-3", - "depends": ["base", "account", "g2p_odk_importer"], - "data": [ - "security/ir.model.access.csv", - "views/registration_user_backend_view.xml", - "views/odk_app_user.xml", - ], - "assets": { - "web.assets_frontend": [], - "web.assets_common": [], - "website.assets_wysiwyg": [], - }, - "application": True, - "installable": True, - "auto_install": False, -} diff --git a/g2p_odk_user_mapping/i18n/g2p_odk_user_mapping.pot b/g2p_odk_user_mapping/i18n/g2p_odk_user_mapping.pot deleted file mode 100644 index cd4908d..0000000 --- a/g2p_odk_user_mapping/i18n/g2p_odk_user_mapping.pot +++ /dev/null @@ -1,105 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * g2p_odk_user_mapping -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: g2p_odk_user_mapping -#: model:ir.model,name:g2p_odk_user_mapping.model_res_partner -msgid "Contact" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model_terms:ir.actions.act_window,help:g2p_odk_user_mapping.view_odk_app_action -msgid "Create a odk app user" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__create_uid -msgid "Created by" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__create_date -msgid "Created on" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__display_name -msgid "Display Name" -msgstr "" - -#. module: g2p_odk_user_mapping -#. odoo-python -#: code:addons/g2p_odk_user_mapping/models/res_partner.py:0 -#, python-format -msgid "Failed to fetch app users" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__id -msgid "ID" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__write_uid -msgid "Last Updated by" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__write_date -msgid "Last Updated on" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model,name:g2p_odk_user_mapping.model_odk_app_user -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_partner__odk_app_user -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_users__odk_app_user -msgid "ODK App User" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__odk_user_id -msgid "ODK App User ID" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__name -msgid "ODK App User Name" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_partner__odk_config_id -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_users__odk_config_id -msgid "ODK Config" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model_terms:ir.ui.view,arch_db:g2p_odk_user_mapping.view_res_partner_form_inherit_registration -msgid "ODk User Configuration" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_odk_app_user__partner_id -msgid "Partner" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_partner__session -#: model:ir.model.fields,field_description:g2p_odk_user_mapping.field_res_users__session -msgid "Session Token" -msgstr "" - -#. module: g2p_odk_user_mapping -#: model:ir.actions.act_window,name:g2p_odk_user_mapping.view_odk_app_action -msgid "odk.app.user.action" -msgstr "" diff --git a/g2p_odk_user_mapping/models/__init__.py b/g2p_odk_user_mapping/models/__init__.py deleted file mode 100644 index 2513dcc..0000000 --- a/g2p_odk_user_mapping/models/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import res_partner -from . import odk_app_user diff --git a/g2p_odk_user_mapping/models/odk_app_user.py b/g2p_odk_user_mapping/models/odk_app_user.py deleted file mode 100644 index 660be4f..0000000 --- a/g2p_odk_user_mapping/models/odk_app_user.py +++ /dev/null @@ -1,10 +0,0 @@ -from odoo import fields, models - - -class ODKAppUser(models.Model): - _name = "odk.app.user" - _description = "ODK App User" - - name = fields.Char(string="ODK App User Name") - odk_user_id = fields.Integer(string="ODK App User ID") - partner_id = fields.Many2one("res.partner", string="Partner") diff --git a/g2p_odk_user_mapping/models/res_partner.py b/g2p_odk_user_mapping/models/res_partner.py deleted file mode 100644 index cf4b156..0000000 --- a/g2p_odk_user_mapping/models/res_partner.py +++ /dev/null @@ -1,75 +0,0 @@ -import json -import logging - -import requests - -from odoo import _, api, fields, models -from odoo.exceptions import UserError, ValidationError - -_logger = logging.getLogger(__name__) - - -class ResPartner(models.Model): - _inherit = "res.partner" - - odk_config_id = fields.Many2one("odk.config", string="ODK Config") - odk_app_user = fields.Many2one("odk.app.user", string="ODK App User") - session = fields.Char(string="Session Token", readonly=True) - - @api.onchange("odk_config_id") - def _onchange_odk_config_id(self): - self.odk_app_user = [ - 5, - ] - if self.odk_config_id: - base_url = self.odk_config_id.base_url - project_id = self.odk_config_id.project - username = self.odk_config_id.username - password = self.odk_config_id.password - self._login(base_url, username, password) - if self.session: - app_users = self._fetch_app_users(base_url, project_id) - _logger.info( - "LOG----->ODK APP USER:%s" - % [f"{user['id']} -{user['displayName']}" for user in app_users] - ) - return {"domain": {"odk_app_user": [("id", "in", [user["id"] for user in app_users])]}} - else: - return {"domain": {"odk_app_user": []}} - - def _login(self, base_url, username, password): - login_url = f"{base_url}/v1/sessions" - headers = {"Content-Type": "application/json"} - data = json.dumps({"email": username, "password": password}) - try: - response = requests.post(login_url, headers=headers, data=data, timeout=10) - response.raise_for_status() - if response.status_code == 200: - self.session = response.json()["token"] - except Exception as e: - _logger.exception("Login failed: %s", e) - raise ValidationError(f"Login failed: {e}") from e - - def _fetch_app_users(self, base_url, project_id): - url = f"{base_url}/v1/projects/{project_id}/app-users" - headers = { - "Content-Type": "application/json", - "X-Extended-Metadata": "true", - "Authorization": f"Bearer {self.session}", - } - response = requests.get(url, headers=headers, timeout=10) - - if response.status_code == 200: - app_users_data = response.json() - query = """ - DELETE FROM odk_app_user WHERE partner_id = %s - """ - self.env.cr.execute(query, (self.id.origin or self.id,)) - - for user in app_users_data: - self.env["odk.app.user"].create( - {"name": user["displayName"], "odk_user_id": user["id"], "partner_id": self.id.origin} - ) - return app_users_data - else: - raise UserError(_("Failed to fetch app users")) diff --git a/g2p_odk_user_mapping/pyproject.toml b/g2p_odk_user_mapping/pyproject.toml deleted file mode 100644 index 4231d0c..0000000 --- a/g2p_odk_user_mapping/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["whool"] -build-backend = "whool.buildapi" diff --git a/g2p_odk_user_mapping/security/ir.model.access.csv b/g2p_odk_user_mapping/security/ir.model.access.csv deleted file mode 100644 index 54ac0de..0000000 --- a/g2p_odk_user_mapping/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_odk_app_user,odk_app_user_name,model_odk_app_user,,1,1,1,1 diff --git a/g2p_odk_user_mapping/views/odk_app_user.xml b/g2p_odk_user_mapping/views/odk_app_user.xml deleted file mode 100644 index 0658d62..0000000 --- a/g2p_odk_user_mapping/views/odk_app_user.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - odk.app.user.tree - odk.app.user - - - - - - - - - - - odk.app.user.action - odk.app.user - tree,form - - -

- Create a odk app user -

-
-
-
diff --git a/g2p_odk_user_mapping/views/registration_user_backend_view.xml b/g2p_odk_user_mapping/views/registration_user_backend_view.xml deleted file mode 100644 index 14a3436..0000000 --- a/g2p_odk_user_mapping/views/registration_user_backend_view.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - res.partner.form.inherit.registration - res.partner - - - - - - - - - - - diff --git a/g2p_portal_base/README.md b/g2p_portal_base/README.md deleted file mode 100644 index 18e8b8a..0000000 --- a/g2p_portal_base/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# G2P Registration Portal: Base - -Refer to https://docs.openg2p.org. diff --git a/g2p_portal_base/__init__.py b/g2p_portal_base/__init__.py deleted file mode 100644 index bb5acb3..0000000 --- a/g2p_portal_base/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Part of OpenG2P. See LICENSE file for full copyright and licensing details. -from . import models -from . import controllers diff --git a/g2p_portal_base/__manifest__.py b/g2p_portal_base/__manifest__.py deleted file mode 100644 index d84db7f..0000000 --- a/g2p_portal_base/__manifest__.py +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "G2P Registration Portal: Base", - "category": "OpenG2P", - "version": "17.0.0.0.0", - "sequence": 1, - "author": "OpenG2P", - "website": "https://openg2p.org", - "license": "LGPL-3", - "depends": ["account", "website"], - "data": [ - "views/about_us.xml", - "views/base.xml", - "views/home.xml", - "views/contact_us.xml", - "views/login.xml", - "views/profile.xml", - "views/other.xml", - "views/menu_view.xml", - "views/registration_portal_extend_view.xml", - ], - "assets": { - "web.assets_frontend": [], - "web.assets_common": [], - "website.assets_wysiwyg": [], - }, - "demo": [], - "images": [], - "application": True, - "installable": True, - "auto_install": False, -} diff --git a/g2p_portal_base/controllers/__init__.py b/g2p_portal_base/controllers/__init__.py deleted file mode 100644 index 12a7e52..0000000 --- a/g2p_portal_base/controllers/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import main diff --git a/g2p_portal_base/controllers/main.py b/g2p_portal_base/controllers/main.py deleted file mode 100644 index 80d4d4c..0000000 --- a/g2p_portal_base/controllers/main.py +++ /dev/null @@ -1,72 +0,0 @@ -import logging -from argparse import _AppendAction - -from werkzeug.exceptions import Forbidden, Unauthorized - -from odoo import _, http -from odoo.http import request - -from odoo.addons.web.controllers.home import Home - -_logger = logging.getLogger(__name__) - - -class registrationBaseContorller(http.Controller): - @http.route(["/registration"], type="http", auth="public", website=True) - def portal_root(self, **kwargs): - if request.session and request.session.uid: - return request.redirect("/registration/home") - else: - return request.redirect("/registration/login") - - @http.route(["/registration/login"], type="http", auth="public", website=True) - def registration_login(self, **kwargs): - redirect_uri = request.params.get("redirect") or "/registration/home" - if request.session and request.session.uid: - return request.redirect(redirect_uri) - - context = {} - - if request.httprequest.method == "POST": - res = Home().web_login(**kwargs) - if request.params["login_success"]: - return res - else: - context["error"] = "Invalid Credentials" - - return request.render("g2p_portal_base.login_page", qcontext=context) - - @http.route(["/registration/home"], type="http", auth="user", website=True) - def portal_home(self, **kwargs): - self.check_roles("registration") - return request.render("g2p_portal_base.home_page") - - @http.route(["/registration/myprofile"], type="http", auth="public", website=True) - def portal_profile(self, **kwargs): - if request.session and request.session.uid: - current_partner = request.env.user.partner_id - return request.render( - "g2p_portal_base.profile_page", - { - "current_partner": current_partner, - }, - ) - - @http.route(["/registration/aboutus"], type="http", auth="public", website=True) - def portal_about_us(self, **kwargs): - return request.render("g2p_portal_base.about_us_page") - - @http.route(["/registration/contactus"], type="http", auth="public", website=True) - def portal_contact_us(self, **kwargs): - return request.render("g2p_portal_base.contact_us_page") - - @http.route(["/registration/otherpage"], type="http", auth="public", website=True) - def portal_other_page(self, **kwargs): - return request.render("g2p_portal_base.other_page") - - def check_roles(self, role_to_check): - if role_to_check == "registration": - if not request.session or not request.env.user: - raise Unauthorized(_("User is not logged in")) - if not request.env.user.partner_id.supplier_rank > 0: - raise Forbidden(_AppendAction("User is not allowed to access the portal")) diff --git a/g2p_portal_base/i18n/g2p_portal_base.pot b/g2p_portal_base/i18n/g2p_portal_base.pot deleted file mode 100644 index fc73117..0000000 --- a/g2p_portal_base/i18n/g2p_portal_base.pot +++ /dev/null @@ -1,207 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * g2p_portal_base -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "" -"Email" -" Address" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "" -"Enumerator ID" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "" -"Mobile Number" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "" -"Name" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "English" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "Filipino" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "Français" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.about_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "About Us" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.about_us_page -msgid "About Us | Registration Portal" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.contact_us_page -msgid "Contact Us" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.contact_us_page -msgid "Contact Us| Registration Portal" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Email or Phone" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Enter email or phone" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Enter password" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Facing any challenges?" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Help" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.about_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.contact_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.other_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "Home" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.home_page -msgid "Home | Registration Portal" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Login" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "Logout" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "My Profile" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.profile_page -msgid "My Profile | Registration Portal" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.other_page -msgid "Other" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "Others" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.other_page -msgid "Other|Registration Portal" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.about_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.contact_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.other_page -msgid "" -"Our experts are working hard to make this page available. Meanwhile, we " -"request you to please visit after some time." -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.about_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.contact_us_page -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.other_page -msgid "Page Under Construction!" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Password" -msgstr "" - -#. module: g2p_portal_base -#: model:ir.ui.menu,name:g2p_portal_base.menu_account_supplier -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.res_partner_view_search_g2p_inherits -msgid "Registration Portal User" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.login_page -msgid "Reset Password" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "Search here" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "User" -msgstr "" - -#. module: g2p_portal_base -#. odoo-python -#: code:addons/g2p_portal_base/controllers/main.py:0 -#, python-format -msgid "User is not logged in" -msgstr "" - -#. module: g2p_portal_base -#: model_terms:ir.ui.view,arch_db:g2p_portal_base.base -msgid "© 2023 National Social Benefits Portal. All rights reserved." -msgstr "" diff --git a/g2p_portal_base/models/__init__.py b/g2p_portal_base/models/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/g2p_portal_base/pyproject.toml b/g2p_portal_base/pyproject.toml deleted file mode 100644 index 4231d0c..0000000 --- a/g2p_portal_base/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["whool"] -build-backend = "whool.buildapi" diff --git a/g2p_portal_base/static/description/icon.png b/g2p_portal_base/static/description/icon.png deleted file mode 100644 index 5ecb429..0000000 Binary files a/g2p_portal_base/static/description/icon.png and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Bold.woff b/g2p_portal_base/static/src/css/fonts/Inter-Bold.woff deleted file mode 100644 index eaf3d4b..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Bold.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-BoldItalic.woff b/g2p_portal_base/static/src/css/fonts/Inter-BoldItalic.woff deleted file mode 100644 index 3275076..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-BoldItalic.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-ExtraLight.woff b/g2p_portal_base/static/src/css/fonts/Inter-ExtraLight.woff deleted file mode 100644 index d0de5f3..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-ExtraLight.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Italic.woff b/g2p_portal_base/static/src/css/fonts/Inter-Italic.woff deleted file mode 100644 index a806b38..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Italic.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Light.woff b/g2p_portal_base/static/src/css/fonts/Inter-Light.woff deleted file mode 100644 index c496464..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Light.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Medium.woff b/g2p_portal_base/static/src/css/fonts/Inter-Medium.woff deleted file mode 100644 index d546843..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Medium.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Regular.woff b/g2p_portal_base/static/src/css/fonts/Inter-Regular.woff deleted file mode 100644 index 62d3a61..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Regular.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-SemiBold.woff b/g2p_portal_base/static/src/css/fonts/Inter-SemiBold.woff deleted file mode 100644 index a815f43..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-SemiBold.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/fonts/Inter-Thin.woff b/g2p_portal_base/static/src/css/fonts/Inter-Thin.woff deleted file mode 100644 index 62bc58c..0000000 Binary files a/g2p_portal_base/static/src/css/fonts/Inter-Thin.woff and /dev/null differ diff --git a/g2p_portal_base/static/src/css/portal.css b/g2p_portal_base/static/src/css/portal.css deleted file mode 100644 index abea6c7..0000000 --- a/g2p_portal_base/static/src/css/portal.css +++ /dev/null @@ -1,799 +0,0 @@ -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-Regular.woff") format("woff"); - font-weight: 400; -} - -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-Bold.woff") format("woff"); - font-weight: bold; -} - -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-BoldItalic.woff") format("woff"); - font-weight: bold; - font-style: italic; -} - -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-Italic.woff") format("woff"); - font-style: italic; - font-weight: 400; -} -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-Medium.woff") format("woff"); - font-style: medium; - font-weight: 500; -} - -@font-face { - font-family: "Inter"; - src: url("fonts/Inter-SemiBold.woff") format("woff"); - font-style: bolder; - font-weight: 600; -} - -header#top { - width: 100%; - margin: auto; - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 4px 5px #0000000d; - opacity: 1; -} - -header#top .header-container { - /* width: auto; */ - margin: auto; -} - -.header-container .nav { - margin: auto; - /* width: auto; */ -} - -main { - width: 100%; - margin: auto; -} - -.container-adjuster { - width: 1180px; - margin: auto; -} - -footer#bottom { - width: 100%; - margin: auto; - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 4px 5px #0000000d; - opacity: 1; -} -footer#bottom .footer-container { - /* width: auto; */ - margin: auto; -} - -footer#bottom .footer-container .nav { - /* width: auto; */ - margin: auto; -} - -.ssp-login-body { - background: transparent linear-gradient(0deg, #f5f7ff 0%, #f2f7ff 100%) 0% 0% no-repeat padding-box; - opacity: 1; - position: fixed; - left: 0px; - bottom: 0px; - top: 0px; - right: 0px; - font-size: 14px; - font-weight: 400; - font-family: Inter; - overflow-y: auto; -} - -.ssp-login-box { - margin: auto; - top: 75px; - width: 444px; - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 3px 15px #0000000d; - border-radius: 20px; - padding: 10px; - position: relative; -} - -.ssp-login-box .card { - width: 100% !important; - background: none; - box-shadow: none; - border-radius: 0px; - padding: 0px; -} - -.ssp-login-box .bg-100 { - background: none !important; - padding: 0px; -} - -.login-bottom-text { - margin: auto; - top: 90px; - width: 444px; - padding: 10px; - position: relative; - text-align: center; -} - -.ssp-login-box .card-body { - padding: 0px; -} - -.ssp-login-box .logo-box { - align-items: center; -} - -.ssp-login-box .logo { - width: 67%; - height: 67%; - opacity: 1; - margin-left: 15%; - margin-right: 15%; - margin-top: 20px; -} - -.ssp-login-box .field-login label, -.ssp-login-box .field-password label { - font-weight: bolder; - font-family: Inter; - margin-bottom: 4px; -} - -.ssp-login-box .btn-primary { - color: #ffffff; - background-color: #704880; - border-color: #704880; - border-radius: 6px; - opacity: 1; - width: 100%; - min-height: 54px; - max-height: 54px; -} - -.ssp-login-box .btn-primary :hover { - color: #ffffff; - background-color: #704880; - border-color: #704880; - opacity: 1; -} - -.ssp-login-box .btn-primary :active { - color: #ffffff; - background-color: #704880; - border-color: #704880; - opacity: 1; -} - -.ssp-login-box .card { - max-width: 100%; - width: 100%; -} - -.ssp-login-box .btn-primary:not(:disabled):not(.o_wysiwyg_loader):not(.disabled):active { - color: #ffffff; - background-color: #704880; - border-color: #704880; - opacity: 1; -} - -.ssp-login-box .reset-password { - float: right; -} - -.ssp-login-body a { - color: #704880; -} - -.ssp-login-box .form-control { - border-color: #e3e3e3; - border-radius: 6px; - margin-bottom: 8px; -} - -.ssp-login-box .list-group-item { - border: none; - font-weight: 600; - color: #000000; -} - -.ssp-login-box .oe_login_form { - margin: 20px; - max-width: 100%; -} - -/* Header Styles */ -.header-container { - top: 0px; - left: 0px; - /* width: 1366px; */ - height: 90px; - /* background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 4px 5px #0000000d; */ - opacity: 1; -} -.header-container .nav { - /* Layout Properties */ - top: 0px; - left: 0px; - /* margin-left: 139px; - margin-right: 152px; */ - width: 1180px; - height: 90px; - border: none; - background: #ffffff 0% 0% no-repeat padding-box; - display: flex; - justify-content: space-between; - align-items: center; - opacity: 1; -} -.header-container .nav .main-logo { - width: 272px; - height: 58px; - /* UI Properties */ - margin-top: 16px; - margin-bottom: 15.77px; - - opacity: 1; -} -.header-container .nav .nav-user { - display: flex; - width: 473px; -} -.nav-user .search-box { - left: 741px; - width: 273px; - height: 40px; - - background: #ffffff 0% 0% no-repeat padding-box; - border: 1px solid #c6c6c6; - padding-left: 10px; - border-radius: 6px; - margin-top: 25px; - margin-bottom: 25px; - opacity: 1; - display: flex; - justify-content: start; - align-items: center; -} -.nav-user .search-box .search-text { - border: none; - margin-left: 10px; -} -.nav-user .search-box .search-text:focus { - outline: none; -} - -.main-container .alert { - position: absolute; - top: 90px; - margin-left: 0px; - width: 1366px; - height: 55px; - padding-top: 18px; - padding-bottom: 18px; - display: flex; - background: #494daf 0% 0% no-repeat padding-box; - box-shadow: 0px 3px 6px #0000000d; - opacity: 1; -} -.closebtn { - margin-left: 740px; - width: 14px; - height: 14px; - margin-right: 110px; - color: #ffffff; - opacity: 1; -} - -.welcome-title { - margin-left: 120px; - height: 19px; - text-align: left; - font: normal 15px/19px Inter; - letter-spacing: 0px; - color: #ffffff; - opacity: 1; -} -::-webkit-input-placeholder { - /* Edge */ - color: #b9b9b9; -} - -:-ms-input-placeholder { - /* Internet Explorer 10-11 */ - color: #b9b9b9; -} - -::placeholder { - color: #b9b9b9; -} - -.nav-user .language-box { - left: 1026px; - height: 40px; - margin-top: 25px; - margin-bottom: 25px; - margin-left: 12px; - border-radius: 6px; - opacity: 1; -} -.nav-user .language-box:focus { - outline: none; -} -.nav-user .language-box .button { - height: 40px; - /* UI Properties */ - display: inline; - background: #ffffff 0% 0% no-repeat padding-box; - border: 1px solid #c6c6c6; - border-radius: 6px; - opacity: 1; -} -.nav-user .language-box .button:focus { - outline: none; -} -.nav-user .language-box .button span { - height: 15px; - width: 41px; - text-align: left; - font: normal 12px Inter; - letter-spacing: 0px; - color: #4d4c4c; - opacity: 1; -} -.nav-user .language-box .button .flag { - width: 18px; - height: 12px; - background: transparent 0% 0% no-repeat padding-box; - opacity: 1; -} - -.nav-user .user { - width: 50px; - height: 50px; - margin-top: 20px; - margin-bottom: 20px; - opacity: 1; -} - -.nav-user .user .user-block { - top: 73px; - text-align: left; - width: 184px; - height: 116px; - background: #ffffff 0% 0% no-repeat padding-box; - border: 1px solid #d8d8d8; - opacity: 1; -} - -.user-image { - top: 20px; - width: 50px; - height: 50px; - opacity: 1; -} - -.dropdown ul { - list-style: none; -} - -.dropdown ul .link { - top: 92px; - width: 57px; - height: 15px; - margin: 10px; - /* UI Properties */ - text-align: left; - font: normal 15px Inter; - letter-spacing: 0px; - color: #4d4c4c; - opacity: 1; -} - -.dropdown-menu span { - text-align: left; - font: normal 15px inter; -} -.dropdown-menu ul li a:hover { - text-decoration: none; -} -a:hover { - text-decoration: none; -} - -/* Footer Styles */ -.footer-container { - left: 0px; - width: 100%; - height: 190px; - background: #ffffff 0% 0% no-repeat padding-box; - opacity: 1; -} -.footer-container .nav { - top: 0px; - left: 0px; - margin-left: 139px; - margin-right: 139px; - width: 1180px; - border: none; - background: #ffffff 0% 0% no-repeat padding-box; - display: flex; - justify-content: space-between; - opacity: 1; -} -.footer-container .nav .main-logo { - width: 272px; - height: 58px; - margin-top: 36px; - opacity: 1; -} -.footer-container .nav .list-container { - display: flex; - justify-content: space-between; - margin-top: 57px; -} -.list-container .nav-item { - list-style: none; -} -.list-container .nav-item .link { - font: normal 13px Inter; - letter-spacing: 0px; - color: #484848; - opacity: 1; -} -.footer-container .copyright { - /* UI Properties */ - margin-top: 25px; - margin-left: 40%; - margin-bottom: 25px; - height: 17px; - text-align: left; - font: normal 14px/17px Inter; - letter-spacing: 0px; - color: #b9b9b9; - opacity: 1; -} - -.current-partner-container { - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 2px 5px #0000001a; - border-radius: 10px; - padding: 20px; -} - -.current-partner-container .row { - padding: 20px; -} - -.current-partner-container .beneficiary-value { - font: normal normal 600 13px/16px Inter; - letter-spacing: 0px; - text-transform: uppercase; -} - -/* Main content styles */ -.main-container { - background: #f5f9fc 0% 0% no-repeat padding-box; - /* width: 1366px; */ - height: 100%; - display: block; - padding-top: 30px; - padding-bottom: 30px; - opacity: 1; -} - -.search-clear-icon { - display: none; - cursor: pointer; -} - -.css-serial { - border-top: 1px solid #ddd; -} - -.icon-image { - padding: 30px; - background: #6064c71a 0% 0% no-repeat padding-box; - border-radius: 10px; - opacity: 1; - width: 24px; - height: 24px; - margin: 10px; - opacity: 1; -} - -.icon-image img { - width: 22px; - height: 22px; - margin-top: -10px; - margin-left: -10px; - margin-bottom: 20px; - margin-right: 20px; -} - -li div a { - width: 78px; - height: 17px; - text-align: left; - font: normal 600 14px/17px Inter; - letter-spacing: 0px; - color: #484848; - opacity: 1; -} -li div p { - height: 16px; - text-align: left; - font: normal 13px Inter; - letter-spacing: 0px; - color: #484848; - opacity: 1; -} - -.badge-button { - width: 44px; - height: 19px; - background: #186ade 0% 0% no-repeat padding-box; - color: #ffffff; - border: none; - border-radius: 4px; - opacity: 1; -} -.badge-button span { - width: 26px; - height: 14px; - text-align: left; - font: normal 600 11px/14px Inter; - letter-spacing: 0px; - color: #ffffff; - opacity: 1; -} - -.all-title { - margin-bottom: 0px; - height: 26px; - text-align: left; - font: normal 600 22px/26px Inter; - letter-spacing: 0px; - color: #484848; - opacity: 1; -} -.breadcrumb-list { - /* margin-left: 9%; */ - margin-right: 10%; - margin-bottom: 33px; - left: 139px; - height: 17px; - opacity: 1; - padding-left: 0px; -} -.breadcrumb-list .breadcrumb-item a { - width: 40px; - height: 17px; - - text-align: left; - font: normal 600 14px/17px Inter; - letter-spacing: 0px; - color: #494daf; - opacity: 1; -} -.invisible { - display: none; -} -#chartContainer { - width: 220px; - height: 220px; - margin: auto; -} -.breadcrumb-item + .breadcrumb-item::before { - content: " \003E "; - color: #000000 0% 0% no-repeat padding-box; -} - -.page-item.active .page-link { - color: #ffffff; - border-radius: 6px; - background-color: #494daf; - border-color: #494daf; -} - -#search-clear { - display: none; - cursor: pointer; - margin-left: 5px; - padding-right: 25px; -} -#seacrh-text-clear { - display: none; - cursor: pointer; - margin-left: 5px; - padding-right: 25px; -} - -.aboutus-container { - top: 201px; - margin-bottom: 20px; - padding: 36px 20px 20px 20px; - width: 1088px; - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 2px 5px #0000001a; - border-radius: 10px; - opacity: 1; -} - -.aboutus-container .aboutus-header { - display: flex; - justify-content: space-between; -} -.aboutus-header .logo1 { - width: 274px; - height: 57px; - background: transparent 0% 0% no-repeat padding-box; - opacity: 1; -} -.aboutus-header .logo2 { - width: 156px; - height: 82px; - background: transparent 0% 0% no-repeat padding-box; - border-radius: 10px; - opacity: 1; -} -.aboutus-container .header-section { - width: 100%; - height: 118px; - background: #f8f8f8 0% 0% no-repeat padding-box; - padding: 25px 22px 29px 22px; - border-radius: 10px; - margin-bottom: 44px; - opacity: 1; -} -.header-section h1 { - width: 270px; - height: 20px; - margin-left: 37%; - font: normal 17px/20px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} -.header-section p { - width: 100%; - height: 34px; - font: normal 14px/17px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} -.aboutus-container .section1 { - width: 100%; - height: 183px; - margin-bottom: 44px; - opacity: 1; -} -.section1 h1 { - width: 247px; - height: 20px; - text-align: left; - font: normal 17px/20px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} -.section1 p { - width: 100%; - height: 153px; - font: normal 14px/17px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} - -.aboutus-container .section2 { - width: 100%; - height: 270px; - display: flex; - justify-content: space-between; - opacity: 1; -} -.section2 div { - width: 50%; - margin-top: 91px; - margin-bottom: 98px; -} - -.section2 div h1 { - width: 80%; - height: 20px; - text-align: left; - font: normal 17px/20px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} -.section2 div p { - width: 80%; - height: 51px; - text-align: left; - font: normal 14px/17px Inter; - letter-spacing: 0px; - color: #333333; - opacity: 1; -} - -.section2 div logo3 { - width: 516px; - height: 270px; - background: transparent 0% 0% no-repeat padding-box; - border: 1px solid #e3e3e3; - border-radius: 10px; - opacity: 1; -} - -.profile-container { - margin-right: 10%; - margin-bottom: 30px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - width: 1088px; - height: 528px; - background: #ffffff 0% 0% no-repeat padding-box; - box-shadow: 0px 2px 5px #0000001a; - border-radius: 10px; - opacity: 1; -} -.profile-container div { - margin-left: 23%; - margin-right: 23%; - margin-top: 50px; - height: 76px; - opacity: 1; -} -.profile-container div h1 { - margin-left: 23%; - margin-right: 23%; - height: 29px; - text-align: center; - font: normal 24px/29px Inter; - letter-spacing: 0px; - color: #2c2c2c; - opacity: 1; -} - -.profile-container div p { - height: 37px; - text-align: center; - font: normal 14px/20px Inter; - letter-spacing: 0px; - color: #7b7b7b; - opacity: 1; -} - -.next-button { - border: 1px solid black; - padding: 5px 10px; -} - -input::-webkit-outer-spin-button, -input::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; -} - -.btn-primary { - border-color: #704880 !important; -} diff --git a/g2p_portal_base/static/src/img/close_icon@2x.png b/g2p_portal_base/static/src/img/close_icon@2x.png deleted file mode 100644 index 0190715..0000000 Binary files a/g2p_portal_base/static/src/img/close_icon@2x.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/flag_en.png b/g2p_portal_base/static/src/img/flag_en.png deleted file mode 100644 index 5fc1b1a..0000000 Binary files a/g2p_portal_base/static/src/img/flag_en.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/flag_fr.png b/g2p_portal_base/static/src/img/flag_fr.png deleted file mode 100644 index d23d639..0000000 Binary files a/g2p_portal_base/static/src/img/flag_fr.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/flag_ph.png b/g2p_portal_base/static/src/img/flag_ph.png deleted file mode 100644 index 585210d..0000000 Binary files a/g2p_portal_base/static/src/img/flag_ph.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/logo.png b/g2p_portal_base/static/src/img/logo.png deleted file mode 100644 index b4440c4..0000000 Binary files a/g2p_portal_base/static/src/img/logo.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/logo@2x.png b/g2p_portal_base/static/src/img/logo@2x.png deleted file mode 100644 index 324489f..0000000 Binary files a/g2p_portal_base/static/src/img/logo@2x.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/page_under_construction.png b/g2p_portal_base/static/src/img/page_under_construction.png deleted file mode 100644 index ddc1f99..0000000 Binary files a/g2p_portal_base/static/src/img/page_under_construction.png and /dev/null differ diff --git a/g2p_portal_base/static/src/img/person_filled_FILL0_wght400_GRAD0_opsz48.png b/g2p_portal_base/static/src/img/person_filled_FILL0_wght400_GRAD0_opsz48.png deleted file mode 100644 index 7c096bf..0000000 Binary files a/g2p_portal_base/static/src/img/person_filled_FILL0_wght400_GRAD0_opsz48.png and /dev/null differ diff --git a/g2p_portal_base/static/src/js/language_selector.js b/g2p_portal_base/static/src/js/language_selector.js deleted file mode 100644 index 7ae952a..0000000 --- a/g2p_portal_base/static/src/js/language_selector.js +++ /dev/null @@ -1,52 +0,0 @@ -// Select the language dropdown button -const dropdownButton = document.querySelector(".language-dropdown button"); - -// Add an event listener to the dropdown button that will toggle the dropdown menu -dropdownButton.addEventListener("click", function () { - this.classList.toggle("active"); -}); - -// Add an event listener to the document that will close the dropdown menu if the user clicks outside the menu -document.addEventListener("click", function (event) { - if ( - !event.target.matches(".language-dropdown button") && - !event.target.matches(".language-dropdown .dropdown-menu *") - ) { - dropdownButton.classList.remove("active"); - } -}); - -// Add an event listener to the dropdown menu items that will update the text of the button with the selected language -const dropdownItems = document.querySelectorAll(".dropdown-item"); -dropdownItems.forEach(function (item) { - item.addEventListener("click", function () { - const languageText = this.querySelector("span").textContent; - console.log(languageText); - const languageFlag = this.querySelector("img").src; - const button = document.querySelector(".language-dropdown button"); - const buttonSpan = button.querySelector("span"); - const buttonFlag = button.querySelector("img"); - buttonSpan.textContent = languageText; - buttonFlag.src = languageFlag; - buttonFlag.alt = languageText; - localStorage.setItem("selectedLanguage", languageText); - }); -}); - -// Check if a language has already been selected and update the button text and image accordingly -if (localStorage.getItem("selectedLanguage")) { - const selectedLanguage = localStorage.getItem("selectedLanguage"); - - dropdownItems.forEach(function (item) { - const languageText = item.querySelector("span"); - if (languageText && languageText.textContent === selectedLanguage) { - const languageFlag = item.querySelector("img").src; - const button = document.querySelector(".language-dropdown button"); - const buttonSpan = button.querySelector("span"); - const buttonFlag = button.querySelector("img"); - buttonSpan.textContent = selectedLanguage; - buttonFlag.src = languageFlag; - buttonFlag.alt = selectedLanguage; - } - }); -} diff --git a/g2p_portal_base/views/about_us.xml b/g2p_portal_base/views/about_us.xml deleted file mode 100644 index c1e03dc..0000000 --- a/g2p_portal_base/views/about_us.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - diff --git a/g2p_portal_base/views/base.xml b/g2p_portal_base/views/base.xml deleted file mode 100644 index 6849691..0000000 --- a/g2p_portal_base/views/base.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - -