22 lines
		
	
	
		
			643 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			643 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{define "page-content"}}
 | 
						|
<form>
 | 
						|
    <h2>{{.Article.Title}}</h2>
 | 
						|
    <p>{{.Article.Description}}</p>
 | 
						|
    {{.Article.Content}}
 | 
						|
 | 
						|
    <p>
 | 
						|
        {{range .Tags}}
 | 
						|
        {{.Name}}
 | 
						|
        {{end}}
 | 
						|
    </p>
 | 
						|
 | 
						|
    <div class="btn-area">
 | 
						|
        <input class="action-btn" type="submit" value="Veröffentlichen" hx-post="/publish-article/{{.Article.ID}}/"
 | 
						|
            hx-target="#page-content" />
 | 
						|
        <input class="btn" type="submit" value="Ablehnen" hx-post="/reject-article/{{.Article.ID}}/"
 | 
						|
            hx-target="#page-content" />
 | 
						|
        <button class="btn" hx-get="/hub/" hx-target="#page-content">Zurück</button>
 | 
						|
    </div>
 | 
						|
</form>
 | 
						|
{{end}}
 |