Update default home page to link to login page if church name is not setup yet.

This commit is contained in:
meichthys 2026-03-02 05:42:18 +00:00
parent 2b52fa81e6
commit b4b87ae0a3

View File

@ -15,12 +15,12 @@
"insert_style": 0,
"javascript": null,
"main_section": null,
"main_section_html": "{% set information = frappe.get_doc(\"Church Information\") %} \n<div class=\"row\"> \n <div class=\"col-lg-12 mb-12\"> \n <div class=\"card h-100\"> \n <div class=\"card-header\">\n <strong>{{ information.legal_name }}</strong>\n {% if information.founding_date %}\n <br>\n Established: {{ information.founding_date }}\n {% endif %}\n </div> \n <div class=\"card-body\"> \n <p class=\"card-text\">\n {{ information.about }}\n </p> \n </div>\n <div class=\"card-footer\">\n <div class=\"small text-muted\">\n {% if information.mission_statement %}\n <strong>Mission Statement</strong>\n <br>\n \"{{ information.mission_statement }}\"\n {% endif %}\n </div> \n </div>\n </div> \n </div> \n</div>",
"main_section_html": "{% set legal_name = frappe.db.get_value(\"Church Information\", \"Church Information\", \"legal_name\") %}\n{% if legal_name %}\n{% set information = frappe.get_doc(\"Church Information\") %}\n<div class=\"row\">\n <div class=\"col-lg-12 mb-4\">\n <div class=\"card h-100\">\n <div class=\"card-header\">\n <strong>{{ information.legal_name }}</strong>\n {% if information.founding_date %}\n <br>\n Established: {{ information.founding_date }}\n {% endif %}\n </div>\n <div class=\"card-body\">\n <p class=\"card-text\">\n {{ information.about }}\n </p>\n </div>\n <div class=\"card-footer\">\n <div class=\"small text-muted\">\n {% if information.mission_statement %}\n <strong>Mission Statement</strong>\n <br>\n \"{{ information.mission_statement }}\"\n {% endif %}\n </div>\n </div>\n </div>\n </div>\n</div>\n{% else %}\n<div class=\"row justify-content-center\">\n <div class=\"col-lg-8 col-md-10 text-center\" style=\"padding: 60px 20px;\">\n <h2 style=\"color: #4a4a4a; margin-bottom: 16px;\">Welcome to Your Church Website</h2>\n <p style=\"font-size: 1.2em; color: #6c757d; margin-bottom: 32px;\">\n Your new church website is almost ready!<br>\n To get started, please log in and configure your church information.<br>\n <br>\n The default login credentials are:<br>\n Username: Administrator<br>\n Password: admin<br>\n Be sure to change the password immediately!\n </p>\n <a href=\"/login\" class=\"btn btn-primary btn-lg\" style=\"padding: 12px 40px; font-size: 1.1em;\">\n Log In to Get Started\n </a>\n </div>\n</div>\n{% endif %}\n",
"main_section_md": "",
"meta_description": null,
"meta_image": null,
"meta_title": null,
"modified": "2026-03-02 00:22:29.233110",
"modified": "2026-03-02 00:41:04.380754",
"module": "Church Website",
"name": "home",
"page_blocks": [],