Mj2 : modular and prepare for client options
This commit is contained in:
@@ -134,6 +134,24 @@
|
||||
color: #8b949e; font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.toggle-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.toggle-label {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
font-size: 0.8rem; color: #8b949e; cursor: pointer;
|
||||
background: #0d1117; border: 1px solid #30363d;
|
||||
padding: 4px 10px; border-radius: 20px;
|
||||
transition: border-color 0.2s, color 0.2s;
|
||||
}
|
||||
.toggle-label:has(input:checked) { border-color: #3fb950; color: #3fb950; }
|
||||
.toggle-label input[type=checkbox] { display: none; }
|
||||
.btn-apply {
|
||||
background: #21262d; color: #8b949e;
|
||||
border: 1px solid #30363d; border-radius: 6px;
|
||||
padding: 4px 10px; font-size: 0.78rem; font-family: inherit;
|
||||
cursor: pointer; transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
.btn-apply:hover { background: #30363d; color: #e6edf3; }
|
||||
|
||||
.warn-box {
|
||||
background: rgba(210,153,34,0.1);
|
||||
border: 1px solid rgba(210,153,34,0.3);
|
||||
@@ -186,6 +204,7 @@
|
||||
<tr>
|
||||
<th>Παίκτης</th>
|
||||
<th>Κατάσταση</th>
|
||||
<th>Δυνατότητες</th>
|
||||
<th>Προστέθηκε</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -204,6 +223,18 @@
|
||||
<span class="status-offline">● Offline</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<form method="POST" action="/auth/clan/update-features/{{ m.player_id }}" style="display:inline;">
|
||||
<div class="toggle-group">
|
||||
<label class="toggle-label">
|
||||
<input type="checkbox" name="farm" onchange="this.form.submit()" {{ 'checked' if m.feat_farm }}> 🌾 Farm
|
||||
</label>
|
||||
<label class="toggle-label">
|
||||
<input type="checkbox" name="admin" onchange="this.form.submit()" {{ 'checked' if m.feat_admin }}> 🏛 Admin
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td style="color:#8b949e; font-size:0.8rem;">{{ m.joined_at }}</td>
|
||||
<td style="text-align:right;">
|
||||
<form method="POST" action="/auth/clan/remove-member/{{ m.player_id }}"
|
||||
|
||||
Reference in New Issue
Block a user