aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/editor/form.tmpl
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-02-11 17:45:19 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-02-11 17:45:19 +0530
commitd7d066cfa1cd16dd502000077696388043c4dab9 (patch)
treef43b009ae023f1aec580f0096e7712861cbab655 /cmd/web/templates/editor/form.tmpl
parenta28b31e0f40a34674a7e14405d21bdbc5d53c2fb (diff)
Substituted 'Article' with 'Project'
Diffstat (limited to 'cmd/web/templates/editor/form.tmpl')
-rw-r--r--cmd/web/templates/editor/form.tmpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd/web/templates/editor/form.tmpl b/cmd/web/templates/editor/form.tmpl
index e735f75..2aeb9b8 100644
--- a/cmd/web/templates/editor/form.tmpl
+++ b/cmd/web/templates/editor/form.tmpl
@@ -10,8 +10,8 @@
<form method="post"
- {{ if .HasArticle }}
- hx-patch="/htmx/editor/{{ .Article.Slug }}"
+ {{ if .HasProject }}
+ hx-patch="/htmx/editor/{{ .Project.Slug }}"
{{ else }}
hx-post="/htmx/editor"
{{ end }}
@@ -20,26 +20,26 @@
>
<fieldset class="form-group">
<input type="text" name="title" class="form-control form-control-lg" placeholder="Post Title"
- value="{{ .Article.Title }}"
+ value="{{ .Project.Title }}"
>
</fieldset>
<fieldset class="form-group">
<input type="text" name="description" class="form-control form-control-md" placeholder="What's this article about?"
- value="{{ .Article.Description }}"
+ value="{{ .Project.Description }}"
>
</fieldset>
<fieldset class="form-group">
- <textarea rows="8" name="content" class="form-control" placeholder="Write your post (in markdown)">{{ .Article.Body }}</textarea>
+ <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 .HasArticle }}
- value="{{ .Article.GetTagsAsCommaSeparated }}"
+ {{ if .HasProject }}
+ value="{{ .Project.GetTagsAsCommaSeparated }}"
{{ end }}
>
</fieldset>
<button class="btn btn-lg btn-primary pull-xs-right">
- Publish Article
+ Publish Project
</button>
</form>
</div>