mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Display note icon on event detail page
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %}
|
{% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %}
|
||||||
{% load linkornone from filters %}
|
{% load linkornone from filters %}
|
||||||
|
{% load namewithnotes from filters %}
|
||||||
|
|
||||||
{% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
|
{% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@
|
|||||||
<dd class="col-sm-6">
|
<dd class="col-sm-6">
|
||||||
{% if object.person %}
|
{% if object.person %}
|
||||||
<a href="{% url 'person_detail' object.person.pk %}" class="modal-href">
|
<a href="{% url 'person_detail' object.person.pk %}" class="modal-href">
|
||||||
{{ object.person }}
|
{{ object.person|namewithnotes:'person_detail' }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
@@ -51,7 +52,7 @@
|
|||||||
<dd class="col-sm-6">
|
<dd class="col-sm-6">
|
||||||
{% if object.organisation %}
|
{% if object.organisation %}
|
||||||
<a href="{% url 'organisation_detail' object.organisation.pk %}" class="modal-href">
|
<a href="{% url 'organisation_detail' object.organisation.pk %}" class="modal-href">
|
||||||
{{ object.organisation }}
|
{{ object.organisation|namewithnotes:'organisation_detail' }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{% load namewithnotes from filters %}
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">Event Info</div>
|
<div class="card-header">Event Info</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@@ -6,14 +7,14 @@
|
|||||||
<dd class="col-sm-6">
|
<dd class="col-sm-6">
|
||||||
{% if object.venue %}
|
{% if object.venue %}
|
||||||
<a href="{% url 'venue_detail' object.venue.pk %}" class="modal-href">
|
<a href="{% url 'venue_detail' object.venue.pk %}" class="modal-href">
|
||||||
{{ object.venue }}
|
{{ object.venue|namewithnotes:'venue_detail' }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
{% if object.venue %}
|
{% if object.venue %}
|
||||||
<dt class="col-sm-6">Venue Notes</dt>
|
<dt class="col-sm-6">Venue Notes</dt>
|
||||||
<dd class="col-sm-6">
|
<dd class="col-sm-6">
|
||||||
{{ object.venue.notes }}{% if object.venue.three_phase_available %}<br>(Three phase available){%endif%}
|
{{ object.venue.notes }}{% if object.venue.three_phase_available %}<br>(Three phase available){%endif%}
|
||||||
</dd>
|
</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user