48 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			2.4 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">
 | 
						|
      <!-- Pola edycji: name, ip, port, username, password, branch -->
 | 
						|
      <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>
 | 
						|
      <!-- Opcja SSL -->
 | 
						|
      <div class="mb-3 form-check">
 | 
						|
        <input type="checkbox" class="form-check-input" name="use_ssl" id="use_ssl" {% if device.use_ssl %}checked{% endif %}>
 | 
						|
        <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" {% if device.ssl_insecure %}checked{% endif %}>
 | 
						|
        <label class="form-check-label" for="ssl_insecure">Nie weryfikuj certyfikatu SSL</label>
 | 
						|
      </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 %}
 |