{% import "Webmaster/macros/master.html" as master with context %} {% import "Webmaster/macros/forms.html" as f with context %} {% import "Webmaster/macros/bootstrap.html" as bs with context %} {% include "Webmaster/Package/Publisher/Admin/_include.html" %}
{% if post and post.is_draft %} {{ master.flash_message("This post is a draft and is not yet published", category="warning", dismissible=False) }} {% endif %}
Status: {{ post.status | default('New', true) }}
{% if post and post.id %} Preview Post {% endif %}
{{- f.csrf_field() -}}
Title:

{% call bs.collapsible("Post Type") %} {{ f.tag('radio', 'type_id', options=types, checked=[post.type_id if post else 0 ]) }} {% endcall %} {% call bs.collapsible("Categories") %}

{{ f.tag('checkbox', 'post_categories', options=categories, checked=checked_categories) }}
{% endcall %} {% call bs.collapsible("Featured Image") %}
{% endcall %} {% call bs.collapsible("Featured Embed") %} {% endcall %} {% call bs.collapsible("Info", collapse=true) %}
Published Date {% if post %}{{ post.published_at }}{% endif %}
Creation Date {% if post %}{{ post.created_at }}{% endif %}
Featured Date {% if post %}{{ post.featured_at }}{% endif %}
Sticky Date {% if post %}{{ post.sticky_at }}{% endif %}
{% endcall %}
{% call bs.collapsible("Slug", collapse=true) %} {% endcall %} {% call bs.collapsible("Tags") %} {% endcall %} {% call bs.collapsible("Description or Excerpt", collapse=true) %} {% endcall %} {% call bs.collapsible("Post Options") %} {{ f.group('radio', label='Set Public: ', name='is_public', checked="y" if post.is_public else "n", options=[("y", "Yes"), ("n", "No")], display_inline=true ) }} {{ f.group('radio', label='Set Featured Post: ', name='is_featured', checked="y" if post.is_featured else "n",options=[("y", "Yes"), ("n", "No")], display_inline=true ) }} {{ f.group('radio', label='Set Sticky Post: ', name='is_sticky', checked="y" if post.is_sticky else "n",options=[("y", "Yes"), ("n", "No")], display_inline=true ) }} {{ f.group('radio', label='Featured Media Top: ', name='featured_media_top', checked=[post.featured_media_top or ""], options=[("embed", "Embed"), ("image", "Image"), ("", "None")], display_inline=true ) }} {% endcall %} {% call bs.collapsible("Other Options") %} {{ f.tag('checkbox', name='social_options', options=[('allow_comments', ' Allow Comments'), ('show_likes', 'Show Likes'), ('show_sharing_buttons', ' Show Sharing Buttons') ], checked=post.options.social) }} {% endcall %}
Save & Publish

Save as Draft
Trash it