DomainExpiration/templates/add_domain.html

34 lines
992 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Add Domain</title>
<script>
function addField() {
var container = document.getElementById("domainFields");
var input = document.createElement("input");
input.type = "text";
input.name = "domain";
input.placeholder = "Enter domain name";
// Create a line break for spacing
container.appendChild(document.createElement("br"));
container.appendChild(input);
}
</script>
</head>
<body>
<h1>Add Domain(s)</h1>
<form method="post">
<div id="domainFields">
<input type="text" name="domain" placeholder="Enter domain name">
</div>
<br>
<button type="button" onclick="addField()">Add Another</button>
<br><br>
<input type="submit" value="Save">
</form>
<br>
<a href="{{ url_for('home') }}">Back to Home</a>
</body>
</html>