Revize 5b4bc51b
Přidáno uživatelem Ondřej Anděl před téměř 4 roky(ů)
application/view/userContent.php | ||
---|---|---|
12 | 12 |
<thead> |
13 | 13 |
<tr> |
14 | 14 |
<th scope=\"col\">Uživatel</th> |
15 |
<th scope=\"col\">Email</th> |
|
16 | 15 |
<th scope=\"col\">Práva</th> |
17 | 16 |
<th scope=\"col\"><button class=\"btn ml-1\" title=\"Přidat\" data-toggle=\"modal\" data-target=\"#edit-modal\" data-title=\"Nový uživatel\"><i class=\"fa fa-plus\"></i></button></th> |
18 | 17 |
</tr> |
... | ... | |
42 | 41 |
users.forEach((item,id) => { |
43 | 42 |
result += \"<tr>\"; |
44 | 43 |
result += \"<td>\" + item.username + \"</td>\"; |
45 |
result += \"<td>\" + ((item.email !== undefined && item.email !== null) ? item.email : \"-\") + \"</td>\"; |
|
46 | 44 |
result += \"<td>\" + item.role + \"</td>\"; |
47 | 45 |
(item.role !== \"admin\") ? (result += \"<td class='action-td'>\" + |
48 | 46 |
\"<button class='btn ml-1' title='Upravit' data-toggle='modal' data-target='#edit-modal' data-pseudo-id='\" + id + \"' data-title='Upravit uživatele'><i class='fa fa-pencil'></i></button>\" + |
Také k dispozici: Unified diff
bugfix: email removal