diff --git a/frontend/templates/admin_users.html b/frontend/templates/admin_users.html index 360dcb2c..65c03417 100644 --- a/frontend/templates/admin_users.html +++ b/frontend/templates/admin_users.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}User Management – Admin – DocuElevate{% endblock %} +{% block title %}{{ _("admin_users.page_title") }}{% endblock %} {% block content %}
@@ -9,11 +9,11 @@

- User Management - Admin Only + {{ _("admin_users.heading") }} + {{ _("admin_users.admin_only_badge") }}

- Manage user profiles, per-user upload limits, and document ownership. + {{ _("admin_users.subheading") }}

@@ -48,7 +48,7 @@
- +
@@ -58,7 +58,7 @@ type="search" x-model="search" @input.debounce.300ms="fetchUsers(1)" - placeholder="Filter by user ID…" + placeholder="{{ _('admin_users.filter_placeholder') }}" class="w-full pl-9 pr-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-400" />
@@ -68,24 +68,24 @@
- +
- - - - - - - - + + + + + + + + @@ -93,9 +93,9 @@ @@ -159,9 +159,9 @@ @@ -181,18 +181,18 @@ type="button" @click="openEditModal(user)" class="inline-flex items-center px-2.5 py-1.5 text-xs font-medium rounded border border-gray-300 text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500 mr-1" - :aria-label="`Edit profile for ${user.user_id}`" + :aria-label="`{{ _('common.edit') }} ${user.user_id}`" > - Edit + {{ _("common.edit") }} @@ -209,10 +209,10 @@ :disabled="currentPage <= 1" class="px-3 py-1.5 text-sm border border-gray-300 rounded hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed" > - Previous + {{ _("common.previous") }} - Page of + {{ _("common.page") }} {{ _("admin_users.pagination_page_of") }} @@ -250,7 +250,7 @@ type="button" @click="modalOpen = false" class="text-gray-400 hover:text-gray-600 focus:outline-none" - aria-label="Close dialog" + aria-label="{{ _('admin_users.modal_close_aria') }}" > @@ -261,7 +261,7 @@
- + -

The stable identifier that matches owner_id in documents.

+

{{ _("admin_users.modal_user_id_hint") }}

- +
- +
@@ -336,50 +336,50 @@ > - Block this user - (prevents new document uploads) + {{ _("admin_users.modal_block_label") }} + {{ _("admin_users.modal_block_hint") }}

- Sets the quota limits for this user. Limits are enforced on upload. + {{ _("admin_users.modal_plan_hint") }}

- Annual carry-over calculates from this date. Leave blank for monthly enforcement. + {{ _("admin_users.modal_period_start_hint") }}

@@ -409,8 +409,8 @@ > - Complimentary plan - (user keeps tier benefits but is never billed — set automatically for admin accounts) + {{ _("admin_users.modal_complimentary_label") }} + {{ _("admin_users.modal_complimentary_hint") }} @@ -423,15 +423,15 @@ @click="modalOpen = false" class="px-4 py-2 text-sm font-medium border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-gray-400" > - Cancel + {{ _("common.cancel") }} @@ -444,10 +444,10 @@

- Local User Accounts + {{ _("admin_users.local_accounts_heading") }}

- Email/password accounts created directly on this server. + {{ _("admin_users.local_accounts_subheading") }}

-
User IDDisplay NameDocumentsLast UploadPlanUpload LimitStatusActions{{ _("admin_users.col_user_id") }}{{ _("admin_users.col_display_name") }}{{ _("admin_users.col_documents") }}{{ _("admin_users.col_last_upload") }}{{ _("admin_users.col_plan") }}{{ _("admin_users.col_upload_limit") }}{{ _("common.status") }}{{ _("common.actions") }}
- No users found. - Try a different search term. - Upload some documents or add a profile above. + {{ _("admin_users.no_users_found") }} + {{ _("admin_users.no_users_search_hint") }} + {{ _("admin_users.no_users_add_hint") }}
+ x-text="user.daily_upload_limit + ' {{ _("admin_users.per_day") }}'"> global default + class="text-gray-400 text-xs">{{ _("admin_users.global_default") }} @@ -172,7 +172,7 @@ class="inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium" > - +
+
- - - - - - - + + + + + + + @@ -496,14 +496,14 @@ @@ -512,34 +512,34 @@ type="button" @click="openEditLocalUserModal(lu)" class="inline-flex items-center px-2.5 py-1.5 text-xs font-medium rounded border border-gray-300 text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500 mr-1" - :aria-label="`Edit account for ${lu.username}`" + :aria-label="`{{ _('common.edit') }} ${lu.username}`" > - Edit + {{ _("common.edit") }} @@ -562,44 +562,44 @@ >
-

Create Local Account

-
- +
- + -

3–64 characters. Letters, numbers, hyphens and underscores only.

+

{{ _("admin_users.local_username_hint") }}

- +
- + -

Minimum 8 characters.

+

{{ _("admin_users.local_password_hint") }}

- +
@@ -633,20 +633,20 @@ >
-

Edit Local Account

-
- +
- + @@ -654,12 +654,12 @@
- +
- +
@@ -693,23 +693,23 @@ >
-

Set Temporary Password

-

- Set a new password directly for . - The user should change this password after logging in. + {{ _("admin_users.set_password_desc_pre") }} . + {{ _("admin_users.set_password_desc") }}

- + -

Minimum 8 characters.

+

{{ _("admin_users.local_password_hint") }}

@@ -743,25 +743,25 @@ >
-

Delete Local Account

+

{{ _("admin_users.delete_local_title") }}

- Are you sure you want to delete the account for + {{ _("admin_users.delete_local_confirm") }} ()?

-

This cannot be undone. Documents owned by this user are not deleted.

+

{{ _("admin_users.delete_local_warning") }}

@@ -780,15 +780,15 @@ >
-

Delete User Profile

+

{{ _("admin_users.delete_profile_title") }}

- Are you sure you want to delete the profile for + {{ _("admin_users.delete_profile_confirm") }} ?

- This only removes the admin-managed profile record. Documents owned by this user are not deleted. + {{ _("admin_users.delete_profile_warning") }}

@@ -797,7 +797,7 @@ @click="deleteModal.open = false" class="px-4 py-2 text-sm font-medium border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50" > - Cancel + {{ _("common.cancel") }}
@@ -814,8 +814,43 @@
+ +
UsernameEmailDisplay NameStatusRoleCreatedActions{{ _("admin_users.col_username") }}{{ _("admin_users.col_email") }}{{ _("admin_users.col_display_name") }}{{ _("common.status") }}{{ _("admin_users.col_role") }}{{ _("common.created") }}{{ _("common.actions") }}