diff MoinMoin/themes/basic/templates/modify.html @ 2346:eb3c2da11ba1

separate item views as the itemviews template (basic theme)
author sharky93 <rishabhr123@gmail.com>
date Thu, 25 Jul 2013 12:50:22 +0530
parents 7dd810dc82e1
children dce2bf1e02f4
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Wed Jul 24 21:08:35 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Thu Jul 25 12:50:22 2013 +0530
@@ -1,6 +1,15 @@
-{% extends "modify.html" %}
+{% extends theme("layout.html") %}
+{% 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 %}
+
+{% set title = _("Modifying '%(item_name)s'", item_name=item_name) %}
+
+{% block views %}
+{{ itemviews }}
+{% endblock %}
 
 {% block content %}
 <h2>{{ title }}</h2>
@@ -12,7 +21,6 @@
        For *Draw content, hide submit button and form['comment'], since *Draw
        POSTs originate from their respective applets.
     #}
-    <br/>
     <div class="tabbable tabs-right">
         <ul class="nav nav-tabs">
             <li class="active"><a href="#editor" data-toggle="tab">Edit Content</a></li>