Client - update users list - #15

This commit is contained in:
Sam 2020-02-07 13:06:03 +01:00
parent c422678880
commit b28ea324f9
3 changed files with 22 additions and 6 deletions

View File

@ -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>

View File

@ -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",

View File

@ -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",