Get rid of hardcoded column width setting in group popup, it does not appear to have any effect and removing it relieves us from the mathfilters dependency - also put the popup inside a spaceless to free some space up

- Legacy-Id: 8524
This commit is contained in:
Ole Laursen 2014-10-30 16:50:44 +00:00
parent 41cb195f52
commit b35d0e20ff
2 changed files with 5 additions and 15 deletions

View file

@ -238,7 +238,6 @@ INSTALLED_APPS = (
'widget_tweaks',
'typogrify',
'bootstrap3',
'mathfilters',
)
# Settings for django-bootstrap3

View file

@ -1,20 +1,12 @@
{# widthratio rounds up, is useless #}
{% load mathfilters %}
{% with cols=areas|length|add:1 %}
{% with colw=100|div:cols %}
<div class="table-responsive">
<table class="table table-condensed">
{% spaceless %}
<table class="table table-condensed">
<thead>
<tr>
{% for area in areas %}
<th class="text-center" style="width:{{colw}}%">
{{area.acronym|upper}}
</th>
<th class="text-center">{{area.acronym|upper}}</th>
{% endfor %}
<th class="text-center" style="width:{{colw}}%">
IRTF
</th>
<th class="text-center">IRTF</th>
</tr>
</thead>
<tbody>
@ -46,6 +38,5 @@
</tr>
</tbody>
</table>
{% endspaceless %}
</div>
{% endwith %}
{% endwith %}