Commit a66a905d authored by Petrus J.v.Rensburg's avatar Petrus J.v.Rensburg

Keep existing 'column-header' class while adding new 'col-<column_name>'...

Keep existing 'column-header' class while adding new 'col-<column_name>' classes to columns in list view.
parent dd60bb58
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
{% endblock %} {% endblock %}
{% set column = 0 %} {% set column = 0 %}
{% for c, name in list_columns %} {% for c, name in list_columns %}
<th class="column-{{c}}"> <th class="column-header col-{{c}}">
{% if admin_view.is_sortable(c) %} {% if admin_view.is_sortable(c) %}
{% if sort_column == column %} {% if sort_column == column %}
<a href="{{ sort_url(column, True) }}" title="{{ _gettext('Sort by %(name)s', name=name) }}"> <a href="{{ sort_url(column, True) }}" title="{{ _gettext('Sort by %(name)s', name=name) }}">
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</td> </td>
{% endblock %} {% endblock %}
{% for c, name in list_columns %} {% for c, name in list_columns %}
<td class="column-{{c}}"> <td class="col-{{c}}">
{% if admin_view.is_editable(c) %} {% if admin_view.is_editable(c) %}
{% if form.csrf_token %} {% if form.csrf_token %}
{{ form[c](pk=get_pk_value(row), value=get_value(row, c), csrf=form.csrf_token._value()) }} {{ form[c](pk=get_pk_value(row), value=get_value(row, c), csrf=form.csrf_token._value()) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment