changeset 2481:76098dbcb43c

adds support for editing non-wiki binary items
author sharky93 <rishabhr123@gmail.com>
date Sat, 14 Sep 2013 17:49:28 +0530
parents a17476268e7a
children f50f7d1cbf14
files MoinMoin/themes/basic/templates/modify.html MoinMoin/themes/basic/templates/modify_binary.html
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Sat Sep 14 04:22:40 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Sat Sep 14 17:49:28 2013 +0530
@@ -2,8 +2,9 @@
 {% import "forms.html" as forms %}
 {% import "utils.html" as utils %}
 {% from theme("modify_meta.html") import basic_meta_editor %}
-{% from theme("modify_text.html") import basic_data_editor %}
 {% import theme("itemviews.html") as itemviews with context %}
+{% import theme(form['content_form'].template) as content_template %}
+{% set basic_data_editor = content_template.basic_data_editor %}
 
 {% set title = _("Modifying '%(item_name)s'", item_name=item_name) %}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/modify_binary.html	Sat Sep 14 17:49:28 2013 +0530
@@ -0,0 +1,6 @@
+{% import "forms.html" as forms %}
+
+{% macro basic_data_editor(form, item_name, class) %}
+    {{ forms.render(form['data_file']) }}
+<br />
+{% endmacro %}