Projet

Général

Profil

0001-manager-use-th-for-header-cells-in-user-import-table.patch

Frédéric Péters, 23 juin 2019 10:03

Télécharger (3,25 ko)

Voir les différences:

Subject: [PATCH] manager: use <th> for header cells in user import tables
 (#34241)

 .../templates/authentic2/manager/user_import.html      |  8 ++++----
 .../authentic2/manager/user_import_report.html         |  8 ++++----
 .../templates/authentic2/manager/user_imports.html     | 10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)
src/authentic2/manager/templates/authentic2/manager/user_import.html
48 48
  <table class="main">
49 49
    <thead>
50 50
      <tr>
51
        <td>{% trans "Creation date" %}</td>
52
        <td>{% trans "State" %}</td>
53
        <td>{% trans "Imported" %}</td>
54
        <td></td>
51
        <th>{% trans "Creation date" %}</th>
52
        <th>{% trans "State" %}</th>
53
        <th>{% trans "Imported" %}</th>
54
        <th></th>
55 55
      </tr>
56 56
    </thead>
57 57
    <tbody>
src/authentic2/manager/templates/authentic2/manager/user_import_report.html
89 89
        <table id="import-report-table" class="main">
90 90
          <thead>
91 91
              <tr>
92
                <td>{% trans "Line" %}</td>
92
                <th>{% trans "Line" %}</th>
93 93
                {% for header in importer.headers %}
94
                  <td
94
                  <th
95 95
                    {% if header.flags %}
96 96
                    title="flags: {% for flag in header.flags %}{{ flag }} {% endfor %}"
97 97
                    {% endif %}
......
100 100
                    {% for flag in header.flags %}
101 101
                      <span class="header-flag-{{ flag }}"></span>
102 102
                    {% endfor %}
103
                  </td>
103
                  </th>
104 104
                {% endfor %}
105
                <td>{% trans "Action" %}</td>
105
                <th>{% trans "Action" %}</th>
106 106
              </tr>
107 107
          </thead>
108 108
          <tbody>
src/authentic2/manager/templates/authentic2/manager/user_imports.html
26 26
  <table class="main">
27 27
    <thead>
28 28
      <tr>
29
        <td>{% trans "Filename" %}</td>
30
        <td>{% trans "Creation date" %}</td>
31
        <td>{% trans "By" %}</td>
32
        <td>{% trans "Rows" %}</td>
33
        <td></td>
29
        <th>{% trans "Filename" %}</th>
30
        <th>{% trans "Creation date" %}</th>
31
        <th>{% trans "By" %}</th>
32
        <th>{% trans "Rows" %}</th>
33
        <th></th>
34 34
      </tr>
35 35
    </thead>
36 36
    <tbody>
37
-