blob: dc1bb49a0b2bb1505b4c24e1d43f39e8c913885f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<div class="editor-page">
<div class="container page">
<div class="row">
<div class="col-md-10 col-md-offset-1 col-xs-12">
<div id="form-message">
{{ template "editor/form-message" . }}
</div>
<form method="post"
{{ if .HasProject }}
hx-patch="/htmx/editor/{{ .Project.Slug }}"
{{ else }}
hx-post="/htmx/editor"
{{ end }}
hx-target="#app-body"
>
<fieldset class="form-group">
<input type="text" name="title" class="form-control form-control-lg" placeholder="Post Title"
value="{{ .Project.Title }}"
>
</fieldset>
<fieldset class="form-group">
<input type="text" name="description" class="form-control form-control-md" placeholder="What's this project about?"
value="{{ .Project.Description }}"
>
</fieldset>
<fieldset class="form-group">
<textarea rows="8" name="content" class="form-control" placeholder="Write your post (in markdown)">{{ .Project.Body }}</textarea>
</fieldset>
<fieldset class="form-group">
<input type="text" name="tags" class="form-control tagify--outside" placeholder="Enter tags"
{{ if .HasProject }}
value="{{ .Project.GetTagsAsCommaSeparated }}"
{{ end }}
>
</fieldset>
<button class="btn btn-lg btn-primary pull-xs-right">
Publish Project
</button>
</form>
</div>
</div>
</div>
</div>
|