update service providers, chapters and bounty page

This commit is contained in:
Raghavendra Kamath
2018-04-27 18:42:45 +05:30
parent 64126b1b0a
commit f436874ab7
5 changed files with 41 additions and 42 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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 = [] %}

View File

@@ -1,51 +1,54 @@
{% 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">
<div class="card h-100 {{ 'text-muted' if m.placeholder else '' }}" style="cursor: pointer;" onclick="location.href='{{ m.route }}'">
<div class="card-body">
<a class="mr-3" href="{{ m.route }}"> <a class="mr-3" href="{{ m.route }}">
<img class="media-img img-thumbnail" src="{{ m.image or '/assets/foundation/img/gold.png' }}"> <img class="media-img" src="{{ m.image or '/assets/foundation/img/gold.png' }}">
</a> </a>
<div class="media-body"> <h4 class="mt-4">{{ m.title }}</h4>
<h4 class="media-heading">{{ m.title }}</h4> {{ m.introduction | truncate(140) }}
{{ m.introduction }}
</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 %}
@@ -57,9 +60,9 @@
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'>