From 42413235bed80e9af6a9655dba504dbf2bdc572c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 10 Jan 2018 21:09:10 +0100 Subject: Adding edit/update logic. The model is not done yet, though. No net on the train. --- templates/edit_post.html | 30 ++++++++++++++++++++++++++++++ templates/post_teaser.html | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 templates/edit_post.html (limited to 'templates') diff --git a/templates/edit_post.html b/templates/edit_post.html new file mode 100644 index 0000000..9154e3d --- /dev/null +++ b/templates/edit_post.html @@ -0,0 +1,30 @@ + + + + Edit {{ post.title }} + + +

Edit post

+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ + diff --git a/templates/post_teaser.html b/templates/post_teaser.html index 19a30ec..751f4ea 100644 --- a/templates/post_teaser.html +++ b/templates/post_teaser.html @@ -2,10 +2,10 @@

{{ .title }}

- Edit | Publish | Delete + Edit | Publish | Delete
{{ .body }}
- \ No newline at end of file + -- cgit v1.2.3