Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c08795c5ac
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (26 sloc) 1.14 kb
{% extends "base.html" %}
{% block content %}
<form action="{{ request.path }}" method="post" class="compose">
{{ xsrf_form_html() }}
{% if entry %}
<input type="hidden" name="key" value="{{ str(entry.key()) }}"/>
{% end %}
<div class="field">
<input name="title" type="text" class="title" value="{{ escape(entry.title) if entry else "" }}"/>
<div class="field">
<textarea name="body" class="body">{{ escape(entry.body) if entry else "" }}</textarea>
<div class="field">
<input name="tags" type="text" class="tags" value="{{ escape(", ".join(sorted(entry.tags))) if entry else "" }}" title="{{ _("Tags (comma-separated):") }}"/>
<div class="field">
<input type="checkbox" name="hidden" id="hidden"{% if entry and entry.hidden %} checked="checked"{% end %}/>
<label for="hidden">{{ _("Hidden") }}</label>
<input type="submit" class="submit" value="{{ _("Save changes") if entry else _("Publish") }}"/>
<a href="{{ "/" + entry.slug if entry else "/" }}">{{ _("Cancel") }}</a>
{% end %}
Jump to Line
Something went wrong with that request. Please try again.