aboutsummaryrefslogtreecommitdiff
path: root/templates/new-link.html
diff options
context:
space:
mode:
authorMetroWind <chris.corsair@gmail.com>2025-09-07 09:42:33 -0700
committerMetroWind <chris.corsair@gmail.com>2025-09-07 09:42:33 -0700
commitea0d3220db995018335c48eb06b9794235ff436b (patch)
tree892564cdd4946c6ee9c1051bc31ff5c7bba6ddf1 /templates/new-link.html
Initial commit, mostly just copied from shrt.
Diffstat (limited to 'templates/new-link.html')
-rw-r--r--templates/new-link.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/new-link.html b/templates/new-link.html
new file mode 100644
index 0000000..3ce3fda
--- /dev/null
+++ b/templates/new-link.html
@@ -0,0 +1,36 @@
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 {% include "head.html" %}
5 <title>shrt – Create a New Link</title>
6 </head>
7 <body>
8 <div id="Body" class="Window Dialog">
9 {% include "nav.html" %}
10 <form action="{{ url_for("create-link") }}" method="post" id="LinkForm">
11 <table class="InputFields">
12 <tr>
13 <td><label for="shortcut">Shortcut</label></td>
14 <td><input type="text" name="shortcut" id="shortcut"
15 minlength="2" pattern="(\p{L}|\p{N}|_|-|\.)+"></td>
16 </tr>
17 <tr>
18 <td><label for="original_url">URL</label></td>
19 <td><input type="url" name="original_url" id="original_url" required></td>
20 </tr>
21 <tr>
22 <td></td>
23 <td>
24 <input type="checkbox" id="regexp" name="regexp">
25 <label for="regexp">Regexp</label>
26 </td>
27 </tr>
28 </table>
29 <div class="ButtonRow">
30 <input type="submit" value="Add link!">
31 </div>
32 </form>
33 {% include "footer.html" %}
34 </div>
35 </body>
36</html>