Admin protetto, dashboard KPI e aggiornamenti sito marketing.
Login admin con cambio password, metriche server (CPU/RAM/disco/banda), grafici e statistiche streaming; sezione piani ridimensionata. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
26
backend/app/views/admin/auth/new.html.erb
Normal file
26
backend/app/views/admin/auth/new.html.erb
Normal file
@@ -0,0 +1,26 @@
|
||||
<div style="max-width:360px;margin:4rem auto">
|
||||
<h2>Accesso admin</h2>
|
||||
<% if flash[:alert] %>
|
||||
<p style="color:#ff6b6b"><%= flash[:alert] %></p>
|
||||
<% end %>
|
||||
<%= form_with url: admin_login_path, method: :post, local: true do %>
|
||||
<p>
|
||||
<label for="username">Username</label><br>
|
||||
<input type="text" name="username" id="username" required autofocus autocomplete="username"
|
||||
style="width:100%;padding:0.5rem;margin-top:0.25rem;background:#1E1E1E;border:1px solid #333;color:#fff;border-radius:6px">
|
||||
</p>
|
||||
<p>
|
||||
<label for="password">Password</label><br>
|
||||
<input type="password" name="password" id="password" required autocomplete="current-password"
|
||||
style="width:100%;padding:0.5rem;margin-top:0.25rem;background:#1E1E1E;border:1px solid #333;color:#fff;border-radius:6px">
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" style="background:#FF2D2D;color:#fff;border:0;padding:0.6rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:700">
|
||||
Accedi
|
||||
</button>
|
||||
</p>
|
||||
<% end %>
|
||||
<p style="color:#888;font-size:0.85rem;margin-top:1.5rem">
|
||||
Credenziali iniziali: <code>admin</code> / <code>admin</code>. Cambia la password dopo il primo accesso.
|
||||
</p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user