diff options
Diffstat (limited to 'ctrack')
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 97 |
1 files changed, 47 insertions, 50 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index e871e03..a044360 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -86,7 +86,8 @@ </tr> {% endfor %} {% else %} - <a class="btn btn-primary" href="{% url "caf:create_from_org" object.slug %}" role="button">Add new...</a> + <a class="btn btn-primary" href="{% url "caf:create_from_org" object.slug %}" role="button">Add + new...</a> {% endif %} </table> </div> @@ -103,74 +104,34 @@ <div class="row"> {% if no_addr > 1 %} {% for a in addr %} - <div class="col-sm-8 p-2"> + <div class="col-md-7 my-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"> + <div> <table class="table-condensed"> <tr> - <td>{{ addr.line1 }} {{ addr.line2 }}</td> + <td>{{ a.line1 }} {{ a.line2 }}</td> </tr> <tr> - <td>{{ addr.line3 }}</td> + <td>{{ a.line3 }}</td> </tr> <tr> - <td>{{ addr.city }}</td> + <td>{{ a.city }}</td> </tr> <tr> - <td>{{ addr.county }}</td> + <td>{{ a.county }}</td> </tr> <tr> - <td>{{ addr.postcode }}</td> + <td>{{ a.postcode }}</td> </tr> <tr> - <td>{{ addr.country }}</td> + <td>{{ a.country }}</td> </tr> <tr> <td> <div class="text-muted mb-1 mt-2">Notes:</div> - {{ addr.other_details }} + {{ a.other_details }} </td> </tr> </table> @@ -178,6 +139,42 @@ </div> </div> </div> + {% endfor %} + {% else %} + <div class="col-md-7 my-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title mb-1 text-muted">{{ addr.type }}</div> + <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> {% endif %} </div> |