mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-28 02:42:17 +00:00
Added based on information
This commit is contained in:
@@ -1,117 +1,138 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block title %}Event {% if object.is_rig %}N{{object.pk|stringformat:"05d"}}{% else %}{{object.pk}}{% endif %}{% endblock %}
|
{% block title %}Event {% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}
|
||||||
|
{% endif %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<h1>N{{object.pk|stringformat:"05d"}}</h1>
|
<h1>N{{ object.pk|stringformat:"05d" }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4 text-right">
|
<div class="col-sm-4 text-right">
|
||||||
<div class="btn-group btn-page">
|
<div class="btn-group btn-page">
|
||||||
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span></a>
|
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span
|
||||||
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span class="glyphicon glyphicon-print"></span></a>
|
class="glyphicon glyphicon-edit"></span></a>
|
||||||
</div>
|
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span
|
||||||
</div>
|
class="glyphicon glyphicon-print"></span></a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if object.is_rig %}
|
{% if object.is_rig %}
|
||||||
{# only need contact details for a rig #}
|
{# only need contact details for a rig #}
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Contact Details</div>
|
<div class="panel-heading">Contact Details</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>Person</dt>
|
<dt>Person</dt>
|
||||||
<dd>{{object.person.name}}</dd>
|
<dd>{{ object.person.name }}</dd>
|
||||||
|
|
||||||
<dt>Email</dt>
|
<dt>Email</dt>
|
||||||
<dd>{{object.person.email}}</dd>
|
<dd>{{ object.person.email }}</dd>
|
||||||
|
|
||||||
<dt>Phone Number</dt>
|
<dt>Phone Number</dt>
|
||||||
<dd>{{object.person.phone}}</dd>
|
<dd>{{ object.person.phone }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if event.organisation %}
|
{% if event.organisation %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Organisation</div>
|
<div class="panel-heading">Organisation</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>Organisation</dt>
|
<dt>Organisation</dt>
|
||||||
<dd>{{object.organisation.name}}</dd>
|
<dd>{{ object.organisation.name }}</dd>
|
||||||
|
|
||||||
<dt>Phone Number</dt>
|
<dt>Phone Number</dt>
|
||||||
<dd>{{object.organisation.phone}}</dd>
|
<dd>{{ object.organisation.phone }}</dd>
|
||||||
|
|
||||||
<dt>Has SU Account</dt>
|
<dt>Has SU Account</dt>
|
||||||
<dd>{{event.organisation.union_account|yesno|capfirst}}</dd>
|
<dd>{{ event.organisation.union_account|yesno|capfirst }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="col-sm-{{event.is_rig|yesno:"7,12"}}">
|
<div class="col-sm-{{ event.is_rig|yesno:"7,12" }}">
|
||||||
<div class="panel panel-info">
|
<div class="panel panel-info">
|
||||||
<div class="panel-heading">{{object.name}}</div>
|
<div class="panel-heading">{{ object.name }}</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>Event Venue</dt>
|
<dt>Event Venue</dt>
|
||||||
<dd>{{object.venue}}</dd>
|
<dd>{{ object.venue }}</dd>
|
||||||
|
|
||||||
<dt>Event MIC</dt>
|
<dt>Event MIC</dt>
|
||||||
<dd>{{ event.mic.name }}</dd>
|
<dd>{{ event.mic.name }}</dd>
|
||||||
|
|
||||||
<dd> </dd>
|
<dd> </dd>
|
||||||
|
|
||||||
{% if event.is_rig %}
|
{% if event.is_rig %}
|
||||||
<dt>Crew Meet</dt>
|
<dt>Crew Meet</dt>
|
||||||
<dd>{{event.meet_at|date:"d M Y H:i"|default:""}}</dd>
|
<dd>{{ event.meet_at|date:"d M Y H:i"|default:"" }}</dd>
|
||||||
<dd>{{event.meet_info|default:""}}</dd>
|
<dd>{{ event.meet_info|default:"" }}</dd>
|
||||||
|
|
||||||
<dt>Access From</dt>
|
<dt>Access From</dt>
|
||||||
<dd>{{event.access_at|date:"d M Y H:i"|default:""}}</dd>
|
<dd>{{ event.access_at|date:"d M Y H:i"|default:"" }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<dt>Event Starts</dt>
|
<dt>Event Starts</dt>
|
||||||
<dd>{{event.start_date|date:"d M Y"}} {{event.start_time|date:"H:i"}}</dd>
|
<dd>{{ event.start_date|date:"d M Y" }} {{ event.start_time|date:"H:i" }}</dd>
|
||||||
|
|
||||||
<dt>Event Ends</dt>
|
<dt>Event Ends</dt>
|
||||||
<dd>{{event.end_date|date:"d M Y"}} {{event.end_time|date:"H:i"}}</dd>
|
<dd>{{ event.end_date|date:"d M Y" }} {{ event.end_time|date:"H:i" }}</dd>
|
||||||
|
|
||||||
<dd> </dd>
|
<dd> </dd>
|
||||||
|
|
||||||
<dt>Event Description</dt>
|
<dt>Event Description</dt>
|
||||||
<dd>{{event.description|linebreaksbr}}</dd>
|
<dd>{{ event.description|linebreaksbr }}</dd>
|
||||||
</dl>
|
|
||||||
</div>
|
<dd> </dd>
|
||||||
</div>
|
|
||||||
</div>
|
<dt>Based On</dt>
|
||||||
<div class="col-sm-12 text-right">
|
<dd>
|
||||||
<div class="btn-group btn-page">
|
{% if object.based_on %}
|
||||||
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span></a>
|
<a href="{% url 'event_detail' pk=object.based_on.pk %}">
|
||||||
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span class="glyphicon glyphicon-print"></span></a>
|
{% if object.based_on.is_rig %}N{{ object.based_on.pk|stringformat:"05d" }}{% else %}
|
||||||
</div>
|
{{ object.based_on.pk }}{% endif %}
|
||||||
</div>
|
{{ object.base_on.name }} by {{ object.based_on.mic.name }}
|
||||||
<div class="col-sm-12">
|
</a>
|
||||||
<div class="panel panel-default">
|
{% endif %}
|
||||||
<div class="panel-heading">Event Details</div>
|
</dd>
|
||||||
<div class="panel-body">
|
</dl>
|
||||||
<div class="well well-sm">
|
</div>
|
||||||
<h4>Notes</h4>
|
</div>
|
||||||
{{event.notes|linebreaksbr}}
|
</div>
|
||||||
</div>
|
<div class="col-sm-12 text-right">
|
||||||
{% if event.is_rig %}
|
<div class="btn-group btn-page">
|
||||||
{% include 'RIGS/item_table.html' %}
|
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span
|
||||||
{% endif %}
|
class="glyphicon glyphicon-edit"></span></a>
|
||||||
</div>
|
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span
|
||||||
</div>
|
class="glyphicon glyphicon-print"></span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 text-right">
|
</div>
|
||||||
<div class="btn-group btn-page">
|
<div class="col-sm-12">
|
||||||
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span></a>
|
<div class="panel panel-default">
|
||||||
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span class="glyphicon glyphicon-print"></span></a>
|
<div class="panel-heading">Event Details</div>
|
||||||
</div>
|
<div class="panel-body">
|
||||||
<div>Last edited at {{object.last_edited_at|date:"SHORT_DATETIME_FORMAT"}} by {{object.last_edited_by}}.</div>
|
<div class="well well-sm">
|
||||||
</div>
|
<h4>Notes</h4>
|
||||||
|
{{ event.notes|linebreaksbr }}
|
||||||
|
</div>
|
||||||
|
{% if event.is_rig %}
|
||||||
|
{% include 'RIGS/item_table.html' %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 text-right">
|
||||||
|
<div class="btn-group btn-page">
|
||||||
|
<a href="{% url 'event_update' event.pk %}" class="btn btn-default"><span
|
||||||
|
class="glyphicon glyphicon-edit"></span></a>
|
||||||
|
<a href="{#% url event_print event.pk %#}" class="btn btn-default"><span
|
||||||
|
class="glyphicon glyphicon-print"></span></a>
|
||||||
|
</div>
|
||||||
|
<div>Last edited at {{ object.last_edited_at|date:"SHORT_DATETIME_FORMAT" }} by {{ object.last_edited_by }}.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user