41 lines
2.0 KiB
HTML
41 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Edytuj urządzenie - RouterOS Update{% endblock %}
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<h2>Edytuj urządzenie</h2>
|
|
<form method="POST">
|
|
<div class="mb-3">
|
|
<label for="name" class="form-label">Nazwa urządzenia (opcjonalnie)</label>
|
|
<input type="text" class="form-control" name="name" id="name" value="{{ device.name }}">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="ip" class="form-label">Adres IP</label>
|
|
<input type="text" class="form-control" name="ip" id="ip" value="{{ device.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="{{ device.port }}" 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" value="{{ device.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" value="{{ device.device_password }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="branch" class="form-label">Wybierz branch aktualizacji</label>
|
|
<select class="form-select" name="branch" id="branch">
|
|
<option value="stable" {% if device.branch == 'stable' %}selected{% endif %}>Stable</option>
|
|
<option value="dev" {% if device.branch == 'dev' %}selected{% endif %}>Dev</option>
|
|
<option value="beta" {% if device.branch == 'beta' %}selected{% endif %}>Beta</option>
|
|
</select>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Zapisz zmiany</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|