Self hosted FLOSS fitness/workout, nutrition and weight tracker
Small improvements to contract view page
Roland Geidere709d338b330
diff --git a/wger/gym/templates/contract/view.html b/wger/gym/templates/contract/view.htmlindex 0c199daed..dd675b9dd 100644--- a/wger/gym/templates/contract/view.html+++ b/wger/gym/templates/contract/view.html@@ -19,6 +19,22 @@{% block content %}<table class="table">+ {% if object.contract_type %}+ <tr>+ <th style="width: 20%;">{% trans 'Contract is active' %}</th>+ <td colspan="3">+ {% if object.is_active %}+ <span class="glyphicon glyphicon-ok"></span>+ {% else %}+ <span class="glyphicon glyphicon-remove"></span>+ {% endif %}+ </td>+ </tr>+ <tr>+ <th>{% trans 'Contract type' %}</th>+ <td colspan="3">{{ object.contract_type.name|default:'-/-' }}</td>+ </tr>+ {% endif %}<tr><th>{% trans 'Name' %}</th><td>@@ -28,12 +44,6 @@<th>{% trans 'Username' %}</th><td>{{ object.member }}</td></tr>- {% if object.contract_type %}- <tr>- <th>{% trans 'Contract type' %}</th>- <td colspan="3">{{ object.contract_type.name|default:'-/-' }}</td>- </tr>- {% endif %}<tr><th>{% trans 'Amount' %}</th><td>@@ -64,23 +74,12 @@</tr><tr><th>{% trans 'Address' %}</th>- <td colspan="3">- {{object.zip_code}} {{object.city}} {{object.street}}+ <td>+ {{object.zip_code}} {{object.city}}<br>+ {{object.street}}</td>- </tr>- <tr><th>{% trans 'Profession' %}</th>- <td colspan="3">{{ object.profession }}</td>- </tr>- <tr>- <th>{% trans 'Contract is active' %}</th>- <td colspan="3">- {% if object.is_active %}- <span class="glyphicon glyphicon-ok"></span>- {% else %}- <span class="glyphicon glyphicon-remove"></span>- {% endif %}- </td>+ <td>{{ object.profession }}</td></tr><tr><th>{% trans 'Note' %}</th>