40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Dodaj urządzenie - RouterOS Update{% endblock %}
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<h2>Dodaj nowe urządzenie</h2>
|
|
<form method="POST">
|
|
<!-- Pozostałe pola: name, ip, port, username, password -->
|
|
<div class="mb-3">
|
|
<label for="ip" class="form-label">Adres IP</label>
|
|
<input type="text" class="form-control" name="ip" id="ip" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="port" class="form-label">Port</label>
|
|
<input type="number" class="form-control" name="port" id="port" value="8728" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="device_username" class="form-label">Nazwa użytkownika urządzenia</label>
|
|
<input type="text" class="form-control" name="device_username" id="device_username" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="device_password" class="form-label">Hasło urządzenia</label>
|
|
<input type="password" class="form-control" name="device_password" id="device_password" required>
|
|
</div>
|
|
<!-- Opcja SSL -->
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" name="use_ssl" id="use_ssl">
|
|
<label class="form-check-label" for="use_ssl">Używaj SSL</label>
|
|
</div>
|
|
<!-- Opcja nie weryfikowania certyfikatu SSL -->
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" name="ssl_insecure" id="ssl_insecure">
|
|
<label class="form-check-label" for="ssl_insecure">Nie weryfikuj certyfikatu SSL</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Dodaj urządzenie</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|