From f436874ab76c5b11ac57dc0910f76d9a9bb79b33 Mon Sep 17 00:00:00 2001 From: Raghavendra Kamath Date: Fri, 27 Apr 2018 18:42:45 +0530 Subject: [PATCH] update service providers, chapters and bounty page --- .../doctype/bounty/templates/bounty.html | 2 +- .../templates/foundation_fellowship.html | 11 ++-- .../templates/service_provider.html | 5 +- .../chapter/templates/chapter_row.html | 4 +- foundation/www/service-providers.html | 61 ++++++++++--------- 5 files changed, 41 insertions(+), 42 deletions(-) diff --git a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html index 500bf36a..43512116 100644 --- a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html +++ b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html @@ -119,4 +119,4 @@ {% endblock %} - \ No newline at end of file + diff --git a/foundation/erpnext_foundation/doctype/foundation_fellowship/templates/foundation_fellowship.html b/foundation/erpnext_foundation/doctype/foundation_fellowship/templates/foundation_fellowship.html index fe8b1bf3..f9782b3c 100644 --- a/foundation/erpnext_foundation/doctype/foundation_fellowship/templates/foundation_fellowship.html +++ b/foundation/erpnext_foundation/doctype/foundation_fellowship/templates/foundation_fellowship.html @@ -1,15 +1,12 @@ {% extends "templates/web.html" %} -{% from "foundation/templates/includes/macros.html" import media %} - {% block page_content %} -

{{ title }}

+

{{ title }}

+ src="{{ image }}">
{{ introduction }} @@ -51,11 +48,11 @@
-
+
{{ details }}
-

Contact {{ title }}

+

Contact {{ title }}

{% endblock %} diff --git a/foundation/erpnext_foundation/doctype/service_provider/templates/service_provider.html b/foundation/erpnext_foundation/doctype/service_provider/templates/service_provider.html index 15e35e7b..f725e4ee 100644 --- a/foundation/erpnext_foundation/doctype/service_provider/templates/service_provider.html +++ b/foundation/erpnext_foundation/doctype/service_provider/templates/service_provider.html @@ -1,6 +1,5 @@ {% extends "templates/web.html" %} -{% from "foundation/templates/includes/macros.html" import media %} {% block page_content %}

{{ title }}

{% if membership_type %} @@ -10,7 +9,7 @@
@@ -49,6 +48,6 @@ {{ details }}
-

Contact {{ title }}

+

Contact {{ title }}

{% endblock %} diff --git a/foundation/non_profit/doctype/chapter/templates/chapter_row.html b/foundation/non_profit/doctype/chapter/templates/chapter_row.html index 44bc52f2..8af3179b 100644 --- a/foundation/non_profit/doctype/chapter/templates/chapter_row.html +++ b/foundation/non_profit/doctype/chapter/templates/chapter_row.html @@ -3,8 +3,8 @@
-
{{ doc.name | capitalize }}
-
Chapter Head : {{ frappe.db.get_value('User', chapter_head, 'full_name') }}
+
{{ doc.name | capitalize }}
+
Chapter Head : {{ frappe.db.get_value('User', chapter_head, 'full_name') }}

{% if members %} {% set index = [] %} diff --git a/foundation/www/service-providers.html b/foundation/www/service-providers.html index c78c122c..c3ff8bf3 100644 --- a/foundation/www/service-providers.html +++ b/foundation/www/service-providers.html @@ -1,65 +1,68 @@ {% extends "templates/web.html" %} - {% from "templates/includes/macros.html" import media %} - {% macro gold_member(m) %} -

- - - -
-

{{ m.title }}

- {{ m.introduction }} +
+
+
+ + + +

{{ m.title }}

+ {{ m.introduction | truncate(140) }}
+
+ {% endmacro %} {% macro silver_member(m) %} -
-
+
-

{{ m.title }}

-

{{ m.introduction | truncate(140) }}

+
+ +

{{ m.title }}

+

{{ m.introduction | truncate(140) }}

+
{% endmacro %} {% macro show_member(s) %} -
-

{{ s.title and s.title[:25] }}

-

- {{ s.introduction and s.introduction | truncate(140) }} -

+ {% endmacro %} {% block page_content %} -
+

Gold Members

+
{% for m in gold_members %} {{ gold_member(m) }} {% endfor %} +
{% if has_gold_member %}

- Become a Gold Member and get your company featured here

+ Become a Gold Member and get your company featured here

{% endif %}
-
+

Silver Members

- {% for m in silver_members %} - {{ silver_member(m) }} - {% endfor %} -
+ {% for m in silver_members %} + {{ silver_member(m) }} + {% endfor %} +
{% if has_silver_member %}

Become a Silver Member and get your company featured here

{% endif %} -
+

Individual Members

-
+
{% for s in individual_members %} {{ show_member(s) }} {% endfor %} @@ -70,8 +73,8 @@ {% endif %}
{% if not form_dict.country %} -
-

Select by country

+
+

Select by country

{% for c in countries %}