From 24e19f0ca8d31c843833985a400d592e83a4f527 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 1 May 2019 16:25:20 +0530 Subject: [PATCH] feat: added Annual Reports and Foundation Project --- .../doctype/foundation_project/__init__.py | 0 .../foundation_project/foundation_project.js | 8 ++ .../foundation_project.json | 76 ++++++++++++++++++ .../foundation_project/foundation_project.py | 10 +++ .../test_foundation_project.py | 10 +++ foundation/hooks.py | 11 +-- .../templates/includes/footer/footer.html | 2 +- .../www/{about.html => about/index.html} | 14 ++-- foundation/www/about/projects.html | 38 +++++++++ .../foundation-2017-18-balance-sheet.pdf | Bin 0 -> 59609 bytes .../foundation-2017-18-profit-and-loss.pdf | Bin 0 -> 65712 bytes foundation/www/about/reports/2017-18/index.md | 33 ++++++++ .../foundation-2018-19-balance-sheet.pdf | Bin 0 -> 59505 bytes .../foundation-2018-19-profit-and-loss.pdf | Bin 0 -> 66707 bytes foundation/www/about/reports/2018-19/index.md | 40 +++++++++ foundation/www/about/reports/index.html | 40 +++++++++ foundation/www/faq.css | 3 + foundation/www/faq.html | 10 +-- foundation/www/get-started.html | 6 +- foundation/www/index.html | 10 +-- foundation/www/members/index.html | 2 +- foundation/www/service-providers.html | 6 +- 22 files changed, 285 insertions(+), 34 deletions(-) create mode 100644 foundation/erpnext_foundation/doctype/foundation_project/__init__.py create mode 100644 foundation/erpnext_foundation/doctype/foundation_project/foundation_project.js create mode 100644 foundation/erpnext_foundation/doctype/foundation_project/foundation_project.json create mode 100644 foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py create mode 100644 foundation/erpnext_foundation/doctype/foundation_project/test_foundation_project.py rename foundation/www/{about.html => about/index.html} (92%) create mode 100644 foundation/www/about/projects.html create mode 100644 foundation/www/about/reports/2017-18/foundation-2017-18-balance-sheet.pdf create mode 100644 foundation/www/about/reports/2017-18/foundation-2017-18-profit-and-loss.pdf create mode 100644 foundation/www/about/reports/2017-18/index.md create mode 100644 foundation/www/about/reports/2018-19/foundation-2018-19-balance-sheet.pdf create mode 100644 foundation/www/about/reports/2018-19/foundation-2018-19-profit-and-loss.pdf create mode 100644 foundation/www/about/reports/2018-19/index.md create mode 100644 foundation/www/about/reports/index.html create mode 100644 foundation/www/faq.css diff --git a/foundation/erpnext_foundation/doctype/foundation_project/__init__.py b/foundation/erpnext_foundation/doctype/foundation_project/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.js b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.js new file mode 100644 index 00000000..fd565f15 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.js @@ -0,0 +1,8 @@ +// Copyright (c) 2019, EOSSF and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Foundation Project', { + // refresh: function(frm) { + + // } +}); diff --git a/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.json b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.json new file mode 100644 index 00000000..7513839d --- /dev/null +++ b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.json @@ -0,0 +1,76 @@ +{ + "autoname": "field:title", + "creation": "2019-05-01 13:23:27.416290", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "title", + "show_in_website", + "status", + "project_date", + "description", + "url" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Title", + "reqd": 1, + "unique": 1 + }, + { + "fieldname": "description", + "fieldtype": "Text Editor", + "in_list_view": 1, + "label": "Description", + "reqd": 1 + }, + { + "fieldname": "url", + "fieldtype": "Data", + "in_list_view": 1, + "label": "URL", + "reqd": 1 + }, + { + "fieldname": "status", + "fieldtype": "Select", + "label": "Status", + "options": "Ongoing\nCompleted\nAbandoned\nPlanned" + }, + { + "fieldname": "show_in_website", + "fieldtype": "Check", + "label": "Show in Website" + }, + { + "fieldname": "project_date", + "fieldtype": "Date", + "label": "Project Date" + } + ], + "modified": "2019-05-01 13:29:19.465870", + "modified_by": "Administrator", + "module": "ERPNext Foundation", + "name": "Foundation Project", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "ASC", + "track_changes": 1 +} \ No newline at end of file diff --git a/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py new file mode 100644 index 00000000..2a8ce0e4 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, EOSSF and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class FoundationProject(Document): + pass diff --git a/foundation/erpnext_foundation/doctype/foundation_project/test_foundation_project.py b/foundation/erpnext_foundation/doctype/foundation_project/test_foundation_project.py new file mode 100644 index 00000000..06410d22 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/foundation_project/test_foundation_project.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, EOSSF and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestFoundationProject(unittest.TestCase): + pass diff --git a/foundation/hooks.py b/foundation/hooks.py index 1ad3563b..a58bf17e 100644 --- a/foundation/hooks.py +++ b/foundation/hooks.py @@ -42,7 +42,7 @@ template_apps = ['foundation', 'frappe_theme', 'erpnext', 'frappe'] website_context = { # "navbar_search": 1, "repo": "erpnext/foundation", - "brand_html": "Opensource ERP SoftwareERPNext.org", + "brand_html": "Opensource ERP SoftwareERPNext Foundation", "top_bar_items": [ {"label": "ERPNext", "child_items":[ {"label": "User Stories", "url": "/stories"}, @@ -55,17 +55,18 @@ website_context = { ], "right":1}, {"label": "Community", "child_items":[ {"label": "Forum", "url": "https://discuss.erpnext.com", "target": "target='_blank'"}, - {"label": "Conference 2018", "url": "/conf/2018"}, {"label": "Chapters", "url": "/chapter-list"}, {"label": "Fellows", "url": "/fellows"}, - {"label": "Write for ERPNext", "url": "/write-for-us"} + {"label": "Conference 2018", "url": "/conf/2018"}, ], "right":1}, {"label": "Services", "child_items":[ - {"label": "Service Providers", "url": "/service-providers"}, + {"label": "Member Listing", "url": "/service-providers"}, {"label": "Freelancer Jobs", "url": "/erpnext-jobs"}, - {"label": "Become a Service Provider", "url": "/faq"} + {"label": "Become a Member", "url": "/faq"} ], "right":1}, {"label": "Foundation", "child_items":[ + {"label": "Projects", "url": "/about/projects"}, + {"label": "Annual Reports", "url": "/about/reports"}, {"label": "About", "url": "/about"}, {"label": "Blog", "url": "/blog"}, {"label": "Memberships", "url": "/members"}, diff --git a/foundation/templates/includes/footer/footer.html b/foundation/templates/includes/footer/footer.html index 8f0724f4..7e51c9a5 100644 --- a/foundation/templates/includes/footer/footer.html +++ b/foundation/templates/includes/footer/footer.html @@ -60,7 +60,7 @@
Community