A simple web portal for Linux iptables
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
1.0 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<title>Web Portal</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<form method="post" action="{{ url_for('submit') }}">
{% for mac in macs %}
<input type="checkbox" name="mac" value="{{mac[0]}}">{{mac[0]}}, {{mac[1]}}
<br>
Note: <input type="text" name="comment" pattern="[\-a-zA-Z0-9]*">
<br>
{% endfor %}
<input type="radio" name="duration_type" value="permanent">Permanent
<br>
<input type="radio" name="duration_type" value="temporary" checked>Temporary
<br>
<input type="number" name="duration_h" min="0" max="12" step="1" placeholder="hours"> hours
<br>
<input type="number" name="duration_m" min="0" max="60" step="5" placeholder="minutes"> minutes
<br>
<button type="submit" formaction="/submit">Submit!</button>
<br>
</form>
</body>
</html>