Stramline template's use and adjust styl.es.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div class="header-content">
|
||||
<div class="header-left">
|
||||
<h1 class="page-title">
|
||||
<span class="page-icon">👤</span>
|
||||
<span class="page-icon"><i class="ti ti-user"></i></span>
|
||||
User Management
|
||||
</h1>
|
||||
<p class="page-subtitle">Manage user accounts and permissions across your organization</p>
|
||||
@@ -49,7 +49,7 @@
|
||||
<!-- View Controls -->
|
||||
<div class="view-controls">
|
||||
<div class="search-container">
|
||||
<span class="search-icon">🔍</span>
|
||||
<span class="search-icon"><i class="ti ti-search"></i></span>
|
||||
<input type="text"
|
||||
class="search-input"
|
||||
id="userSearch"
|
||||
@@ -106,23 +106,23 @@
|
||||
|
||||
<div class="user-actions">
|
||||
<a href="{{ url_for('users.edit_user', user_id=user.id) }}" class="btn btn-edit" title="Edit User">
|
||||
<span class="icon">✏️</span>
|
||||
<span class="icon"><i class="ti ti-pencil"></i></span>
|
||||
Edit
|
||||
</a>
|
||||
{% if user.id != g.user.id %}
|
||||
<form method="POST" action="{{ url_for('users.toggle_user_status', user_id=user.id) }}" class="status-form">
|
||||
{% if user.is_blocked %}
|
||||
<button type="submit" class="btn btn-unblock" title="Unblock User">
|
||||
<span class="icon">🔓</span>
|
||||
<span class="icon"><i class="ti ti-lock-open"></i></span>
|
||||
</button>
|
||||
{% else %}
|
||||
<button type="submit" class="btn btn-block" title="Block User">
|
||||
<span class="icon">🔒</span>
|
||||
<span class="icon"><i class="ti ti-lock"></i></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
<button class="btn btn-delete" onclick="confirmDelete({{ user.id }}, '{{ user.username }}')" title="Delete User">
|
||||
<span class="icon">🗑️</span>
|
||||
<span class="icon"><i class="ti ti-trash"></i></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -174,22 +174,22 @@
|
||||
<td>
|
||||
<div class="table-actions">
|
||||
<a href="{{ url_for('users.edit_user', user_id=user.id) }}" class="btn-action btn-edit" title="Edit">
|
||||
<span class="icon">✏️</span>
|
||||
<span class="icon"><i class="ti ti-pencil"></i></span>
|
||||
</a>
|
||||
{% if user.id != g.user.id %}
|
||||
<form method="POST" action="{{ url_for('users.toggle_user_status', user_id=user.id) }}" class="inline-form">
|
||||
{% if user.is_blocked %}
|
||||
<button type="submit" class="btn-action btn-unblock" title="Unblock">
|
||||
<span class="icon">🔓</span>
|
||||
<span class="icon"><i class="ti ti-lock-open"></i></span>
|
||||
</button>
|
||||
{% else %}
|
||||
<button type="submit" class="btn-action btn-block" title="Block">
|
||||
<span class="icon">🔒</span>
|
||||
<span class="icon"><i class="ti ti-lock"></i></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
<button class="btn-action btn-delete" onclick="confirmDelete({{ user.id }}, '{{ user.username }}')" title="Delete">
|
||||
<span class="icon">🗑️</span>
|
||||
<span class="icon"><i class="ti ti-trash"></i></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -203,14 +203,14 @@
|
||||
|
||||
<!-- No Results Message -->
|
||||
<div class="no-results" id="noResults" style="display: none;">
|
||||
<div class="empty-icon">🔍</div>
|
||||
<div class="empty-icon"><i class="ti ti-search"></i></div>
|
||||
<p class="empty-message">No users found matching your search</p>
|
||||
<p class="empty-hint">Try searching with different keywords</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- Empty State -->
|
||||
<div class="empty-state">
|
||||
<div class="empty-icon">👤</div>
|
||||
<div class="empty-icon"><i class="ti ti-user"></i></div>
|
||||
<h2 class="empty-title">No Users Yet</h2>
|
||||
<p class="empty-message">Create your first user to get started</p>
|
||||
<a href="{{ url_for('users.create_user') }}" class="btn btn-primary btn-lg">
|
||||
@@ -236,7 +236,7 @@
|
||||
<form id="delete-form" method="POST">
|
||||
<button type="button" id="cancel-delete" class="btn btn-secondary">Cancel</button>
|
||||
<button type="submit" class="btn btn-danger">
|
||||
<span class="icon">🗑️</span>
|
||||
<span class="icon"><i class="ti ti-trash"></i></span>
|
||||
Delete User
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user