Indent and formatting

This commit is contained in:
Eduardo Silva 2025-03-13 08:43:49 -03:00
parent a61b0128ec
commit e386b3f269

View File

@ -25,7 +25,6 @@
</select>
</div>
<div class="form-group">
<label for="id_port">Port</label>
<input type="number" class="form-control" id="id_port" name="port" value="{{ form.port.value|default_if_none:'' }}">
@ -43,7 +42,6 @@
<option value="ipAddress" {% if instance.ip_address %}selected{% endif %}>IP Address</option>
</select>
</div>
<div class="form-group">
<label for="id_peer">Peer</label>
@ -86,11 +84,7 @@
{% if instance %}<a href='javascript:void(0)' class='btn btn-outline-danger' data-command='delete' onclick='openCommandDialog(this)'>Delete Rule</a>{% endif %}
</form>
</div>
<div class="col-md-8">
<h5>Default Ports</h5>
<p>The default <code>docker-compose.yml</code> file specifies the <b>TCP</b> port range <b>8080-8089</b>. If you wish to change the port forwarding to a different range, you must manually edit the <code>docker-compose.yml</code> file and rerun the Docker Compose step outlined in the <a href="https://github.com/eduardogsilva/wireguard_webadmin?tab=readme-ov-file#deployment">deployment instructions</a>.</p>
@ -108,15 +102,10 @@
<p>This serves as a temporary solution when a peer does not use the VPN as its default gateway. It's important to note that this configuration is not recommended, as it alters the source address of all connections to match the IP address of the WireGuard instance.</p>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
@ -149,8 +138,6 @@
document.getElementById("destinationType").addEventListener("change", adjustVisibilityBasedOnDestinationType);
</script>
<script>
function openCommandDialog(element) {
var command = element.getAttribute('data-command');