{% extends "admin/base.html" %} {% from "admin/_image_picker_field.html" import image_picker_field %} {% set is_edit = post is not none %} {# In working-copy mode `post` is a PostWorkingCopy, so `post.id` is the WC's id, NOT a live post id. `working_copy_post_id` is the live post id; use it for every live-post route (form action, backlinks, etc.). #} {% set is_wc = is_working_copy | default(false) %} {% block title %}{{ 'Edit' if is_edit else 'New' }} post · bragi admin{% endblock %} {% block content %}