chore (plg_authenticate_simple): banner dashboard

This commit is contained in:
MickaelK
2024-12-06 07:07:40 +11:00
parent 9f8a4f515f
commit b317a50609
2 changed files with 13 additions and 6 deletions
+6
View File
@@ -184,3 +184,9 @@
margin-bottom: 15px;
padding: 10px;
}
.component_page_admin .formbuilder .banner pre {
background: inherit;
color: inherit;
padding: 0;
margin: 0;
}
@@ -27,12 +27,13 @@ func (this SimpleAuth) Setup() Form {
{
Name: "banner",
Type: "hidden",
Description: `Manage your team members and their account permissions by visiting [/admin/simple-user-management](/admin/simple-user-management).
= STATS =
- total users: ` + fmt.Sprintf("%d", n) + `
- active users: ` + fmt.Sprintf("%d", a) + `
`,
Description: fmt.Sprintf(`Manage your team members and their account permissions by visiting [/admin/simple-user-management](/admin/simple-user-management).
<pre>
STATS:
┌─────────────┐ ┌──────────────┐
│ TOTAL USERS │ │ ACTIVE USERS │
| %.4d │ | %.4d │
└─────────────┘ └──────────────┘</pre>`, n, a),
},
{
Name: "type",