forked from jason/cpolis
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			918 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			918 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{define "page-content"}}
 | 
						|
<h2>Editor</h2>
 | 
						|
<form>
 | 
						|
    <div>
 | 
						|
        <input name="article-title" placeholder="Titel" type="text" value="{{.Article.Title}}" />
 | 
						|
        <textarea name="article-description" placeholder="Beschreibung">{{.Article.Description}}</textarea>
 | 
						|
        <textarea name="article-content" placeholder="Artikel">{{.Article.Content}}</textarea>
 | 
						|
        <input name="article-id" type="hidden" value="{{.Article.ID}}" />
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div>
 | 
						|
        {{range .Tags}}
 | 
						|
        <div>
 | 
						|
            <input id="tag-{{.Name}}" name="tags" type="checkbox" value="{{.ID}}" {{if index $.Selected
 | 
						|
                .ID}}checked{{end}} />
 | 
						|
            <label for="tag-{{.Name}}">{{.Name}}</label>
 | 
						|
        </div>
 | 
						|
        {{end}}
 | 
						|
    </div>
 | 
						|
 | 
						|
    <input type="submit" value="Senden" hx-post="/resubmit-article/" hx-target="#page-content" />
 | 
						|
</form>
 | 
						|
 | 
						|
<button hx-get="/hub/" hx-target="#page-content">Zurück</button>
 | 
						|
{{end}}
 |