Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved customer support to its own accordion #2214

Merged
merged 3 commits into from
Nov 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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