mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
[new] Foundation Fellowship Doctype Added
This commit is contained in:
@@ -377,8 +377,8 @@
|
|||||||
"bold": 0,
|
"bold": 0,
|
||||||
"collapsible": 0,
|
"collapsible": 0,
|
||||||
"columns": 0,
|
"columns": 0,
|
||||||
"fieldname": "discuss_ids",
|
"fieldname": "discuss_id",
|
||||||
"fieldtype": "Small Text",
|
"fieldtype": "Data",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"ignore_user_permissions": 0,
|
"ignore_user_permissions": 0,
|
||||||
"ignore_xss_filter": 0,
|
"ignore_xss_filter": 0,
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
"in_global_search": 0,
|
"in_global_search": 0,
|
||||||
"in_list_view": 0,
|
"in_list_view": 0,
|
||||||
"in_standard_filter": 0,
|
"in_standard_filter": 0,
|
||||||
"label": "Discuss IDs",
|
"label": "Discuss ID",
|
||||||
"length": 0,
|
"length": 0,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
@@ -504,7 +504,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2017-10-27 05:04:34.941231",
|
"modified": "2017-10-27 05:14:36.189151",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "ERPNext Foundation",
|
"module": "ERPNext Foundation",
|
||||||
"name": "Foundation Fellowship",
|
"name": "Foundation Fellowship",
|
||||||
|
|||||||
@@ -7,4 +7,23 @@ import frappe
|
|||||||
from frappe.website.website_generator import WebsiteGenerator
|
from frappe.website.website_generator import WebsiteGenerator
|
||||||
|
|
||||||
class FoundationFellowship(WebsiteGenerator):
|
class FoundationFellowship(WebsiteGenerator):
|
||||||
pass
|
_website = frappe._dict(
|
||||||
|
condition_field = "show_in_website",
|
||||||
|
)
|
||||||
|
def validate(self):
|
||||||
|
if not self.route:
|
||||||
|
self.route = 'foundation-fellow/' + self.scrub(self.name)
|
||||||
|
|
||||||
|
def get_context(self, context):
|
||||||
|
context.no_cache = True
|
||||||
|
context.parents = [dict(label='View All Foundation Fellows',
|
||||||
|
route='foundation-fellow', title='View All foundation fellows')]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def get_list_context(context):
|
||||||
|
context.allow_guest = True
|
||||||
|
context.no_cache = True
|
||||||
|
context.no_breadcrumbs = True
|
||||||
|
context.order_by = 'creation desc'
|
||||||
|
context.introduction = '<p>Following are the Foundation Fellows</p>'
|
||||||
@@ -1,7 +1,61 @@
|
|||||||
{% extends "templates/web.html" %}
|
{% extends "templates/web.html" %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% from "foundation/templates/includes/macros.html" import media %}
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
<!-- this is a sample default web page template -->
|
{% block page_content %}
|
||||||
|
<h1 class="media-heading">{{ title }}</h1>
|
||||||
|
<section>
|
||||||
|
<div class="media" style="margin: 45px 0px; ">
|
||||||
|
<div class="media-left" style='min-width: 80px;'>
|
||||||
|
<a href="#">
|
||||||
|
<img class="media-object"
|
||||||
|
src="{{ image }}"
|
||||||
|
style="max-width: 80px; ">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="media-body">
|
||||||
|
{{ introduction }}
|
||||||
|
<table class='table table-bordered small'
|
||||||
|
style='max-width: 400px; margin-bottom: 0px; margin-top: 20px'>
|
||||||
|
<tr>
|
||||||
|
<td style='width: 38.2%'>Country</td>
|
||||||
|
<td>{{ country }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Address</td>
|
||||||
|
<td>{{ (address or '').replace('\n', '<br>') }}</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<td>Phone</td>
|
||||||
|
<td>{{ phone }}</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<td>Email</td>
|
||||||
|
<td><a href="mailto:{{ email }}" target="_blank">
|
||||||
|
{{ email }}</a></td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<td>Disscuss Id</td>
|
||||||
|
<td>{{ discuss_id }}</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<td>Github Id</td>
|
||||||
|
<td>{{ github_id }}</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<td>Website</td>
|
||||||
|
<td><a href="{{ website }}" target="_blank">{{ website }}</a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
{{ details }}
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<p><a class='btn-primary btn' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
<div>
|
<div style='margin-bottom: 30px; max-width: 600px;'
|
||||||
<a href={{ route }}>{{ title }}</a>
|
class='with-border clickable'>
|
||||||
|
<a href="/{{ doc.route }}">
|
||||||
|
<h3 style='margin-top: 0px;'>{{ doc.title }}</h3>
|
||||||
|
<p>
|
||||||
|
<span class='label'>{{ frappe.format_date(doc.creation) }}</span>
|
||||||
|
<span class='label'>{{ doc.country }}</span>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- this is a sample default list template -->
|
|
||||||
@@ -43,15 +43,18 @@ website_context = {
|
|||||||
"copyright": "ERPNext Open Source Software Foundation",
|
"copyright": "ERPNext Open Source Software Foundation",
|
||||||
"footer_address": "<br>ERPNext is and will always be 100% Open Source",
|
"footer_address": "<br>ERPNext is and will always be 100% Open Source",
|
||||||
"top_bar_items": [
|
"top_bar_items": [
|
||||||
{"label": "Docs", "url": "/docs", "right": 1},
|
{"label": "User Manual", "url": "/docs", "right": 1},
|
||||||
{"label": "Services", "url": "/service-providers", "right": 1},
|
{"label": "Foundation", "child_items":[
|
||||||
{"label": "Jobs", "url": "/erpnext-jobs", "right": 1},
|
{"label": "Chapter", "url": "/chapters","right": 1},
|
||||||
{"label": "Chapters", "url": "/chapters", "right": 1},
|
{"label": "Foundation Fellow", "url": "/foundation-fellow","right": 1}
|
||||||
{"label": "Bounties", "url": "/bounties", "right": 1},
|
], "right":1},
|
||||||
{"label": '<span class="indicator blue">Conference</span>', "url": "/conf/2017", "right": 1},
|
{"label": "Services", "child_items":[
|
||||||
|
{"label": "Service Providers", "url": "/service-providers","right": 1},
|
||||||
|
{"label": "Freelancer Jobs", "url": "/erpnext-jobs", "right": 1},
|
||||||
|
], "right":1},
|
||||||
{"label": "About", "url": "/about", "right": 1},
|
{"label": "About", "url": "/about", "right": 1},
|
||||||
],
|
],
|
||||||
"hide_login": 1,
|
"hide_login": 0,
|
||||||
"favicon": "/assets/frappe_theme/img/favicon.ico"
|
"favicon": "/assets/frappe_theme/img/favicon.ico"
|
||||||
}
|
}
|
||||||
# website user home page (by Role)
|
# website user home page (by Role)
|
||||||
@@ -70,6 +73,7 @@ website_context = {
|
|||||||
|
|
||||||
portal_menu_items = [
|
portal_menu_items = [
|
||||||
{'label': 'My Profile', 'route': '/service-provider-settings'},
|
{'label': 'My Profile', 'route': '/service-provider-settings'},
|
||||||
|
{'label': 'Module Leader', 'route': '/module-leader-settings'},
|
||||||
{'label': 'Membership', 'route': '/members/details'},
|
{'label': 'Membership', 'route': '/members/details'},
|
||||||
{'label': 'Conference Talks', 'route': '/conference-talk-proposal'},
|
{'label': 'Conference Talks', 'route': '/conference-talk-proposal'},
|
||||||
{'label': 'Jobs', 'route': '/my-jobs'},
|
{'label': 'Jobs', 'route': '/my-jobs'},
|
||||||
|
|||||||
Reference in New Issue
Block a user