wow
This commit is contained in:
commit
794dce869c
16 changed files with 5430 additions and 0 deletions
47
templates/index.html
Normal file
47
templates/index.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>PassPort</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>PassPort</h1>
|
||||
|
||||
{% if error %}
|
||||
<p>{{ error }}</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{{ url_for('issue_pass') }}">
|
||||
<label>
|
||||
Holder
|
||||
<input type="text" name="holder" maxlength="80" value="{{ values.get('holder', '') }}" required>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Location
|
||||
<input type="text" name="location" maxlength="120" value="{{ values.get('location', '') }}" required>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Valid From
|
||||
<input type="datetime-local" name="valid_from" value="{{ values.get('valid_from', '') }}" required>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Valid Until
|
||||
<input type="datetime-local" name="valid_until" value="{{ values.get('valid_until', '') }}" required>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit">Issue Pass</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
13
templates/invalid.html
Normal file
13
templates/invalid.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Invalid Pass · PassPort</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Invalid Pass</h1>
|
||||
<p>This access credential could not be verified.</p>
|
||||
<p><a href="{{ url_for('index') }}">Return to PassPort</a></p>
|
||||
</body>
|
||||
</html>
|
||||
22
templates/pass.html
Normal file
22
templates/pass.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ pass_data.holder }} · PassPort</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='dist/pass-app.css') }}">
|
||||
<script type="module" src="{{ url_for('static', filename='dist/pass-app.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="pass-root"
|
||||
data-holder="{{ pass_data.holder }}"
|
||||
data-location="{{ pass_data.location }}"
|
||||
data-status="{{ status }}"
|
||||
data-status-class="{{ status_class }}"
|
||||
data-valid-from="{{ valid_from }}"
|
||||
data-valid-until="{{ valid_until }}"
|
||||
data-credential-id="{{ credential_id }}"
|
||||
></div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue