diff options
Diffstat (limited to 'ctrack/organisations')
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 404 |
1 files changed, 201 insertions, 203 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index bfbd07f..954b94e 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -1,145 +1,233 @@ {% extends "base.html" %} -{% block content %} - <div class="container"> - - <div class="row"> - <h2>{{ object.name }}</h2> - </div> - - <div class="row text-muted"> - <p>{{ object.submode }}</p> - </div> - - <div class="row pt-3 text-info"> - <h4>Company Information</h4> - </div> +{% block title %} + {{ object.name }} +{% endblock %} - <div class="row"> - <div class="col-sm-8 p-2"> - <div class="card bg-light"> - <div class="card-body"> - <div class="card-title">Key Information</div> - <div class="card-text"> - <div class="table-responsive"> - <table class="table"> - <tr> - <td><strong>Designation Type:</strong></td> - <td>{{ object.designation_type }}</td> - </tr> - <tr> - <td><strong>OES:</strong></td> - {% if object.oes %} - <td>Yes</td> - {% else %} - <td><span class="text-danger">No</span></td> - {% endif %} - - </tr> - <tr> - <td><strong>Registered Company Name:</strong></td> - <td>{{ object.registered_company_name }}</td> - </tr> - <tr> - <td><strong>Date Updated:</strong></td> - <td>{{ object.date_updated }}</td> - </tr> - <tr> - <td><strong>Updated By:</strong></td> - <td>{{ object.updated_by }}</td> - </tr> - <tr> - <td><strong>Active:</strong></td> - <td>{{ object.active }}</td> - </tr> - <tr> - <td><strong>Comments:</strong></td> - <td>{{ object.comments }}</td> - </tr> - </table> +{% block content %} + <div class="container mt-3"> + <div class="row"> + <div class="col-sm-12 pl-0 my-2"> + <div class="row"> + <div class="col-12"> + <h4>{{ object.name }}</h4> + </div> + </div> + <div class="row"> + <div class="col-12"> + <h6>{{ object.submode }}</h6> + </div> + </div> + <div class="row"> + <div class="col-md-12 my-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title">Company Information</div> + <div class="card-text"> + <div> + <table class="table table-sm"> + <tr> + <td><strong>Designation Type:</strong></td> + <td>{{ object.designation_type }}</td> + </tr> + <tr> + <td><strong>OES:</strong></td> + {% if object.oes %} + <td>Yes</td> + {% else %} + <td><span class="text-danger">No</span></td> + {% endif %} + </tr> + <tr> + <td><strong>Registered Company Name:</strong></td> + <td>{{ object.registered_company_name }}</td> + </tr> + <tr> + <td><strong>Date Updated:</strong></td> + <td>{{ object.date_updated }}</td> + </tr> + <tr> + <td><strong>Updated By:</strong></td> + <td>{{ object.updated_by }}</td> + </tr> + <tr> + <td><strong>Active:</strong></td> + <td>{{ object.active }}</td> + </tr> + <tr> + <td><strong>Comments:</strong></td> + <td>{{ object.comments }}</td> + </tr> + </table> + </div> + </div> + </div> </div> </div> </div> - </div> - - </div> - </div> - - <div class="row pt-3 text-info"> - <h4>NIS Systems</h4> - </div> - - <div class="row"> - <div class="col-sm-8 p-2"> - <div class="card bg-light"> - <div class="card-body"> - <div class="card-title"></div> - <div class="card-text"> - <div class="table-responsive"> - <table class="table"> - {% if applicable_systems|length > 1 %} - {% for ass in applicable_systems %} - <tr> - <td><strong>{{ ass.name }}</strong></td> - <td>{{ ass.description }}<br> - <a href="{% url "caf:detail" ass.caf.pk %}" class="small"> - {{ ass.caf }} - </a> <span class="text-muted">|</span> <a href="{% url "caf:ass_detail" ass.pk %}" - class="small">System - Detail</a> - <span class="text-muted">|</span> <a href="#" class="small">Edit System</a> - </td> - </tr> - {% endfor %} - {% else %} - <p><small><a href="{% url "caf:create_from_org" object.slug %}">Add new...</a></small></p> - {% endif %} - </table> + <div class="row"> + <div class="col-md-12 my-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title">NIS Systems</div> + <div class="card-text"> + <div class="table-responsive"> + <table class="table"> + {% if applicable_systems|length > 1 %} + {% for ass in applicable_systems %} + <tr> + <td><strong>{{ ass.name }}</strong></td> + <td>{{ ass.description }}<br> + <a href="{% url "caf:detail" ass.caf.pk %}" class="small"> + {{ ass.caf }} + </a> <span class="text-muted">|</span> <a href="{% url "caf:ass_detail" ass.pk %}" + class="small">System + Detail</a> + <span class="text-muted">|</span> <a href="#" class="small">Edit System</a> + </td> + </tr> + {% endfor %} + {% else %} + <p><small><a href="{% url "caf:create_from_org" object.slug %}">Add new...</a></small></p> + {% endif %} + </table> + </div> + </div> + </div> </div> </div> </div> + <div class="row"> + <div class="col-12"> + <h4>Addresses</h4> + </div> + </div> + <div class="row"> + {% if no_addr > 1 %} + {% for a in addr %} + <div class="col-sm-8 p-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title text-muted mb-1">{{ a.type }}</div> + <div class="card-text"> + <div class="table-responsive"> + <table class="table-condensed"> + <tr> + <td>{{ a.line1 }} {{ a.line2 }}</td> + </tr> + <tr> + <td>{{ a.line3 }}</td> + </tr> + <tr> + <td>{{ a.city }}</td> + </tr> + <tr> + <td>{{ a.county }}</td> + </tr> + <tr> + <td>{{ a.postcode }}</td> + </tr> + <tr> + <td>{{ a.country }}</td> + </tr> + <tr> + <td> + <div class="text-muted mb-1 mt-2">Notes:</div> + {{ a.other_details }} + </td> + </tr> + </table> + </div> + </div> + </div> + </div> + </div> + {% endfor %} + {% else %} + <div class="col-sm-8 p-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title mb-1 text-muted">{{ addr.type }}</div> + <div class="card-text"> + <div class="table-responsive"> + <table class="table-condensed"> + <tr> + <td>{{ addr.line1 }} {{ addr.line2 }}</td> + </tr> + <tr> + <td>{{ addr.line3 }}</td> + </tr> + <tr> + <td>{{ addr.city }}</td> + </tr> + <tr> + <td>{{ addr.county }}</td> + </tr> + <tr> + <td>{{ addr.postcode }}</td> + </tr> + <tr> + <td>{{ addr.country }}</td> + </tr> + <tr> + <td> + <div class="text-muted mb-1 mt-2">Notes:</div> + {{ addr.other_details }} + </td> + </tr> + </table> + </div> + </div> + </div> + </div> + </div> + {% endif %} + </div> </div> </div> - </div> - <div class="row pt-3 text-info"> - <h4>Addresses</h4> - </div> + <div class="row pt-3 text-info"> + <h4>People</h4> + </div> - <div class="row"> - {% if no_addr > 1 %} - {% for a in addr %} + <div class="row"> + {% for p in people %} <div class="col-sm-8 p-2"> <div class="card bg-light"> <div class="card-body"> - <div class="card-title text-muted mb-1">{{ a.type }}</div> + <h5 class="card-title">{{ p.first_name }} {{ p.last_name }}</h5> + <h6 class="card-subtitle mb-2 text-muted">{{ p.job_title }}</h6> <div class="card-text"> <div class="table-responsive"> - <table class="table-condensed"> - <tr> - <td>{{ a.line1 }} {{ a.line2 }}</td> - </tr> + <table class="table"> <tr> - <td>{{ a.line3 }}</td> + <td>Primary NIS Contact:</td> + {% if p.primary_nis_contact %} + <td class="text-success">Yes</td> + {% else %} + <td>No</td> + {% endif %} </tr> <tr> - <td>{{ a.city }}</td> + <td>Email:</td> + <td><a href="mailto:{{ p.email }}">{{ p.email }}</a></td> </tr> <tr> - <td>{{ a.county }}</td> + <td>Mobile:</td> + <td>{{ p.mobile }}</td> </tr> <tr> - <td>{{ a.postcode }}</td> + <td>Landline:</td> + <td>{{ p.landline }}</td> </tr> <tr> - <td>{{ a.country }}</td> + <td>Clearance:</td> + <td>{{ p.clearance }}</td> </tr> <tr> - <td> - <div class="text-muted mb-1 mt-2">Notes:</div> - {{ a.other_details }} - </td> + <td>Clearance Expiry:</td> + <td>{{ p.clearance_expiry }}</td> </tr> </table> </div> @@ -148,96 +236,6 @@ </div> </div> {% endfor %} - {% else %} - <div class="col-sm-8 p-2"> - <div class="card bg-light"> - <div class="card-body"> - <div class="card-title mb-1 text-muted">{{ addr.type }}</div> - <div class="card-text"> - <div class="table-responsive"> - <table class="table-condensed"> - <tr> - <td>{{ addr.line1 }} {{ addr.line2 }}</td> - </tr> - <tr> - <td>{{ addr.line3 }}</td> - </tr> - <tr> - <td>{{ addr.city }}</td> - </tr> - <tr> - <td>{{ addr.county }}</td> - </tr> - <tr> - <td>{{ addr.postcode }}</td> - </tr> - <tr> - <td>{{ addr.country }}</td> - </tr> - <tr> - <td> - <div class="text-muted mb-1 mt-2">Notes:</div> - {{ addr.other_details }} - </td> - </tr> - </table> - </div> - </div> - </div> - </div> - </div> - {% endif %} - </div> - - - <div class="row pt-3 text-info"> - <h4>People</h4> - </div> - - <div class="row"> - {% for p in people %} - <div class="col-sm-8 p-2"> - <div class="card bg-light"> - <div class="card-body"> - <h5 class="card-title">{{ p.first_name }} {{ p.last_name }}</h5> - <h6 class="card-subtitle mb-2 text-muted">{{ p.job_title }}</h6> - <div class="card-text"> - <div class="table-responsive"> - <table class="table"> - <tr> - <td>Primary NIS Contact:</td> - {% if p.primary_nis_contact %} - <td class="text-success">Yes</td> - {% else %} - <td>No</td> - {% endif %} - </tr> - <tr> - <td>Email:</td> - <td><a href="mailto:{{ p.email }}">{{ p.email }}</a></td> - </tr> - <tr> - <td>Mobile:</td> - <td>{{ p.mobile }}</td> - </tr> - <tr> - <td>Landline:</td> - <td>{{ p.landline }}</td> - </tr> - <tr> - <td>Clearance:</td> - <td>{{ p.clearance }}</td> - </tr> - <tr> - <td>Clearance Expiry:</td> - <td>{{ p.clearance_expiry }}</td> - </tr> - </table> - </div> - </div> - </div> - </div> - </div> - {% endfor %} + </div> </div> {% endblock content %} |