mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
update service providers, chapters and bounty page
This commit is contained in:
@@ -119,4 +119,4 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<!-- this is a sample default web page template -->
|
<!-- this is a sample default web page template -->
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
{% extends "templates/web.html" %}
|
{% extends "templates/web.html" %}
|
||||||
|
|
||||||
{% from "foundation/templates/includes/macros.html" import media %}
|
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<h1 class="media-heading">{{ title }}</h1>
|
<h1 class="mb-4">{{ title }}</h1>
|
||||||
<section>
|
<section>
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<img class="mr-3 media-img"
|
<img class="mr-3 media-img"
|
||||||
src="{{ image }}"
|
src="{{ image }}">
|
||||||
style="max-width: 80px; ">
|
|
||||||
</a>
|
</a>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
{{ introduction }}
|
{{ introduction }}
|
||||||
@@ -51,11 +48,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section class="mt-4">
|
||||||
{{ details }}
|
{{ details }}
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<p><a class='btn-primary btn' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
<p><a class='mt-4 btn-primary btn' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "templates/web.html" %}
|
{% extends "templates/web.html" %}
|
||||||
|
|
||||||
{% from "foundation/templates/includes/macros.html" import media %}
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<h1 class="media-heading">{{ title }}</h1>
|
<h1 class="media-heading">{{ title }}</h1>
|
||||||
{% if membership_type %}
|
{% if membership_type %}
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<img class="media-object"
|
<img class="media-img media-object"
|
||||||
src="{{ image }}">
|
src="{{ image }}">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,6 +48,6 @@
|
|||||||
{{ details }}
|
{{ details }}
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<p><a class='btn-primary btn' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
<p><a class='mt-4 btn-primary btn' href="mailto:{{ email }}">Contact {{ title }}</a></p>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<div class="mb-4 col-xs-12 col-sm-12">
|
<div class="mb-4 col-xs-12 col-sm-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<a href={{ route }}><h5 class="card-title">{{ doc.name | capitalize }}</h5></a>
|
<a class="dark-link" href={{ route }}><h5 class="card-title">{{ doc.name | capitalize }}</h5></a>
|
||||||
<h6 class="card-subtitle mb-2 text-muted">Chapter Head : {{ frappe.db.get_value('User', chapter_head, 'full_name') }}</h6>
|
<h6 class="card-subtitle mb-2">Chapter Head : {{ frappe.db.get_value('User', chapter_head, 'full_name') }}</h6>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{% if members %}
|
{% if members %}
|
||||||
{% set index = [] %}
|
{% set index = [] %}
|
||||||
|
|||||||
@@ -1,65 +1,68 @@
|
|||||||
{% extends "templates/web.html" %}
|
{% extends "templates/web.html" %}
|
||||||
|
|
||||||
{% from "templates/includes/macros.html" import media %}
|
{% from "templates/includes/macros.html" import media %}
|
||||||
|
|
||||||
{% macro gold_member(m) %}
|
{% macro gold_member(m) %}
|
||||||
<div class="media mb-4 {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
|
<div class="col-sm-6 mb-4">
|
||||||
<a class="mr-3" href="{{ m.route }}">
|
<div class="card h-100 {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
|
||||||
<img class="media-img img-thumbnail" src="{{ m.image or '/assets/foundation/img/gold.png' }}">
|
<div class="card-body">
|
||||||
</a>
|
<a class="mr-3" href="{{ m.route }}">
|
||||||
<div class="media-body">
|
<img class="media-img" src="{{ m.image or '/assets/foundation/img/gold.png' }}">
|
||||||
<h4 class="media-heading">{{ m.title }}</h4>
|
</a>
|
||||||
{{ m.introduction }}
|
<h4 class="mt-4">{{ m.title }}</h4>
|
||||||
|
{{ m.introduction | truncate(140) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro silver_member(m) %}
|
{% macro silver_member(m) %}
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4 mb-4">
|
||||||
<div class="box clickable {{ 'text-muted' if m.placeholder else '' }}"
|
<div class="card h-100 clickable {{ 'text-muted' if m.placeholder else '' }}"
|
||||||
style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
|
style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
|
||||||
<h4>{{ m.title }}</h4>
|
<div class="card-body">
|
||||||
<p>{{ m.introduction | truncate(140) }}</p>
|
|
||||||
|
<h4 class="card-title">{{ m.title }}</h4>
|
||||||
|
<p class="card-text">{{ m.introduction | truncate(140) }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro show_member(s) %}
|
{% macro show_member(s) %}
|
||||||
<div class='col-sm-4'>
|
<div class="col-sm-4 mb-4">
|
||||||
<h3><a href="/{{ s.route }}">{{ s.title and s.title[:25] }}</a></h3>
|
<a class="card-text" href="/{{ s.route }}">{{ s.title and s.title[:25] }}</a>
|
||||||
<p>
|
|
||||||
{{ s.introduction and s.introduction | truncate(140) }}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<section class="px-3">
|
<section class="mb-5">
|
||||||
<h3 class="mb-5">Gold Members</h3>
|
<h3 class="mb-5">Gold Members</h3>
|
||||||
|
<div class="row">
|
||||||
{% for m in gold_members %}
|
{% for m in gold_members %}
|
||||||
{{ gold_member(m) }}
|
{{ gold_member(m) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% if has_gold_member %}
|
{% if has_gold_member %}
|
||||||
<p class="pt-3"><a href='/members'>
|
<p class="pt-3"><a href='/members'>
|
||||||
Become a Gold Member and get your company featured here</a></p>
|
Become a Gold Member and get your company featured here</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="my-5 px-3">
|
<section class="my-5">
|
||||||
<h3 class="mb-5">Silver Members</h3>
|
<h3 class="mb-5">Silver Members</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% for m in silver_members %}
|
{% for m in silver_members %}
|
||||||
{{ silver_member(m) }}
|
{{ silver_member(m) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if has_silver_member %}
|
{% if has_silver_member %}
|
||||||
<p class="pt-3"><a href='/members'>
|
<p class="pt-3"><a href='/members'>
|
||||||
Become a Silver Member and get your company featured here</a></p>
|
Become a Silver Member and get your company featured here</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
<section class="my-5 px-3">
|
<section class="my-5">
|
||||||
<h3 class="mb-5">Individual Members</h3>
|
<h3 class="mb-5">Individual Members</h3>
|
||||||
<div class="row page-padding">
|
<div class="row">
|
||||||
{% for s in individual_members %}
|
{% for s in individual_members %}
|
||||||
{{ show_member(s) }}
|
{{ show_member(s) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -70,8 +73,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% if not form_dict.country %}
|
{% if not form_dict.country %}
|
||||||
<section class="my-5 px-3">
|
<section class="my-5">
|
||||||
<h3>Select by country</h3>
|
<h3 class="mb-5">Select by country</h3>
|
||||||
<div class='row'>
|
<div class='row'>
|
||||||
{% for c in countries %}
|
{% for c in countries %}
|
||||||
<div class='col-xs-2 col-sm-4 col-md-3'>
|
<div class='col-xs-2 col-sm-4 col-md-3'>
|
||||||
|
|||||||
Reference in New Issue
Block a user