71 lines
4.3 KiB
Plaintext
71 lines
4.3 KiB
Plaintext
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>
|
|
Add
|
|
</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="container" id="addFormDiv">
|
|
<div class="row">
|
|
<div class="col-sm">
|
|
<div class="container text-left">
|
|
<form method="post" action="/add" id="addForm">
|
|
<h3>Add a news:</h3>
|
|
<div class="mb-1">
|
|
<label for="titleField" class="form-label">Title: </label><input type="text"
|
|
id="titleField"
|
|
class="form-control"
|
|
name="Title"
|
|
required
|
|
pattern="[0-9A-Za-z-.\:;]{5,30}" />
|
|
</div>
|
|
<div class="mb-1">
|
|
<label for="contentField" class="form-label">Content: </label><input type="text"
|
|
id="contentField"
|
|
class="form-control"
|
|
name="NewsText"
|
|
required
|
|
pattern="[0-9A-Za-z-.\:;]{10,256}" />
|
|
</div>
|
|
<div class="mb-1">
|
|
<label for="dateField" class="form-label">Date: </label><input type="date" id="dateField" class="form-control" required name="Date"/>
|
|
</div>
|
|
<div class="mb-1">
|
|
<label for="producerField" class="form-label">Producer: </label><input type="text"
|
|
id="producerField"
|
|
class="form-control"
|
|
name="Producer"
|
|
required
|
|
pattern="[0-9A-Za-z-]{5,30}" />
|
|
</div>
|
|
<div class="mb-1">
|
|
<label for="categoryField" class="form-label">Category: </label><input type="text"
|
|
id="categoryField"
|
|
class="form-control"
|
|
name="Category"
|
|
required
|
|
pattern="[0-9A-Za-z-]{5,30}" />
|
|
</div>
|
|
|
|
<button id="insertNewsButton"
|
|
type="submit"
|
|
class="btn btn-success mb-1">
|
|
Add News
|
|
</button>
|
|
</form>
|
|
<a type="submit"
|
|
class="btn btn-secondary mb-1"
|
|
name="returnButton"
|
|
href="/admin">
|
|
Return to admin
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |