Skip to content

Commit 4e3c16a

Browse files
committed
use <th> instead of <tr class='key'>
1 parent fde87a0 commit 4e3c16a

File tree

3 files changed

+21
-30
lines changed

3 files changed

+21
-30
lines changed

webroot/admin/pi-mgmt.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757

5858
<h5>Pending PI Requests</h5>
5959
<table class="searchable">
60-
<tr class="key">
61-
<td>Name</td>
62-
<td>Unity ID</td>
63-
<td>Mail</td>
64-
<td>Requested On</td>
65-
<td>Actions</td>
60+
<tr>
61+
<th>Name</th>
62+
<th>Unity ID</th>
63+
<th>Mail</th>
64+
<th>Requested On</th>
65+
<th>Actions</th>
6666
</tr>
6767

6868
<?php
@@ -100,18 +100,18 @@
100100
<h5>List of PIs</h5>
101101

102102
<table class="searchable longTable sortable filterable">
103-
<tr class="key">
103+
<tr>
104104
<input
105105
type="text"
106106
style="margin-right:5px;"
107107
placeholder="Filter by..."
108108
id="common-filter"
109109
class="filterSearch"
110110
>
111-
<td id="name"><span class="filter">⫧ </span>Name</td>
112-
<td id="unityID"><span class="filter">⫧ </span>Unity ID</td>
113-
<td id="mail"><span class="filter">⫧ </span>Mail</td>
114-
<td>Actions</td>
111+
<th id="name"><span class="filter">⫧ </span>Name</th>
112+
<th id="unityID"><span class="filter">⫧ </span>Unity ID</th>
113+
<th id="mail"><span class="filter">⫧ </span>Mail</th>
114+
<th>Actions</th>
115115
</tr>
116116

117117
<?php

webroot/admin/user-mgmt.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828
<!-- <input type="text" id="tableSearch" placeholder="Search..."> -->
2929

3030
<table class="searchable longTable sortable filterable">
31-
<tr class="key">
31+
<tr>
3232
<input
3333
type="text"
3434
style="margin-right:5px;"
3535
placeholder="Filter by..."
3636
id="common-filter"
3737
class="filterSearch"
3838
>
39-
<td id="name"><span class="filter">⫧ </span>Name</td>
40-
<td id="uid"><span class="filter">⫧ </span>UID</td>
41-
<td id="org"><span class="filter">⫧ </span>Org</td>
42-
<td id="mail"><span class="filter">⫧ </span>Mail</td>
43-
<td id="groups"><span class="filter">⫧ </span>Groups</td>
44-
<td>Actions</td>
39+
<th id="name"><span class="filter">⫧ </span>Name</th>
40+
<th id="uid"><span class="filter">⫧ </span>UID</th>
41+
<th id="org"><span class="filter">⫧ </span>Org</th>
42+
<th id="mail"><span class="filter">⫧ </span>Mail</th>
43+
<th id="groups"><span class="filter">⫧ </span>Groups</th>
44+
<th>Actions</th>
4545
</tr>
4646

4747
<?php

webroot/css/tables.css

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ table.longTable tr:not(:last-child) {
1515
}
1616

1717
table tr,
18-
table td {
18+
table td,
19+
table th {
1920
padding: 0 20px 0 4px;
2021
overflow: hidden;
2122
white-space: nowrap;
@@ -125,18 +126,8 @@ td:last-child > button {
125126
float: right;
126127
}
127128

128-
tr.key {
129+
th {
129130
background: var(--light_panel_background);
130131
text-align: center;
131132
font-weight: bold;
132133
}
133-
134-
tr.key > td:first-child {
135-
border-top-left-radius: 10px;
136-
border-bottom-left-radius: 10px;
137-
}
138-
139-
tr.key > td:last-child {
140-
border-top-right-radius: 10px;
141-
border-bottom-right-radius: 10px;
142-
}

0 commit comments

Comments
 (0)