Changeset - a2e1a4a4ed7c
[Not reviewed]
dev
0 1 0
Dennis Fink - 9 years ago 2015-10-24 00:30:23
dennis.fink@c3l.lu
Also make received donation table responsive
1 file changed with 20 insertions and 18 deletions:
0 comments (0 inline, 0 general)
ennstatus/templates/donate/macros.html
Show inline comments
 
@@ -11,24 +11,26 @@
 
{% endmacro %}
 

	
 
{% macro create_donations_table(csv_file) %}
 
  <table class="table table-bordered table-striped">
 
    <thead>
 
      <tr>
 
        <th>#</th>
 
        <th>Date</th>
 
        <th>Statement</th>
 
        <th>Amount</th>
 
      </tr>
 
    </thead>
 
    <tbody>
 
      {% for row in csv_file %}
 
  <div class="table-responsive">
 
    <table class="table table-bordered table-striped">
 
      <thead>
 
        <tr>
 
          <td>{{ loop.index }}</td>
 
          <td>{{ row[0] }}</td>
 
          <td>{{ row[1] }}</td>
 
          <td>{{ colorize_numbers(row[2]) }}</td>
 
          <th>#</th>
 
          <th>Date</th>
 
          <th>Statement</th>
 
          <th>Amount</th>
 
        </tr>
 
      {% endfor %}
 
    </tbody>
 
  </table>
 
      </thead>
 
      <tbody>
 
        {% for row in csv_file %}
 
          <tr>
 
            <td>{{ loop.index }}</td>
 
            <td>{{ row[0] }}</td>
 
            <td>{{ row[1] }}</td>
 
            <td>{{ colorize_numbers(row[2]) }}</td>
 
          </tr>
 
        {% endfor %}
 
      </tbody>
 
    </table>
 
  </div>
 
{% endmacro %}
0 comments (0 inline, 0 general)