<?php cx_template_base('base'); ?>

<form action="<?= cx_url_admin('/posts/update?id=' . $post_id); ?>" method="post">

<p>title: <input name="post_title" type="text" value="<?= $post_title ?>"></p>
<p>slug: <input name="post_slug" type="text" value="<?= $post_slug ?>"></p>
<p>date: <input name="post_date" type="text" value="<?= $post_date ? date('Y-m-d H:i:s', $post_date) : "" ?>"></p>
<p>page: <input name="post_is_page" type="checkbox" value="page" <?= $post_is_page ? "checked" : "" ?>></p>
<p>draft: <input name="post_is_draft" type="checkbox" value="draft" <?= $post_is_draft ? "checked" : "" ?>></p>
<p>nav index: <input name="post_nav_index" type="text" value="<?= $post_nav_index ?>"></p>
<p><textarea name="post_data" cols="60" rows="40"><?= $post_data ?></textarea></p>

<p><input type="submit" value="update"></p>
</form>
