Restructure the code to be more readable and better organized

Moreover, the overall navigation structure is finished but database handling is still missing
Also there still needs to be proper styling for all the html files and proper organization
This commit is contained in:
2021-09-01 21:13:26 +02:00
parent 96260d18ce
commit a4372c6872
7 changed files with 163 additions and 51 deletions

View File

@@ -7,14 +7,15 @@
</head>
<body>
<h1>Hi, your link is {{ proxy_link }}!</h1>
it takes the data from redirects to
<h1>Hi, your link is <a href="/{{ uuid }}/events.ics"">/{{ uuid }}/events.ics</a>!</h1>
it takes the data from
<p>
<form>
<input type="text" value="{{ link }}">
<input value="Replace" name="replace" type="submit">
</form>
</p>
<form action=" edit_process">
<input name="uuid" type="hidden" value="{{ uuid }}">
<input name="link" type="text" value="{{ link }}">
<input value="Replace" name="replace" type="submit">
</form>
</p>
</body>
</html>

View File

@@ -1 +1 @@
Something went wrong
{{ message }}

View File

@@ -9,7 +9,7 @@
<body>
<h1>Welcome!</h1>
<p>
<form action="edit">
<form action="index_process">
<label for="link"">Link: </label>
<input id=" link" type="text" name="link" /><br />
<input value="Create proxy link" name="create" type="submit">

3
templates/redirect.html Normal file
View File

@@ -0,0 +1,3 @@
<p>{{ message }}</p>
<p>Please wait to be redirected or click <a href="{{ link }}">here!</a></p>
<meta http-equiv="Refresh" content="{{ time }}; url='{{ link }}'" />