blob: 235a67a5cbd893b2a14392a0aa51ba22dc951f54 (
plain) (
blame)
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
|
{% load table_extras %}
{% if e.is_planned %}
<div class="w3-panel w3-pale-green w3-topbar w3-border-green">
{% else %}
<div class="w3-panel w3-light-gray w3-topbar w3-border-green">
{% endif %}
<div class="w3-cell-row">
<div class="w3-cell w3-align-left">
<h5>{{ e.proposed_start_date|date:'j M Y' }} - {{ e.effort_type }}</h5>
</div>
<div class="w3-cell w3-right-align">
<p> {{ e.effort_total_hours|floatformat }} hrs</p>
Planned: {{ e.is_planned }}
<button hx-get="{% url 'engagements:htmx-effort-planned' e.id %}" hx-target="#planned_swap_{{ e.id }}">
Flip
</button>
</div>
</div>
<div>
<strong>Inspectors:</strong> {{ e.officers.all|commalist }}
</div>
<div>
<strong>Start time</strong>: {{ e.proposed_start_date|date:'H:i' }}
{% if e.proposed_end_date %}
- {{ e.proposed_end_date|date:'H:i' }}
{% endif %}
</div>
<div>
{% if e.sub_instruments.all %}
<strong>DSCs</strong>:
<ul>
{% for dsc in e.sub_instruments.all %}
<li><a href="#">{{ dsc.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
|