forked from jason/cpolis
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			703 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			703 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{define "page-content"}}
 | 
						|
<h2>Editor</h2>
 | 
						|
<form>
 | 
						|
    <div>
 | 
						|
        <input name="article-title" placeholder="Titel" type="text" />
 | 
						|
        <textarea name="article-description" placeholder="Beschreibung"></textarea>
 | 
						|
        <textarea name="article-content" placeholder="Artikel"></textarea>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div>
 | 
						|
        {{range .}}
 | 
						|
        <div>
 | 
						|
            <input id="{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" />
 | 
						|
            <label for="{{.Name}}">{{.Name}}</label>
 | 
						|
        </div>
 | 
						|
        {{end}}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <input type="submit" value="Senden" hx-post="/submit-article/" hx-target="#page-content" />
 | 
						|
</form>
 | 
						|
 | 
						|
<button hx-get="/hub/" hx-target="#page-content">Abbrechen</button>
 | 
						|
{{end}}
 |