mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-07-01 11:04:20 +00:00
WIP
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Account #{{ account.id }} - {{ account.name }}</h2>
|
||||
<h2>Account #{{ account.id }} - <span class="account-name">{{ account.name }}</span></h2>
|
||||
<p class="text-muted">View account details and manage settings</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<div class="detail-item">
|
||||
<div class="detail-label">Username</div>
|
||||
<div class="detail-value">{{ account.name }}</div>
|
||||
<div class="detail-value"><span class="account-name">{{ account.name }}</span></div>
|
||||
</div>
|
||||
|
||||
<div class="detail-item">
|
||||
@@ -35,9 +35,9 @@
|
||||
<div class="detail-label">GM Level</div>
|
||||
<div class="detail-value">
|
||||
{% if account.gm_level > 0 %}
|
||||
<span class="badge badge-gm">GM {{ account.gm_level }}</span>
|
||||
<span class="account-gm-level badge badge-gm">GM {{ account.gm_level }}</span>
|
||||
{% else %}
|
||||
<span class="badge badge-inactive">User</span>
|
||||
<span class="account-gm-level badge badge-inactive">User</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -46,9 +46,9 @@
|
||||
<div class="detail-label">Ban Status</div>
|
||||
<div class="detail-value">
|
||||
{% if account.banned %}
|
||||
<span class="badge badge-banned">BANNED</span>
|
||||
<span class="account-banned badge badge-banned">BANNED</span>
|
||||
{% else %}
|
||||
<span class="badge badge-active">Active</span>
|
||||
<span class="account-banned badge badge-active">Active</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -57,9 +57,9 @@
|
||||
<div class="detail-label">Lock Status</div>
|
||||
<div class="detail-value">
|
||||
{% if account.locked %}
|
||||
<span class="badge badge-locked">LOCKED</span>
|
||||
<span class="account-locked badge badge-locked">LOCKED</span>
|
||||
{% else %}
|
||||
<span class="badge badge-active">Unlocked</span>
|
||||
<span class="account-locked badge badge-active">Unlocked</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,11 +67,13 @@
|
||||
<div class="detail-item">
|
||||
<div class="detail-label">Mute Expires</div>
|
||||
<div class="detail-value">
|
||||
{% if account.mute_expire > 0 %}
|
||||
<span>{{ account.mute_expire }}</span>
|
||||
{% else %}
|
||||
<span class="text-muted">Not muted</span>
|
||||
{% endif %}
|
||||
<span class="account-mute-expire">
|
||||
{% if account.mute_expire > 0 %}
|
||||
Muted until {{ account.mute_expire }}
|
||||
{% else %}
|
||||
Not muted
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,7 +102,18 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="/js/realtime.js"></script>
|
||||
<script>
|
||||
// Set current account for real-time detail panel updates
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
realtimeManager.SetCurrentEntity('account', {{ account.id }});
|
||||
|
||||
// Clean up when leaving the page
|
||||
window.addEventListener('beforeunload', () => {
|
||||
realtimeManager.ClearCurrentEntity();
|
||||
});
|
||||
});
|
||||
|
||||
function EditAccount() {
|
||||
alert("Edit functionality coming soon");
|
||||
// TODO: Open edit modal
|
||||
@@ -110,6 +123,7 @@
|
||||
if (confirm("Are you sure you want to ban this account?")) {
|
||||
alert("Ban functionality coming soon");
|
||||
// TODO: Call ban API endpoint
|
||||
// After successful ban, call: BroadcastAccountUpdate({{ account.id }})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,6 +131,7 @@
|
||||
if (confirm("Are you sure you want to unban this account?")) {
|
||||
alert("Unban functionality coming soon");
|
||||
// TODO: Call unban API endpoint
|
||||
// After successful unban, call: BroadcastAccountUpdate({{ account.id }})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +139,7 @@
|
||||
if (confirm("Are you sure you want to lock this account?")) {
|
||||
alert("Lock functionality coming soon");
|
||||
// TODO: Call lock API endpoint
|
||||
// After successful lock, call: BroadcastAccountUpdate({{ account.id }})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +147,7 @@
|
||||
if (confirm("Are you sure you want to unlock this account?")) {
|
||||
alert("Unlock functionality coming soon");
|
||||
// TODO: Call unlock API endpoint
|
||||
// After successful unlock, call: BroadcastAccountUpdate({{ account.id }})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user