Added ability to login
This commit is contained in:
		@@ -1,9 +1,10 @@
 | 
			
		||||
{{define "page-content"}}
 | 
			
		||||
<h2>Editor</h2>
 | 
			
		||||
<form>
 | 
			
		||||
    <input type="text" name="editor-title" value="Titel">
 | 
			
		||||
    <textarea name="editor-desc"></textarea>
 | 
			
		||||
    <textarea name="editor-text"></textarea>
 | 
			
		||||
    <input type="submit" value="Senden" hx-post="/finished-edit/" hx-target="#page-content">
 | 
			
		||||
    <input name="editor-title" placeholder="Titel" type="text" />
 | 
			
		||||
    <textarea name="editor-desc" placeholder="Beschreibung"></textarea>
 | 
			
		||||
    <textarea name="editor-text" placeholder="Artikel"></textarea>
 | 
			
		||||
    <input type="submit" value="Senden" hx-post="/finished-edit/" hx-target="#page-content" />
 | 
			
		||||
</form>
 | 
			
		||||
{{end}}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								web/templates/login.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								web/templates/login.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
{{define "page-content"}}
 | 
			
		||||
<h2>Anmeldung</h2>
 | 
			
		||||
<form>
 | 
			
		||||
    <input name="username" placeholder="Benutzername" type="text" />
 | 
			
		||||
    <input name="password" placeholder="Passwort" type="password" />
 | 
			
		||||
    <input type="submit" value="Anmelden" hx-post="/login/" hx-target="#page-content" />
 | 
			
		||||
</form>
 | 
			
		||||
{{end}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user