mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
* Add fields to rig info for additional access requirements * Add form field for additional access requirements * Display access requirements in rig info * Make access requirements field non-required Oops... * Add event access field to risk assessment * Allow for modification and display risk assessment venue access item * Correct tests for RAs with new parking fields * Add note to new venue access component of RA * Correct div boundaries for non-rig access requirements * Fill parking and access field in sample data generator * Set parking and access field to false in RA creation test * Hopefully the final correction of the RA test suite
47 lines
2.0 KiB
HTML
47 lines
2.0 KiB
HTML
{% load linkornone from filters %}
|
|
{% load namewithnotes from filters %}
|
|
|
|
{% if object.person %}
|
|
<div class="card card-default mb-3">
|
|
<div class="card-header">Person Details</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-sm-6">Person</dt>
|
|
<dd class="col-sm-6">
|
|
{% if object.person %}
|
|
<a href="{% url 'person_detail' object.person.pk %}" class="modal-href">
|
|
{{ object.person|namewithnotes:'person_detail' }}
|
|
</a>
|
|
{% endif %}
|
|
</dd>
|
|
<dt class="col-sm-6">Email</dt>
|
|
<dd class="col-sm-6">{{ object.person.email|linkornone:'mailto' }}</dd>
|
|
<dt class="col-sm-6">Phone Number</dt>
|
|
<dd class="col-sm-6">{{ object.person.phone|linkornone:'tel' }}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if object.organisation %}
|
|
<div class="card card-default mb-3">
|
|
<div class="card-header">Organisation Details</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-sm-6">Organisation</dt>
|
|
<dd class="col-sm-6">
|
|
{% if object.organisation %}
|
|
<a href="{% url 'organisation_detail' object.organisation.pk %}" class="modal-href">
|
|
{{ object.organisation|namewithnotes:'organisation_detail' }}
|
|
</a>
|
|
{% endif %}
|
|
</dd>
|
|
<dt class="col-sm-6">Email</dt>
|
|
<dd class="col-sm-6">{{ object.organisation.email|linkornone:'mailto' }}</dd>
|
|
<dt class="col-sm-6">Phone Number</dt>
|
|
<dd class="col-sm-6">{{ object.organisation.phone|linkornone:'tel' }}</dd>
|
|
<dt class="col-sm-6">Has SU Account</dt>
|
|
<dd class="col-sm-6">{{ object.organisation.union_account|yesno|capfirst }}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
{% endif %} |