forked from projects/fipamo
62 lines
2.1 KiB
Text
62 lines
2.1 KiB
Text
extends frame
|
|
block main-content
|
|
|
|
-var post_title = ''
|
|
-var post_plaintext = ''
|
|
-var post_feature = 'null'
|
|
-var post_tags = ''
|
|
-var post_id = ''
|
|
-var post_date = date
|
|
|
|
if(edit)
|
|
-post_title = post.title
|
|
-post_plaintext = post.entry_plaintext
|
|
-post_feature = feature
|
|
-post_tags = post.tags
|
|
-post_date = date
|
|
|
|
#entries-edit-index
|
|
#entries-edit-index-wrapper
|
|
//h2 EDIT
|
|
=post_title
|
|
#entry-feature
|
|
//label FEATURE IMAGE
|
|
if(post_feature == 'null')
|
|
#featured-image-drop
|
|
| DRAG AND DROP IMAGE OR
|
|
label(for="featured-click") CLICK TO CHOOSE
|
|
|
|
else
|
|
#featured-new-image-btn
|
|
button#new-upload-link
|
|
svg#new-upload-link(viewBox="0 0 20 20" class="icons")
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-image-inverted')
|
|
#featured-image-drop
|
|
img(src=post_feature)
|
|
#entry-header.columns
|
|
#entry-title.column
|
|
textarea(id="entry_title" type='text', name='entry_title' class='post-edit', placeholder='title', required, autofocus)
|
|
=post_title
|
|
label Date Posted
|
|
input(id="entry-date" type="text" value=post_date)
|
|
br
|
|
#entry-meta.column
|
|
textarea(id='entry_tags' type='text', name='entry_tags' class='form-control', placeholder='tags [comma seperated]', autofocus)
|
|
=post_tags
|
|
include partials/editor
|
|
input(id="featured-click" type="file" name="featured-click")
|
|
input(id="post-image" type="file" name="post-image")
|
|
#edit-content
|
|
|
|
|
|
#edit-content-wrapper
|
|
pre
|
|
code#edit-text-code(contenteditable="true") !{colored}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|