            <form id="post_edit_form_$post.id" class="inline_edit post_edit" action="{% admin "update_post" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
                <fieldset>
                    ${ trigger.call("before_ajax_edit_post_fields", feather) }
                    {% for field in feather.fields %}
                    <p>
                        <label for="$field.attr">
                            $field.label
                            {% if field.optional %}
                            <span class="sub">${ "(optional)" | translate }</span>
                            {% endif %}
                        </label>
                        {% if field.type == "text" or field.type == "file" %}
                        <input class="$field.type{% if field.classes %} ${ field.classes | join(" ") }{% endif %}" type="$field.type" name="$field.attr" value="{% if not field.no_value %}${ field.value | fallback(post[field.attr] | escape(true, false)) }{% endif %}" id="$field.attr" />
                        {% elseif field.type == "text_block" %}
                        <textarea class="wide{% if field.classes %} ${ field.classes | join(" ") }{% endif %}" rows="${ field.rows | fallback(12) }" name="$field.attr" id="$field.attr" cols="50">{% if not field.no_value %}${ field.value | fallback(post[field.attr] | escape(false, false)) }{% endif %}</textarea>
                        {% elseif field.type == "checkbox" %}
                        <input class="$field.type{% if field.classes %} ${ field.classes | join(" ") }{% endif %}" type="$field.type" name="$field.attr"{% if field.checked %}checked="checked"{% endif %} id="$field.attr">
                        {% elseif field.type == "select" %}
                        <select name="$field.attr" id="$field.attr"{% if field.classes %} class="${ field.classes | join(" ") }"{% endif %}>
                            {% for value, name in field.options | items %}
                            <option value="${ value | escape }"{% if not field.no_value %}${ value | option_selected(post[field.attr]) }{% endif %}>${ name | escape }</option>
                            {% endfor %}
                        </select>
                        {% endif %}
                    </p>
                    {% endfor %}

                    <a id="more_options_link_$post.id" href="javascript:void(0)" class="more_options_link">${ "More Options &darr;" | translate("chyrp") }</a>
                    <div id="more_options_$post.id" class="more_options" style="display: none">
                        {% if visitor.group.can("add_post") %}
                        <p>
                            <label for="status">${ "Status" | translate }</label>
                            <select name="status" id="status">
                                <option value="draft"{% if post.status == "draft" %} selected="selected"{% endif %}>${ "Draft" | translate }</option>
                                <option value="public"{% if post.status == "public" %} selected="selected"{% endif %}>${ "Public" | translate }</option>
                                <option value="private"{% if post.status == "private" %} selected="selected"{% endif %}>${ "Private" | translate }</option>
                                <option value="registered_only"{% if post.status == "registered_only" %} selected="selected"{% endif %}>${ "Registered Only" | translate }</option>
                                {% if groups %}
                                <optgroup label="${ "Group" | translate }">
                                    {% for group in groups %}
                                    <option value="{$group.id}"${ post.status | option_selected("{"~ group.id ~"}") }>${ group.name | escape }</option>
                                    {% endfor %}
                                </optgroup>
                                {% endif %}
                            </select>
                        </p>
                        {% endif %}
                        <p>
                            <label for="pinned">${ "Pinned?" | translate }</label>
                            <input type="checkbox" name="pinned" id="pinned"{% if post.pinned %} checked="checked"{% endif %}/>&nbsp;
                            <small>${ "(shows this post above all others)" | translate }</small>
                        </p>
                        <p>
                            <label for="slug">${ "Slug" | translate }</label>
                            <input class="text" type="text" name="slug" value="${ post.slug | escape }" id="slug" />
                        </p>
                        <p>
                            <label for="created_at">${ "Timestamp" | translate }</label>
                            <input class="text" type="text" name="created_at" value="${ post.created_at | fallback(now | date("r")) | strftime }" id="created_at" />
                            <input type="hidden" name="original_time" value="${ post.created_at | fallback(now | date("r")) | strftime }" />
                        </p>
                        <p>
                            <label for="trackbacks">${ "Trackbacks" | translate }</label>

                            <input class="text" type="text" name="trackbacks" value="" id="trackbacks" />
                        </p>
                        {% for field in options %}
                        <p>
                            <label for="${ field.attr | replace("[", "_") | replace("]", "") }">
                                $field.label
                                {% if field.help %}
                                <span class="sub">
                                    <a href="{% admin "help&id="~field.help %}" class="help emblem"><img src="images/icons/help.png" alt="help" /></a>
                                </span>
                                {% endif %}
                                {% if field.note %}
                                <span class="sub">$field.note</span>
                                {% endif %}
                            </label>
                            {% if field.type == "text" or field.type == "file" %}
                            <input class="$field.type{% if field.classes %} ${ field.classes | join(" ") }{% endif %}" type="$field.type" name="$field.attr" value="{% if not field.no_value %}${ field.value | fallback(post[field.attr] | escape(true, false)) }{% endif %}" id="$field.attr" />
                            {% elseif field.type == "text_block" %}
                            <textarea class="wide{% if field.classes %} ${ field.classes | join(" ") }{% endif %}" rows="${ field.rows | fallback(12) }" name="$field.attr" id="$field.attr" cols="50">{% if not field.no_value %}${ field.value | fallback(post[field.attr] | escape(false, false)) }{% endif %}</textarea>
                            {% elseif field.type == "select" %}
                            <select name="$field.attr" id="$field.attr"{% if field.classes %} class="${ field.classes | join(" ") }"{% endif %}>
                                {% for option in field.options %}
                                <option value="${ option.value | escape }"${ option.selected | option_selected(true) }>${ option.name | escape }</option>
                                {% endfor %}
                            </select>
                            {% endif %}
                            $field.extra
                        </p>
                        {% endfor %}
                        <div class="clear"></div>
                    </div>
                    <br />

                    <div class="buttons">
                        <input type="submit" value="${ "Save" | translate }" accesskey="s" /> ${ "or" | translate }
                        <a href="javascript:void(0)" id="post_cancel_edit_$post.id" class="cancel">${ "Cancel" | translate }</a>
                    </div>

                    <input type="hidden" name="id" value="$post.id" id="id" />
                    <input type="hidden" name="feather" value="${ post.feather | escape }" id="feather" />
                    <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
                    <input type="hidden" name="ajax" value="true" id="ajax" />
                </fieldset>
            </form>
