42 lines
1.9 KiB
HTML
42 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
||
{% block content %}
|
||
<div class="container my-4">
|
||
<div class="card border-0 shadow-sm">
|
||
<div class="card-header bg-light">
|
||
<h4 class="mb-0">Dodaj nowe urządzenie</h4>
|
||
</div>
|
||
<div class="card-body">
|
||
<form method="POST">
|
||
<div class="mb-3">
|
||
<label for="name" class="form-label"><b>Nazwa</b></label>
|
||
<input type="text" class="form-control" id="name" name="name" required>
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="host" class="form-label"><b>Host/IP</b></label>
|
||
<input type="text" class="form-control" id="host" name="host" required>
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="port" class="form-label"><b>Port SSH</b></label>
|
||
<input type="number" class="form-control" id="port" name="port" value="22" required>
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="ssh_user" class="form-label"><b>Użytkownik SSH</b></label>
|
||
<input type="text" class="form-control" id="ssh_user" name="ssh_user" required>
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="ssh_key" class="form-label"><b>Klucz prywatny</b></label><br>
|
||
<small>Wklej wraz z <code>-----BEGIN RSA PRIVATE KEY-----</code> i <code>-----END RSA PRIVATE KEY-----</code>. Jeśli pusty – użyje klucza globalnego.</small>
|
||
<textarea class="form-control mt-2" id="ssh_key" name="ssh_key" rows="4"></textarea>
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="ssh_password" class="form-label"><b>Hasło SSH</b></label><br>
|
||
<small>Jeśli jest klucz SSH lub klucz globalny, hasło może być ignorowane.</small>
|
||
<input type="password" class="form-control mt-2" id="ssh_password" name="ssh_password">
|
||
</div>
|
||
<button type="submit" class="btn btn-primary">Dodaj urządzenie</button>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|