minor tweaks for service providers

This commit is contained in:
Raghavendra Kamath
2018-02-22 14:37:25 +05:30
parent 0507bca6db
commit 4edc677117
13 changed files with 473 additions and 338 deletions

View File

@@ -6,11 +6,11 @@
{% block content%}
<div class="page">
<section class='top-spacer hero centered about'>
<section class='top-spacer hero text-center about'>
<div class="container">
<img class="about-img" src="/assets/foundation/img/community-colored.png">
<h1 class="title">ERPNext Foundation</h1>
<p class="intro-copy">We are a Non Profit Foundation representing a community of ERPNext Users, Developers and Service Providers. Our goal is to provide a platform for the ERPNext Community to come together, join hands and build assets to help build and enhance ERPNext around the world.</p><p class="intro-copy"> ERPNext Foundation aims to be a community driven organization and run in a transparent manner. If you want to be more involved in the ERPNext Community, read the <a href="/faq" class="secondary-links" target="_blank">FAQ</a>.
<p class="intro-copy">We are a Non Profit Foundation representing a community of ERPNext Users, Developers and Service Providers. Our goal is to provide a platform for the ERPNext Community to come together, join hands and build assets to help build and enhance ERPNext around the world.</p><p class="intro-copy"> ERPNext Foundation aims to be a community driven organization and run in a transparent manner. If you want to be more involved in the ERPNext Community, read the <a href="/faq" class="secondary-link" target="_blank">FAQ</a>.
</div>
</section>
<div class="page-content">

View File

@@ -1,17 +1,17 @@
{% extends "templates/base.html" %}
{% extends "foundation/templates/base.html" %}
{% block title %}ERPNext Foundation{% endblock %}
{% block content %}
<section class='feature hero centered'>
<section class='feature hero text-center'>
<div class="container">
<img class="hero-illustration" src='/assets/foundation/img/hero-illustration-erpnext.png'>
<h1 class="title">ERP for Everybody</h1>
<h1 class="header1">ERP for Everybody</h1>
<p class='intro-copy text-light'>A free and opensource do-it-yourself business management system that will help you stay in control.</p>
<a class="button button-primary" href="https://erpnext.com/pricing">Get Started</a>
</div>
</section>
<section class="feature gray-bg left-aligned">
<div class="container">
<h1 class="subtitle">One App Many Domains</h1>
<h2 class="header1 bottom-spacer-4 text-center">One App Many Domains</h1>
<ul class="list grid-of-four">
<li class="list-items grid-items">
<a class="primary-links domain-links" href="/docs/user/manual/en/manufacturing">
@@ -52,9 +52,9 @@
</section>
<section class="feature community-bg text-white">
<div class="container">
<div class="centered">
<h1 class="title">ERPNext Foundation</h1>
<p class="intro-copy">ERPNext Foundation is a community of ERPNext Users, Developers and Service Providers. The goal of the ERPNext Foundation is to provide a platform for the ERPNext Community to come together, join hands and build assets to help build and enhance ERPNext around the world.</p>
<div class="text-center">
<h1 class="header1">ERPNext Foundation</h1>
<p class="intro-copy">ERPNext Foundation is a community of ERPNext users, developers and service providers. The goal of the ERPNext Foundation is to provide a platform for the ERPNext Community to come together, join hands and build assets to help build and enhance ERPNext around the world.</p>
<a href="/members/details" class="button button-secondary">Become a Member</a>
</div>
</div>
@@ -68,7 +68,7 @@
{# get first three events from portal events doctype #}
{% for e in events[:3] %}
<li>
<a href="{{ e.route }}" class="secondary-link">{{ frappe.format_date(e.event_date, "medium") }} - {{ e.event_title }}</a>
<a href="{{ e.route }}" class="secondary-link"><b>{{ e.event_title }}</b><br>{{ frappe.format_date(e.event_date, "medium") }}</a>
</li>
{% endfor %}
</ul>
@@ -96,9 +96,9 @@
<li>
<a href="https://discuss.erpnext.com/" class="secondary-link">Ask in our forum</a>
</li>
<li>
<!-- <li>
<a href="" class="secondary-link">Get Paid Support</a>
</li>
</li>-->
</ul>
</div>
</div>

View File

@@ -7,12 +7,7 @@
{% block page_content %}
<section>
<h1>Memberships</h1>
<p class='lead'>Be a Part of the ERPNext Foundation</p>
</section>
<section>
<h3>Introduction</h3>
<p>
The ERPNext Foundation aims to be driven by its members. By becoming a members, you get
<p>Be a Part of the ERPNext Foundation. The ERPNext Foundation aims to be driven by its members. By becoming a members, you get
a preferred listing on the ERPNext Job Board and access to incoming requests for implementation
and customization jobs<br>
</p>

View File

@@ -1,95 +1,95 @@
{% extends "templates/web.html" %}
{% extends "foundation/templates/web.html" %}
{% from "foundation/templates/includes/macros.html" import media %}
{% macro gold_member(m) %}
<div class='gold-member'>
<div class="media with-border clickable {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
<div class="media {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
{% if m.image %}
<div class="media-left">
<a href="{{ m.route }}">
<img class="media-object" src="{{ m.image or '/assets/foundation/img/gold.png' }}"
style="max-width: 72px;">
<img class="thumb-small media-object" src="{{ m.image or '/assets/foundation/img/gold.png' }}">
</a>
</div>
{% endif %}
<div class="media-body">
<h4 class="media-heading">{{ m.title }}</h4>
<p><span class=label>Gold Member</span></p>
{{ m.introduction }}
</div>
</div>
</div>
{% endmacro %}
{% macro silver_member(m) %}
<div class='col-sm-4'>
<div class="silver-member with-border clickable {{ 'text-muted' if m.placeholder else '' }}"
<div class="silver-member clickable {{ 'text-muted' if m.placeholder else '' }}"
style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
<h4>{{ m.title }}</h4>
<p><span class=label>Silver Member</span></p>
<p>{{ m.introduction[:100] }}</p>
<p>{{ m.introduction | truncate(140) }}</p>
</div>
</div>
{% endmacro %}
{% macro show_member(s) %}
<div class='col-sm-4' style='height: 130px; padding-bottom: 30px'>
<div class='columns'>
<h3><a class='secondary-link bold' href="/{{ s.route }}">{{ s.title and s.title[:25] }}</a></h3>
<p>
<a class='bold' href="/{{ s.route }}">{{ s.title and s.title[:25] }}</a><br>
{{ s.introduction and s.introduction[:100] }}
{{ s.introduction and s.introduction | truncate(140) }}
</p>
</div>
{% endmacro %}
{% block page_content %}
<h1 class='media-heading' style='margin-bottom: 30px;'>{{ title }}</h1>
{% if form_dict.country %}
{% endif %}
<section>
<section class="gold bottom-spacer-4">
<h2 class='media-heading'>Gold Members</h2>
{% for m in gold_members %}
{{ gold_member(m) }}
{% endfor %}
{% if has_gold_member %}
<p><a class='text-muted' href='/members'>
<p class="top-spacer text-center"><a class='text-muted' href='/members'>
Become a Gold Member and get your company featured here</a></p>
{% endif %}
</section>
<section>
<div class='row'>
<section class="silver bottom-spacer-4">
<h2 class='media-heading'>Silver Members</h2>
<div class="grid-of-three">
{% for m in silver_members %}
{{ silver_member(m) }}
{% endfor %}
</div>
</div>
{% if has_silver_member %}
<p class="top-spacer text-center"><a class='text-muted' href='/members'>
Become a Silver Member and get your company featured here</a></p>
{% endif %}
</section>
<section>
<section class="bottom-spacer-4">
<h2>Individual Members</h2>
<div class='row'>
{% for s in individual_members %}
{{ show_member(s) }}
{% endfor %}
<div class="grid-of-three">
{% for s in individual_members %}
{{ show_member(s) }}
{% endfor %}
</div>
</section>
{% if form_dict.country %}
<section>
<section class="bottom-spacer-4">
<h2>Other Service Providers</h2>
<div class='row'>
{% for s in service_providers %}
{{ show_member(s) }}
{% endfor %}
</div>
<div class="grid-of-three">
{% for s in service_providers %}
{{ show_member(s) }}
{% endfor %}
</div>
</section>
{% else %}
<section>
<h2>Select by country</h2>
<div class='row'>
<div class='four-column flex-wrap'>
{% for c in countries %}
<div class='col-sm-4'>
<div class='countries columns'>
<p>
<a href="/service-providers?country={{ c[0] }}">{{ c[0] }} ({{ c[1] }})</a>
<a class="secondary-link" href="/service-providers?country={{ c[0] }}">{{ c[0] }} ({{ c[1] }})</a>
</p>
</div>
{% endfor %}
</div>
</section>
{% endif %}
{% endblock %}
{% endblock %}

View File

@@ -26,7 +26,6 @@ def get_context(context):
context.gold_members.append(dict(
title='Your Company',
introduction='Become a Gold Member today and get your company featured here',
image='/assets/foundation/img/gold.png',
route='/members',
placeholder=True
))
@@ -38,17 +37,16 @@ def get_context(context):
context.silver_members = frappe.get_all('Service Provider', 'title, introduction, `image`, route',
filters, debug=1)
# round to 3 columns
for i in xrange(3 - (len(context.silver_members) % 3)):
if context.silver_members:
context.has_silver_member = 1
else:
context.silver_members.append(dict(
title='Your Company',
introduction='Become a Silver Member today and get your company featured here',
image='/assets/foundation/img/silver.png',
introduction='Become a silver Member today and get your company featured here',
route='/members',
placeholder=True
))
context.individual_members = []
individual_members = [d.name for d in frappe.get_all('Member',
dict(membership_type='Individual'))]