69 lines
2.5 KiB
HTML
69 lines
2.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Daily Overview - Home{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>Open Tickets</h2>
|
|
<ul>
|
|
{% for ticket in open_tickets %}
|
|
<li>
|
|
{{ ticket.company.name }} - {{ ticket.name }} - {{ ticket.subject }} - {{ ticket.ticket_number }}
|
|
<a href="{{ url_for('close_ticket', ticket_id=ticket.id) }}">(Close)</a>
|
|
<ul>
|
|
{% for note in ticket.notes %}
|
|
{% if not note.archive %}
|
|
<li>
|
|
<a href="{{ url_for('archive_note', note_id=note.id) }}">X</a>
|
|
{{ note.note }}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
<a href="{{ url_for('add_note', ticket_id=ticket.id) }}">Add Note</a>
|
|
</li><br>
|
|
{% endfor %}
|
|
</ul>
|
|
<h2>Closed Tickets</h2>
|
|
<ul>
|
|
{% for ticket in closed_tickets %}
|
|
<li>
|
|
{{ ticket.company.name }} - {{ ticket.name }} - {{ ticket.subject }} - {{ ticket.ticket_number }}
|
|
<a href="{{ url_for('archive_ticket', ticket_id=ticket.id) }}">(Archive)</a>
|
|
<a href="{{ url_for('reopen_ticket', ticket_id=ticket.id) }}">(Reopen)</a>
|
|
<ul>
|
|
{% for note in ticket.notes %}
|
|
{% if not note.archive %}
|
|
<li>
|
|
{{ note.note }}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
<a href="{{ url_for('add_note', ticket_id=ticket.id) }}">Add Note</a>
|
|
</li><br>
|
|
{% endfor %}
|
|
</ul>
|
|
<h2>Onsite Schedule</h2>
|
|
<p>
|
|
<a href="{{ url_for('add_onsite') }}">Add Onsite</a>
|
|
</p>
|
|
{% for day in ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] %}
|
|
{% if onsites[day]|length > 0 %}
|
|
<h3>{{ day }}</h3>
|
|
<ul>
|
|
{% for onsite in onsites[day] %}
|
|
<li>
|
|
<a href="{{ url_for('delete_onsite', onsite_id=onsite.id) }}">X</a>
|
|
{{ onsite.company.name }} - {{ onsite.note }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<p>
|
|
<a href="{{ url_for('overview') }}">Printable Overview</a>
|
|
</p>
|
|
{% endblock %}
|