MaCH repo
This commit is contained in:
16
12_rails_15_min_blog_external/edit_post.mustache.html
Normal file
16
12_rails_15_min_blog_external/edit_post.mustache.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{< layout}}
|
||||
{{$body}}
|
||||
{{#post}}
|
||||
<h1 class="text-3xl font-bold text-gray-900 mb-8">Edit Post</h1>
|
||||
|
||||
<form method="post" action="{{url:post:id}}">
|
||||
<input type="hidden" name="http_method" value="patch">
|
||||
{{> post_form}}
|
||||
</form>
|
||||
|
||||
<a href="{{url:post:id}}" class="text-gray-500 hover:text-gray-700 mt-4 inline-block">
|
||||
← Back to post
|
||||
</a>
|
||||
{{/post}}
|
||||
{{/body}}
|
||||
{{/layout}}
|
||||
Reference in New Issue
Block a user