From bea522f5c0cef6ae46897aeb6312dbe2c1be20f7 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Mon, 19 Nov 2018 11:42:38 -0800 Subject: [PATCH] Moved customer support to its own accordion (#2214) * Related to #2137 - moved customer support to its own accordion --- .../templates/fragments/product-contact.html | 66 +++++++++++++++++++ .../buyersguide/templates/product_page.html | 57 +--------------- 2 files changed, 67 insertions(+), 56 deletions(-) create mode 100644 network-api/networkapi/buyersguide/templates/fragments/product-contact.html diff --git a/network-api/networkapi/buyersguide/templates/fragments/product-contact.html b/network-api/networkapi/buyersguide/templates/fragments/product-contact.html new file mode 100644 index 00000000000..305ae176356 --- /dev/null +++ b/network-api/networkapi/buyersguide/templates/fragments/product-contact.html @@ -0,0 +1,66 @@ +
+
+
+ Company makes it easy to contact customer support +
+
+ +
+
+
+
+
+
+ +
+ Phone Number + {% if product.phone_number %} + {{ product.phone_number }} + {% else %} + No + {% endif %} +
+
+
+
+
+ +
+ Live Chat + {% if product.live_chat %} + Yes + {% else %} + No + {% endif %} +
+
+
+
+
+ +
+ Email + {% if product.email %} + Yes + {% else %} + No + {% endif %} +
+
+
+
+
+ +
+ Twitter + {% if product.twitter %} + Yes + {% else %} + No + {% endif %} +
+
+
+
+
+
diff --git a/network-api/networkapi/buyersguide/templates/product_page.html b/network-api/networkapi/buyersguide/templates/product_page.html index e7ec2d5f99a..e6db5fe5ffd 100644 --- a/network-api/networkapi/buyersguide/templates/product_page.html +++ b/network-api/networkapi/buyersguide/templates/product_page.html @@ -112,62 +112,7 @@

Company shows it cares about its custome
{% include "fragments/product-criterion.html" with value=product.manage_security bad=False help=product.manage_security_helptext label="Company manages security vulnerabilities"%} -
- -

Company makes it easy to contact customer support

-
-
-
- -
- Phone Number - {% if product.phone_number %} - {{ product.phone_number }} - {% else %} - No - {% endif %} -
-
-
-
-
- -
- Live Chat - {% if product.live_chat %} - Yes - {% else %} - No - {% endif %} -
-
-
-
-
- -
- Email - {% if product.email %} - Yes - {% else %} - No - {% endif %} -
-
-
-
-
- -
- Twitter - {% if product.twitter %} - Yes - {% else %} - No - {% endif %} -
-
-
+ {% include "fragments/product-contact.html" with product=product %}

What could happen if something went wrong