Skip to content

Commit

Permalink
Moved customer support to its own accordion (#2214)
Browse files Browse the repository at this point in the history
* Related to #2137 - moved customer support to its own accordion
  • Loading branch information
mmmavis authored and Pomax committed Nov 19, 2018
1 parent ecb12c4 commit 0e318a3
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<div class="criterion criterion-contact">
<div class="primary-info">
<div class="d-flex align-items-center">
<span>Company makes it easy to contact customer support</span>
</div>
<div class="rating">
<button class="toggle mr-0"></button>
</div>
</div>
<div class="helptext mt-2">
<div class="row mt-4 mb-3">
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-phone.svg" width="28" height="28" />
<div>
<strong class="d-block">Phone Number</strong>
{% if product.phone_number %}
{{ product.phone_number }}
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-chat.svg" width="31" height="26" />
<div>
<strong class="d-block">Live Chat</strong>
{% if product.live_chat %}
<a id="product-live-chat" target="_blank" href={{ product.live_chat }}>Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-mail.svg" width="31" height="23" />
<div>
<strong class="d-block">Email</strong>
{% if product.email %}
<a href="{{ product.email }}">Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-twitter.svg" width="31" height="23" />
<div>
<strong class="d-block">Twitter</strong>
{% if product.twitter %}
<a href="https://twitter.com/{{product.twitter}}">Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
57 changes: 1 addition & 56 deletions network-api/networkapi/buyersguide/templates/product_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,62 +112,7 @@ <h3 class="h3-heading h3-heading-small">Company shows it cares about its custome

<div class="mb-5">
{% include "fragments/product-criterion.html" with value=product.manage_security bad=False help=product.manage_security_helptext label="Company manages security vulnerabilities"%}
</div>

<h4 class="normal">Company makes it easy to contact customer support</h4>
<div class="row mb-5">
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-phone.svg" width="28" height="28" />
<div>
<strong class="d-block">Phone Number</strong>
{% if product.phone_number %}
{{ product.phone_number }}
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-chat.svg" width="31" height="26" />
<div>
<strong class="d-block">Live Chat</strong>
{% if product.live_chat %}
<a id="product-live-chat" target="_blank" href={{ product.live_chat }}>Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-mail.svg" width="31" height="23" />
<div>
<strong class="d-block">Email</strong>
{% if product.email %}
<a href="{{ product.email }}">Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="spy">
<img src="/_images/buyers-guide/icon-twitter.svg" width="31" height="23" />
<div>
<strong class="d-block">Twitter</strong>
{% if product.twitter %}
<a href="https://twitter.com/{{product.twitter}}">Yes</a>
{% else %}
No
{% endif %}
</div>
</div>
</div>
{% include "fragments/product-contact.html" with product=product %}
</div>

<h3 class="h3-heading h3-heading-small">What could happen if something went wrong</h3>
Expand Down

0 comments on commit 0e318a3

Please sign in to comment.