Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/websdk/hatta/templates/edit_text.html
diff options
context:
space:
mode:
Diffstat (limited to 'websdk/hatta/templates/edit_text.html')
-rw-r--r--websdk/hatta/templates/edit_text.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/websdk/hatta/templates/edit_text.html b/websdk/hatta/templates/edit_text.html
new file mode 100644
index 0000000..41b27b8
--- /dev/null
+++ b/websdk/hatta/templates/edit_text.html
@@ -0,0 +1,29 @@
+{% extends "page.html" %}
+
+{% block page_title %}<h1>{{ _("Editing \"%(title)s\"", title=title) }}</h1>{% endblock %}
+{% block title %}{{ _("Editing \"%(title)s\"", title=title) }}{% endblock %}
+
+{% block content %}
+ <form action="" method="POST" class="editor"><div>
+ <textarea name="text" cols="80" rows="20" id="edtortext"
+ >{% for line in lines %}{{ line }}{% endfor %}</textarea>
+ <input type="hidden" name="parent" value="{{ parent }}">
+ <label class="comment">{{ _("Comment") }} <input
+ name="comment" value="{{ comment }}"></label>
+ <label class="comment">{{ _("Author") }} <input
+ name="author" value="{{ author }}"></label>
+ <div class="buttons">
+ <input type="submit" name="save" value="{{ _("Save") }}">
+ <input type="submit" name="preview" value="{{ _("Preview") }}">
+ <input type="submit" name="cancel" value="{{ _("Cancel") }}">
+ </div>
+ </div></form>
+ {% if preview %}
+ <h1 class="preview">{{ _("Preview, not saved") }}</h1>
+ <div id="hatta-preview">
+ {% for part in page.view_content(preview) %}{{ part|safe }}{% endfor %}
+ </div>
+ {% endif %}
+{% endblock %}
+
+{% block footer %}{% endblock %}