|
1 | 1 | {% if pos_transitions|length %} |
2 | | -<h4>Transitions to Pursue</h4> |
3 | | -<div class="list-group"> |
| 2 | +<div class="panel panel-info"> |
| 3 | + <div class="panel-heading">Transitions to Pursue</div> |
| 4 | + <div class="panel-body"> |
4 | 5 | {% for grouper, list in pos_transitions|groupby('transition_label') %} |
5 | 6 | {% for e in list %} |
6 | 7 | {% if loop.first %} |
7 | | - <a href="#" class="list-group-item" uri='{{e.transition.value }}'> |
8 | | - <h4 class="list-group-item-heading">{{ e.transition_label.value }}</h4> |
9 | | - <p class="list-group-item-text"> |
| 8 | + <div uri='{{e.transition.value }}'> |
| 9 | + <h4>Transition from <strong>{{ e.transformable_situation_label.value }}</strong> to <strong>{{ e.post_situation_label.value }}</strong>{% if e.filter_condition_label.value != 'none' %} given a filter condition of <strong>{{ e.filter_condition_label.value }}</strong>{% endif %}. <span class="badge">{{ e.transition_label.value }}</span> |
| 10 | + </h4> |
| 11 | + |
10 | 12 | <table class="table table-striped"> |
11 | | - <thead> |
12 | | - <tr><th class='col-sm-2'>Condition</th><th>Situation</th></tr> |
13 | | - </thead> |
14 | 13 | <tbody> |
15 | | - <tr><th>Transformable situation</th><td>{{ e.transformable_situation_label.value }}</td></tr> |
16 | | - <tr><th>Filter condition</th><td>{{ e.filter_condition_label.value }}</td></tr> |
17 | | - <tr><th>Post situation</th><td>{{ e.post_situation_label.value }}</td></tr> |
| 14 | + <tr><th class="col-md-3">Care action</th><td>{{ e.care_action_label.value }}</td></tr> |
18 | 15 | {% endif %} |
19 | 16 | {% if e.inverse_transition %} |
20 | | - <tr><th>Inverse transition</th><td>{{ e.irec_label.value }} <span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span></td></tr> |
| 17 | + <tr><th class="col-md-3">Inverse transition</th><td><span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span> <span class="badge">{{ e.irec_stripped.value }}</span> <small>({{ e.irec_label.value }})</small></td></tr> |
21 | 18 | {% endif %} |
22 | 19 | {% if e.similar_transition %} |
23 | | - <tr><th>Similar transition</th><td>{{ e.srec_label.value }} <span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span></td></tr> |
| 20 | + <tr><th class="col-md-3">Similar transition</th><td><span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span> <span class="badge">{{ e.srec_stripped.value }}</span> <small>({{ e.srec_label.value }})</small></td></tr> |
24 | 21 | {% endif %} |
25 | 22 | {% if loop.last %} |
26 | 23 | </tbody> |
27 | 24 | </table> |
28 | 25 |
|
29 | | - </p> |
30 | | - </a> |
| 26 | + |
| 27 | + </div> |
31 | 28 | {% endif %} |
32 | 29 | {% endfor %} |
33 | 30 | {% endfor %} |
34 | | -</div> |
| 31 | + |
35 | 32 | {% endif %} |
36 | 33 |
|
37 | 34 | {% if neg_transitions|length %} |
38 | | -<h4>Transitions to Avoid</h4> |
39 | | -<div class="list-group"> |
| 35 | +<div class="panel panel-warning"> |
| 36 | + <div class="panel-heading">Transitions to Avoid</div> |
| 37 | + <div class="panel-body"> |
40 | 38 | {% for grouper, list in neg_transitions|groupby('transition_label') %} |
41 | 39 | {% for e in list %} |
42 | 40 | {% if loop.first %} |
43 | | - <a href="#" class="list-group-item" uri='{{e.transition.value }}'> |
44 | | - <h4 class="list-group-item-heading">{{ e.transition_label.value }}</h4> |
45 | | - <p class="list-group-item-text"> |
| 41 | + <div uri='{{e.transition.value }}'> |
| 42 | + <h4>Transition from <strong>{{ e.transformable_situation_label.value }}</strong> to <strong>{{ e.post_situation_label.value }}</strong>{% if e.filter_condition_label.value != 'none' %} given a filter condition of <strong>{{ e.filter_condition_label.value }}</strong>{% endif %}. <span class="badge">{{ e.transition_label.value }}</span> |
| 43 | + </h4> |
46 | 44 | <table class="table table-striped"> |
47 | | - <thead> |
48 | | - <tr><th class='col-sm-2'>Condition</th><th>Situation</th></tr> |
49 | | - </thead> |
50 | | - <tbody> |
51 | | - <tr><th>Transformable situation</th><td>{{ e.transformable_situation_label.value }}</td></tr> |
52 | | - <tr><th>Filter condition</th><td>{{ e.filter_condition_label.value }}</td></tr> |
53 | | - <tr><th>Post situation</th><td>{{ e.post_situation_label.value }}</td></tr> |
| 45 | + <tr><th class="col-md-3">Care action</th><td>{{ e.care_action_label.value }}</td></tr> |
54 | 46 | {% endif %} |
55 | 47 | {% if e.inverse_transition %} |
56 | | - <tr><th>Inverse transition</th><td><span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span></td></tr> |
| 48 | + <tr><th class="col-md-3">Inverse transition</th><td><span class='badge alert-danger'>{{ e.inverse_transition_label.value }}</span> <span class="badge">{{ e.irec_stripped.value }}</span> <small>({{ e.irec_label.value }})</small></td></tr> |
57 | 49 | {% endif %} |
58 | 50 | {% if e.similar_transition %} |
59 | | - <tr><th>Similar transition</th><td><span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span></td></tr> |
| 51 | + <tr><th class="col-md-3">Similar transition</th><td><span class='badge alert-warning'>{{ e.similar_transition_label.value }}</span> <span class="badge">{{ e.srec_stripped.value }}</span> <small>({{ e.srec_label.value }})</small></td></tr> |
60 | 52 | {% endif %} |
61 | 53 | {% if loop.last %} |
62 | 54 | </tbody> |
63 | 55 | </table> |
64 | 56 |
|
65 | | - </p> |
66 | | - </a> |
| 57 | + </div> |
67 | 58 | {% endif %} |
68 | 59 | {% endfor %} |
69 | 60 | {% endfor %} |
|
0 commit comments