forked from apigee/apigee-m10n-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conflicting-products.html.twig
42 lines (42 loc) · 1.17 KB
/
conflicting-products.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{#
/**
* @file
* Default theme implementation to conflicting/overlapping products.
*
* Variables:
* - items: Confcliting plans.
*/
#}
{% if items %}
<h4
class="conflict-message">{{ 'The plans below share some common products with the plan you are trying to purchase. However if you continue to purchase then these plans will be replaced by the plan you are about to purchase'|t }}</h4>
<table class='conflicting-produts'>
<thead>
<tr>
<th>{{ 'Already Purchased Plan'|t }}</th>
<th>{{ 'Has Product'|t }}</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td>{{ item.data }}</td>
<td>
{% for situation_item in item.children %}
<h3 class="conflict-type-name">
<strong>{{ situation_item.data }}</strong>
</h3>
<div class="item-list">
<ul>
{% for situation_children in situation_item.children %}
<li class="conflict">{{ situation_children }}</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}