forked from projects/fipamo
58 lines
2.5 KiB
Text
58 lines
2.5 KiB
Text
extends frame
|
|
block main-content
|
|
#post-edit-index(data-index=id data-uuid=uuid data-layout=layout)
|
|
#post-edit-index-wrapper
|
|
//h2 EDIT
|
|
=post_title
|
|
#post-feature
|
|
//label FEATURE IMAGE
|
|
if(post_feature == 'null')
|
|
#featured-image-drop
|
|
| DRAG AND DROP IMAGE OR
|
|
label(for="featured-image-upload") CLICK TO CHOOSE
|
|
|
|
else
|
|
#featured-new-image-btn
|
|
button#new-feature-upload
|
|
svg#new-feature-upload(viewBox="0 0 20 20" class="icons")
|
|
use(xlink:href='/assets/images/global/sprite.svg#entypo-image-inverted')
|
|
#featured-image-drop
|
|
img#featured-image(src=page.feature)
|
|
#post-header
|
|
#post-header-wrapper.columns
|
|
#post-title.column
|
|
label TITLE
|
|
textarea(id="post_title" type='text', name='post_title' class='post-edit', placeholder='title', required, autofocus)
|
|
=page.title
|
|
|
|
label CREATED
|
|
br
|
|
span(id="post-date" type="text" value=date data-raw=rawDate)= date
|
|
//#calendar-icon
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
use(xlink:href='/assets/images/global/sprite.svg#entypo-calendar')
|
|
//input(id="post-date" type="text" value=date data-raw=rawDate)
|
|
|
|
#post-meta.column
|
|
label TAGS
|
|
textarea(id='post_tags' type='text', name='post_tags' class='form-control', placeholder='tags [comma seperated]', autofocus)
|
|
=page.tags
|
|
// file inputs for image uploads
|
|
label OPTIONS
|
|
br
|
|
include partials/options
|
|
input(id="featured-image-upload" type="file" name="featured-image-upload")
|
|
input(id="post-image-upload" type="file" name="post-image-upload")
|
|
#edit-post
|
|
include partials/editor
|
|
#edit-post-wrapper
|
|
pre
|
|
code#edit-post-text(contenteditable="true") !{content}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|