mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-03-05 19:48:23 +00:00
First pass at updating event embed
Seems I forgot about those in BS4 port, oops
This commit is contained in:
@@ -1,94 +1,88 @@
|
|||||||
{% extends 'base_embed.html' %}
|
{% extends 'base_embed.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
<script src="{% static 'js/all.js' %}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<span class="float-right">
|
||||||
<div class="col-sm-12">
|
|
||||||
<span class="pull-right">
|
|
||||||
{% if object.mic %}
|
{% if object.mic %}
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<img src="{{ object.mic.profile_picture }}" class="event-mic-photo rounded"/>
|
<img src="{{ object.mic.profile_picture }}" class="event-mic-photo rounded"/>
|
||||||
</div>
|
</div>
|
||||||
{% elif object.is_rig %}
|
{% elif object.is_rig %}
|
||||||
<span class="fas fa-exclamation-sign"></span>
|
<span class="fas fa-exclamation-sign"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<a href="{% url 'event_detail' object.pk %}">
|
<a href="{% url 'event_detail' object.pk %}">{{ object.display_id }} | {{ object.name }}</a>
|
||||||
{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %}
|
{% if object.venue %}
|
||||||
| {{ object.name }} </a>
|
<small>at {{ object.venue }}</small>
|
||||||
{% if object.venue %}
|
{% endif %}
|
||||||
<small>at {{ object.venue }}</small>
|
<br/><small>
|
||||||
{% endif %}
|
|
||||||
<br/><small>
|
|
||||||
{{ object.start_date|date:"D d/m/Y" }}
|
{{ object.start_date|date:"D d/m/Y" }}
|
||||||
{% if object.has_start_time %}
|
{% if object.has_start_time %}
|
||||||
{{ object.start_time|date:"H:i" }}
|
{{ object.start_time|date:"H:i" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.end_date or object.has_end_time %}
|
{% if object.end_date or object.has_end_time %}
|
||||||
–
|
–
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.end_date and object.end_date != object.start_date %}
|
{% if object.end_date and object.end_date != object.start_date %}
|
||||||
{{ object.end_date|date:"D d/m/Y" }}
|
{{ object.end_date|date:"D d/m/Y" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.has_end_time %}
|
{% if object.has_end_time %}
|
||||||
{{ object.end_time|date:"H:i" }}
|
{{ object.end_time|date:"H:i" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</small>
|
</small>
|
||||||
</h3>
|
</h3>
|
||||||
|
{% include 'partials/event_status.html' %}
|
||||||
<div class="row">
|
<div class="row ml-2">
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6 pr-2">
|
||||||
<p>
|
|
||||||
<strong>Status:</strong>
|
|
||||||
{{ object.get_status_display }}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{% if object.is_rig %}
|
|
||||||
<strong>Client:</strong> {{ object.person.name }}
|
|
||||||
{% if object.organisation %}
|
|
||||||
for {{ object.organisation.name }}
|
|
||||||
{% endif %}
|
|
||||||
{% if object.dry_hire %}(Dry Hire){% endif %}
|
|
||||||
{% else %}
|
|
||||||
<strong>Non-Rig</strong>
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<strong>MIC:</strong>
|
|
||||||
{% if object.mic %}
|
|
||||||
{{object.mic.name}}
|
|
||||||
{% else %}
|
|
||||||
None
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6">
|
|
||||||
{% if object.meet_at %}
|
|
||||||
<p>
|
|
||||||
<strong>Crew meet:</strong>
|
|
||||||
{{ object.meet_at|date:"H:i" }} {{ object.meet_at|date:"(Y-m-d)" }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
{% if object.access_at %}
|
|
||||||
<p>
|
|
||||||
<strong>Access at:</strong>
|
|
||||||
{{ object.access_at|date:"H:i" }} {{ object.access_at|date:"(Y-m-d)" }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
<strong>Last updated:</strong>
|
|
||||||
{{ object.last_edited_at }} by "{{ object.last_edited_by.initials }}"
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% if object.description %}
|
|
||||||
<p>
|
<p>
|
||||||
<strong>Description: </strong>
|
{% if object.is_rig %}
|
||||||
{{ object.description|linebreaksbr }}
|
<strong>Client:</strong> {{ object.person.name }}
|
||||||
|
{% if object.organisation %}
|
||||||
|
for {{ object.organisation.name }}
|
||||||
|
{% endif %}
|
||||||
|
{% if object.dry_hire %}(Dry Hire){% endif %}
|
||||||
|
{% else %}
|
||||||
|
<strong>Non-Rig</strong>
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
<p>
|
||||||
|
<strong>MIC:</strong>
|
||||||
|
{% if object.mic %}
|
||||||
|
{{object.mic.name}}
|
||||||
|
{% else %}
|
||||||
|
None
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-6 px-2">
|
||||||
|
{% if object.meet_at %}
|
||||||
|
<p>
|
||||||
|
<strong>Crew meet:</strong>
|
||||||
|
{{ object.meet_at|date:"H:i" }} {{ object.meet_at|date:"(Y-m-d)" }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if object.access_at %}
|
||||||
|
<p>
|
||||||
|
<strong>Access at:</strong>
|
||||||
|
{{ object.access_at|date:"H:i" }} {{ object.access_at|date:"(Y-m-d)" }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
<p>
|
||||||
|
<strong>Last updated:</strong>
|
||||||
|
{{ object.last_edited_at }} by "{{ object.last_edited_by.initials }}"
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% if object.description %}
|
||||||
|
<p>
|
||||||
|
<strong>Description: </strong>
|
||||||
|
{{ object.description|linebreaksbr }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<link href="{% static 'fonts/OpenSans-Regular.tff' %}">
|
<link href="{% static 'fonts/OpenSans-Regular.tff' %}">
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -28,11 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="col-sm-12">
|
<a href="/"><span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span></a>
|
||||||
<a href="/">
|
|
||||||
<span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user