diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-11 14:40:10 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-11 14:40:10 +0000 |
commit | e345074f25e31f644f897ae3d6a84688e29ba05c (patch) | |
tree | 3219b2439ae3e36fc42375649272f247addb4eff /ctrack/organisations/templates | |
parent | 20390f8ede3787ee502d1f380cd9344dd6b2d083 (diff) |
people cards looking ok now
Diffstat (limited to 'ctrack/organisations/templates')
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 61e9fdd..8130f2a 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -3,73 +3,73 @@ {% block content %} <div class="container"> - <div class="row"> - <h2>{{ object.name }}</h2> - </div> + <div class="row"> + <h2>{{ object.name }}</h2> + </div> - <div class="row text-muted"> - <p>{{ object.submode }}</p> - </div> + <div class="row text-muted"> + <p>{{ object.submode }}</p> + </div> - <div class="row pt-3 text-info"> - <h4>Addresses</h4> - </div> + <div class="row pt-3 text-info"> + <h4>Addresses</h4> + </div> - <div class="row pl-3 pt-2 border rounded bg-light"> - <p>Address 1<br> - Address 2<br> - Address 3<br> - Address 4<br></p> - </div> + <div class="row pl-3 pt-2 border rounded bg-light"> + <p>Address 1<br> + Address 2<br> + Address 3<br> + Address 4<br></p> + </div> - <div class="row pt-3 text-info"> - <h4>People</h4> - </div> + <div class="row pt-3 text-info"> + <h4>People</h4> + </div> - <div class="row"> - <div class="col-sm-12"> - {% for p in people %} - <div class="card mb-3"> - <div class="card-body"> + <div class="row"> + {% for p in people %} + <div class="col-sm-6 p-2"> + <div class="card bg-light"> + <div class="card-body"> <h5 class="card-title">{{ p.first_name }} {{ p.last_name }}</h5> - <table class="table table-bordered"> - <tr> - <td>Primary NIS Contact:</td> - {% if p.primary_nis_contact %} - <td>Yes</td> - {% else %} - <td>No</td> - {% endif %} - </tr> - <tr> - <td>Job Title:</td> - <td>{{ p.job_title }}</td> - </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> + <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> - {% endfor %} + </div> </div> - </div> + {% endfor %} </div> -{% endblock %} +{% endblock content %} |