Replaced developer email by description in consumers list #19

Also added bottom margin to action buttons
This commit is contained in:
Sebastian Henschel 2017-03-30 13:36:36 +02:00
parent 1f9c305ede
commit 6c2090a579
2 changed files with 7 additions and 10 deletions

View File

@ -18,3 +18,7 @@
#consumers .filter a {
font-size: 12px;
}
#consumers .actions .btn {
margin-bottom: 2px;
}

View File

@ -54,7 +54,7 @@
<thead>
<th>ID</th>
<th>Name</th>
<th>Developer Email</th>
<th>Description</th>
<th>Created</th>
<th>Action</th>
</thead>
@ -65,9 +65,9 @@
{% url 'consumers-detail' consumer.consumer_id as url_detail %}
<td>{{ consumer.consumer_id }}</td>
<td class="select"><a href="{{ url_detail }}">{{ consumer.app_name }}</a></td>
<td class="select">{{ consumer.developer_email }}</td>
<td class="select">{{ consumer.description|truncatechars:80 }}</td>
<td class="select">{{ consumer.created|naturaltime }}</td>
<td>
<td class="actions">
<form action="{% if consumer.enabled %}{% url 'consumers-disable' consumer.consumer_id %}{% else %}{% url 'consumers-enable' consumer.consumer_id %}{% endif %}?{{ request.GET.urlencode }}" method="post">
{% csrf_token %}
{% if consumer.enabled %}<button class="btn btn-primary btn-red">Disable</button>{% else %}<button class="btn btn-primary btn-green">Enable</button>{% endif %}
@ -75,13 +75,6 @@
</form>
</td>
</tr>
<tr>
<td colspan="5" class="noborder">
<div class="well">
{{ consumer.description|truncatechars:80 }}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>