File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 73
73
{% csrf_token %}
74
74
< div class ="form-group ">
75
75
76
- < label for ="post-title "> Post Title:</ label >
76
+ < label for ="post-title "> Title:</ label >
77
77
< input type ="text " id ="post-title " class ="form-control " name ="post_title " value ="">
78
78
79
79
</ div >
80
80
81
81
< div class ="form-group ">
82
- < label for ="summernote "> Post Content:</ label >
82
+ < label for ="summernote "> Content:</ label >
83
83
< textarea class ="form-control " rows ="6 " id ="summernote " name ="post_content ">
84
84
85
85
</ textarea >
@@ -146,13 +146,13 @@ <h5>Tags:</h5>
146
146
147
147
< div class ="form-group ">
148
148
< input type ="hidden " name ="post_id " value ="{{post.id}} " >
149
- < label for ="post-title "> Post Title:</ label >
149
+ < label for ="post-title "> Title:</ label >
150
150
< input type ="text " name ="post_title " id ="post-title " class ="form-control " value ="{{post.title}} ">
151
151
152
152
</ div >
153
153
154
154
< div class ="form-group ">
155
- < label for ="content "> Post Content:</ label >
155
+ < label for ="content "> Content:</ label >
156
156
< textarea name ="post_content " class ="form-control " id ="summernote " rows ="6 ">
157
157
{{post.content}}
158
158
</ textarea >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ <h2><a href="/blog/posts/{{post.id}}"> {{ post.title}} </a></h2>
13
13
</ ul >
14
14
< hr >
15
15
< img src ="/media/{{post.featured_img}} " alt ="{{post.title}} " width ="600px " height ="400px " align ="center "/> </ br >
16
- < p > {{post.content}}</ p >
16
+ < p > {{post.content | safe }}</ p >
17
17
18
18
< button class ="btn "> < a href ="/blog/posts/{{post.id}} "> Read More</ a > </ button >
19
19
You can’t perform that action at this time.
0 commit comments