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">
<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" />
<form method="post" action="{{ url_for('submit') }}">
{% for mac in macs %}
<input type="checkbox" name="mac" value="{{mac[0]}}">{{mac[0]}}, {{mac[1]}}
Note: <input type="text" name="comment" pattern="[\-a-zA-Z0-9]*">
{% endfor %}
<input type="radio" name="duration_type" value="permanent">Permanent
<input type="radio" name="duration_type" value="temporary" checked>Temporary
<input type="number" name="duration_h" min="0" max="12" step="1" placeholder="hours"> hours
<input type="number" name="duration_m" min="0" max="60" step="5" placeholder="minutes"> minutes
<button type="submit" formaction="/submit">Submit!</button>