{% extends 'major-event-log/base.html' %}

{% block title %}Event Details{% endblock %}

{% block content %}
    <h2>Event Details</h2>
	<table class='table table-striped'>
		<tr>
			<th><b>Title</b></th>
			<td>{{ event.title }}</td>
		</tr>
		<tr>
			<th><b>Details</b></th>
			<td>{{ event.detail }}</td>
		</tr>
		<tr>
			<th><b>ID</b></th>
			<td><samp>{{ event.id }}</samp></td>
		</tr>
		<tr>
			<th><b>Outcome</b></th>
            <td><span class='label label-{% if event.is_success %}success{% else %}danger{% endif %}'><samp>{{ event.get_outcome_display }}</samp></span></td>
		</tr>
		<tr>
			<th><b>Outcome Details</b></th>
			<td>{{ event.outcome_detail }}</td>
		</tr>
		<tr>
			<th><b>Event Date</b></th>
			<td>{{ event.date }}</td>
		</tr>
    </table>
    <h2>Event Metadata</h2>
	<table class='table table-striped'>
		<tr>
			<th><b>Created</b></th>
			<td>{{ event.entry_created }}</td>
		</tr>
		<tr>
			<th><b>Modified</b></th>
			<td>{{ event.entry_modified }}</td>
		</tr>
		<tr>
			<th><b>Contact Name</b></th>
			<td>{{ event.contact_name }}</td>
		</tr>
		<tr>
			<th><b>Contact Email</b></th>
			<td>{{ event.contact_email }}</td>
		</tr>
	</table>
	{% include 'major-event-log/button_grp_bottom.html' %}
{% endblock %}
