2021-11-24 16:48:06 +00:00
< div id = "edit-post-body-{{p.id}}" class = "hidden" >
< form id = "post-edit-form-{{p.id}}" class = "flex flex-col w-full" action = "/edit_post/{{p.id}}" method = "post" >
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< input type = "hidden" name = "current_page" value = "{{request.path}}" >
2021-12-03 03:31:54 +00:00
< input name = "title" class = "form-input border-dashed mb-2" required placeholder = "title" value = "{{p.title}}" >
2021-12-20 22:02:05 +00:00
< div class = "rounded border border-gray-300 dark:border-gray-900 bg-white dark:bg-white/[.05] border-dashed w-full" >
2021-12-20 22:02:37 +00:00
< textarea name = "body" maxlength = "10000" id = "post-edit-box-{{p.id}}" form = "post-edit-form-{{p.id}}" class = "rounded-t bg-transparent p-2 shadow-inner w-full" aria-label = "With textarea" placeholder = "Add text to your post..." rows = "10" > {{p.body}}< / textarea >
2021-12-20 22:02:05 +00:00
< ul class = "-mt-1 flex space-x-4 px-3 py-2 border-t border-dashed border-gray-400 dark:border-white/[.05] mb-0" >
2021-11-24 16:48:06 +00:00
< li >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "text-gray-400 hover:text-gray-500" onclick = "makeBold('post-edit-box-{{p.id}}')" >
2021-11-24 16:48:06 +00:00
< i class = "fas fa-bold fa-fw fa-sm" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Bold" > < / i >
< / button >
< / li >
< li >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "text-gray-400 hover:text-gray-500" onclick = "makeItalics('post-edit-box-{{p.id}}')" >
2021-11-24 16:48:06 +00:00
< i class = "fas fa-italic fa-fw fa-sm" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Italicize" > < / i >
< / button >
< / li >
< li >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "text-gray-400 hover:text-gray-500" onclick = "makeQuote('post-edit-box-{{p.id}}')" >
2021-11-24 16:48:06 +00:00
< i class = "fas fa-quote-right fa-fw fa-sm" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Quote" > < / i >
< / button >
< / li >
< li >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "text-gray-400 hover:text-gray-500" onclick = "commentForm('post-edit-box-{{p.id}}');getGif()" >
2021-11-24 16:48:06 +00:00
< span class = "font-bold text-sm text-uppercase" aria-hidden = "true" data-bs-toggle = "modal" data-bs-target = "#gifModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Add GIF" > GIF< / span >
< / button >
< / li >
< li >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "text-gray-400 hover:text-gray-500" onclick = "loadEmojis('post-edit-box-{{p.id}}')" aria-hidden = "true" data-bs-toggle = "modal" data-bs-target = "#emojiModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Add Emoji" > < i class = "fas fa-smile-beam fa-fw fa-sm" > < / i >
2021-11-24 16:48:06 +00:00
< / button >
< / li >
< / ul >
< / div >
< div class = "flex w-full justify-between mt-2" >
< a href = "/formatting" target = "_blank" class = "inline-block text-sm text-gray-600" >
Formatting help
< / a >
< div class = "ml-auto flex" >
2021-12-04 17:38:55 +00:00
< button type = "button" class = "px-4 py-2 text-sm font-bold text-gray-400 hover:text-gray-500" onclick = "togglePostEdit('{{p.id}}')" >
2021-11-24 16:48:06 +00:00
Cancel
< / button >
2021-12-03 03:30:54 +00:00
< button form = "post-edit-form-{{p.id}}" class = "ml-2 btn btn-green" >
2021-11-24 16:48:06 +00:00
Save edit
< / button >
< / div >
< / div >
< / form >
< / div >