Files
modoboa/templates/common/tables.html
T
tonio 5e16fc2d6b see #78
At last something that works pretty well under firefox and with multiple selection possible (using Mootools HtmlTable.Select). There are some problems with IE and Chrome (the position: relative on td elements is not well supported).

Mootools update (1.3)

close #109

Checking limit when creating/updating a mailbox.
2010-12-24 14:20:17 +01:00

29 lines
726 B
HTML

<table id="{{ tableid }}">
<thead>
<tr>
{% for c in table.columns %}
<th id="{{ c.name }}" class="sortable" width="{{ c.width }}">
{{ c|safe }}
<span style="float: right"><img src="" /></span>
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in table.rows %}
<div style="position:relative">
<tr id="{{ row.id }}" class="{% cycle 'odd' 'even' %}">
{% for cell in row.cols %}
{% if cell.safe %}
<td width="{{ c.width }}">{{ cell.value|safe }}</td>
{% else %}
<td width="{{ c.width }}" class="{{ cell.class }}">{{ cell.value }}</td>
{% endif %}
{% endfor %}
</tr>
</div>
{% endfor %}
</tbody>
</table>