summaryrefslogtreecommitdiffstats
path: root/engagements/templates/engagements/engagement_detail.html
blob: 85ef2209f9a82d300ecf33afa97a4442fa5404a3 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "core/base.html" %}
{% load table_extras %}

{% block title %}{{ engagement }}{% endblock title %}

{% block content %}

<div class="w3-container">
    <div class="w3-container w3-center">
        <h2>{{ engagement.friendly_type }} at {{ engagement.external_party }}</h2>
    </div>
    <div class="w3-row">
        <div class="w3-container">
            <div>
                <a href="{% url 'engagements:edit' engagement.pk %}">Edit Engagement</a>
            </div>
            <section class="w3-container w3-blue">
                <h3>Details</h3>
            </section>
            <table class="w3-table w3-border w3-light-gray w3-bordered">
                <tr>
                    <td><strong>Date</strong></td>
                    <td>{{ engagement.proposed_start_date|date:'l' }} - {{ engagement.proposed_start_date|date:'j M Y' }}</td>
                </tr>
                <tr>
                    <td><strong>Site/Operation:</strong></td>
                    <td>{{ engagement.external_party }} </td>
                </tr>
                <tr>
                    <td><strong>Subject of Activity</strong></td>
                    <td>
                        <p>Summmary text</p>
                        <ul class="w3-ul">
                            {% for t in dscs %}
                            <li><a href='#'>{{ t }}</a></li>
                            {% endfor %}
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td><strong>Inspectors:</strong></td>
                    <td>{{ engagement.officers.all|commalist }}</td>
                </tr>
                <tr>
                    <td><strong>Planned Effort:</strong></td>
                    <td>{{ effort_planned|floatformat }} hrs</td>
                </tr>
                <tr>
                    <td><strong>Actual Effort:</strong></td>
                    <td>{{ effort_actual|floatformat }} hrs</td>
                </tr>
                <tr>
                    <td><strong>Total Effort:</strong></td>
                    <td>{{ effort_total|floatformat }} hrs</td>
                </tr>
            </table>
            <hr>
        </div>

        <div class="w3-container w3-light-gray">
            <h3>Effort for this engagement</h3>
            Add:
            <a href="{% url 'engagements:effort_create' engagement.pk "TRAVEL" %}">Travel</a> |
            <a href="{% url 'engagements:effort_create' engagement.pk "PLANNING" %}">Planning</a> |
            <a href="{% url 'engagements:effort_create' engagement.pk "REGULATION" %}">Regulation</a> |
            <a href="{% url 'engagements:effort_create' engagement.pk "REPORTING" %}">Reporting</a>

            {% if effort %}
            {% for e in effort.all %}
            <div id="planned_swap_{{ e.id }}">
                {% include "engagements/snippets/effort_summary_panel.html" with e=e %}
            </div>
            {% endfor %}
            {% endif %}
        </div>
    </div>

    {% endblock content %}