asd
This commit is contained in:
@@ -53,21 +53,45 @@ $hosts = $pdo->query('SELECT * FROM ' . $table('hosts') . ' ORDER BY id DESC')->
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="grid" style="margin-top:1rem;">
|
<div class="grid" style="margin-top:1rem;">
|
||||||
<div class="card" style="background:var(--panel-2);">
|
<div class="card form-card" style="background:var(--panel-2);">
|
||||||
<strong>Neuer Host</strong>
|
<strong>Neuer Host</strong>
|
||||||
<form method="post" style="display:grid; gap:10px; margin-top:.75rem;">
|
<form method="post" class="form-grid" style="margin-top:.75rem;">
|
||||||
<input type="text" name="name" placeholder="Name" required>
|
<label class="form-field">
|
||||||
<input type="text" name="host" placeholder="Host/IP" required>
|
<span class="muted">Name</span>
|
||||||
<input type="number" name="port" placeholder="Port" value="22">
|
<input type="text" name="name" placeholder="z.B. Wohnzimmer-Pi" required title="Eindeutiger Anzeigename für diesen Pi.">
|
||||||
<input type="text" name="username" placeholder="SSH User" required>
|
</label>
|
||||||
<input type="text" name="auth_type" placeholder="auth_type (key/pass)" value="key">
|
<label class="form-field">
|
||||||
<input type="text" name="key_path" placeholder="Key Path (optional)">
|
<span class="muted">Host / IP</span>
|
||||||
<input type="password" name="password" placeholder="Password (optional)">
|
<input type="text" name="host" placeholder="z.B. 192.168.178.14 oder pi.local" required title="Hostname oder IP im Heimnetzwerk.">
|
||||||
|
</label>
|
||||||
|
<label class="form-field">
|
||||||
|
<span class="muted">SSH Port</span>
|
||||||
|
<input type="number" name="port" placeholder="22" value="22" title="Standard ist 22.">
|
||||||
|
</label>
|
||||||
|
<label class="form-field">
|
||||||
|
<span class="muted">SSH Benutzer</span>
|
||||||
|
<input type="text" name="username" placeholder="z.B. pi" required title="Benutzername auf dem Pi.">
|
||||||
|
</label>
|
||||||
|
<label class="form-field">
|
||||||
|
<span class="muted">Auth-Typ</span>
|
||||||
|
<select name="auth_type" title="key = SSH-Key, password = Passwort">
|
||||||
|
<option value="key">key (SSH-Key)</option>
|
||||||
|
<option value="pass">pass (Passwort)</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
<label class="form-field">
|
||||||
|
<span class="muted">Key-Pfad (optional)</span>
|
||||||
|
<input type="text" name="key_path" placeholder="/home/app/.ssh/id_rsa" title="Pfad zum Private-Key im Webserver-Container.">
|
||||||
|
</label>
|
||||||
|
<label class="form-field">
|
||||||
|
<span class="muted">Passwort (optional)</span>
|
||||||
|
<input type="password" name="password" placeholder="SSH-Passwort" title="Nur nutzen, wenn Auth-Typ = pass.">
|
||||||
|
</label>
|
||||||
<button class="cta-button" type="submit">Speichern</button>
|
<button class="cta-button" type="submit">Speichern</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card" style="background:var(--panel-2);">
|
<div class="card form-card" style="background:var(--panel-2);">
|
||||||
<strong>Registrierte Hosts</strong>
|
<strong>Registrierte Hosts</strong>
|
||||||
<div style="margin-top:.75rem; overflow:auto;">
|
<div style="margin-top:.75rem; overflow:auto;">
|
||||||
<table class="table" style="min-width:560px;">
|
<table class="table" style="min-width:560px;">
|
||||||
|
|||||||
@@ -147,6 +147,13 @@ body {
|
|||||||
}
|
}
|
||||||
.module-subnav.card { background-color: var(--panel); background-image: none; }
|
.module-subnav.card { background-color: var(--panel); background-image: none; }
|
||||||
|
|
||||||
|
.form-card { padding: 14px; }
|
||||||
|
.form-grid { display: grid; gap: 12px; }
|
||||||
|
.form-field { display: grid; gap: 6px; }
|
||||||
|
.form-field input,
|
||||||
|
.form-field select,
|
||||||
|
.form-field textarea { width: 100%; }
|
||||||
|
|
||||||
.layout-body {
|
.layout-body {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|||||||
Reference in New Issue
Block a user