Client - update users list - #15
This commit is contained in:
parent
c422678880
commit
b28ea324f9
@ -32,6 +32,7 @@ class AdminUsers extends React.Component {
|
|||||||
<th>{t('user:Email')}</th>
|
<th>{t('user:Email')}</th>
|
||||||
<th>{t('user:Registration Date')}</th>
|
<th>{t('user:Registration Date')}</th>
|
||||||
<th>{t('activities:Activities')}</th>
|
<th>{t('activities:Activities')}</th>
|
||||||
|
<th>{t('user:Admin')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -41,14 +42,27 @@ class AdminUsers extends React.Component {
|
|||||||
<td>{user.username}</td>
|
<td>{user.username}</td>
|
||||||
<td>{user.email}</td>
|
<td>{user.email}</td>
|
||||||
<td>
|
<td>
|
||||||
{user.created_at
|
{format(
|
||||||
? format(
|
|
||||||
new Date(user.created_at),
|
new Date(user.created_at),
|
||||||
'dd/MM/yyyy HH:mm'
|
'dd/MM/yyyy HH:mm'
|
||||||
)
|
)}
|
||||||
: ''}
|
|
||||||
</td>
|
</td>
|
||||||
<td>{user.nb_activities}</td>
|
<td>{user.nb_activities}</td>
|
||||||
|
<td>
|
||||||
|
{user.admin ? (
|
||||||
|
<i
|
||||||
|
className="fa fa-check-square-o custom-fa"
|
||||||
|
aria-hidden="true"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<i
|
||||||
|
className="fa fa-square-o custom-fa"
|
||||||
|
aria-hidden="true"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"Admin": "Admin",
|
||||||
"Bio": "Bio",
|
"Bio": "Bio",
|
||||||
"Birth Date": "Birth Date",
|
"Birth Date": "Birth Date",
|
||||||
"Delete picture": "Delete picture",
|
"Delete picture": "Delete picture",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"Admin": "Admin",
|
||||||
"Bio": "Bio",
|
"Bio": "Bio",
|
||||||
"Birth Date": "Date de naissance",
|
"Birth Date": "Date de naissance",
|
||||||
"Delete picture": "Supprimer l'image",
|
"Delete picture": "Supprimer l'image",
|
||||||
|
Loading…
Reference in New Issue
Block a user