changeset 2661:cfa54a0ad2c7

Added some more meta data information(specific to blog items such as ptime, supertags etc) to be displayed in blog modify view in basic theme
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Thu, 17 Jul 2014 09:54:45 +0530
parents 5adf57d02448
children 2a50e6628a16
files MoinMoin/templates/blog/modify_entry_meta.html MoinMoin/templates/blog/modify_main_meta.html MoinMoin/themes/basic/templates/modify.html
diffstat 3 files changed, 34 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/blog/modify_entry_meta.html	Wed Jul 16 11:16:17 2014 +0530
+++ b/MoinMoin/templates/blog/modify_entry_meta.html	Thu Jul 17 09:54:45 2014 +0530
@@ -3,13 +3,13 @@
 {% macro meta_editor(form) %}
     <h2>Blog entry metadata</h2>
     <dl>
+        {# TODO: Make blog_entry nameless #}
         {% for e in [
             'itemtype',
             'contenttype',
             'summary',
             'tags',
             'acl',
-            {# TODO: Make blog_entry nameless #}
             'name',
             'ptime',
             ] %}
@@ -17,3 +17,19 @@
         {% endfor %}
     </dl>
 {% endmacro %}
+
+{% macro basic_meta_editor(form) %}
+    {% for e in [
+        'itemtype',
+        'contenttype',
+        'summary',
+        'tags',
+        'name',
+        'ptime',
+        ] %}
+        <div class="form-group">
+            {{ gen.label(form[e]) }}
+            {{ gen.textarea(form[e], rows='1', class='form-control') }}
+        </div>
+    {% endfor %}
+{% endmacro %}
--- a/MoinMoin/templates/blog/modify_main_meta.html	Wed Jul 16 11:16:17 2014 +0530
+++ b/MoinMoin/templates/blog/modify_main_meta.html	Thu Jul 17 09:54:45 2014 +0530
@@ -16,3 +16,19 @@
         {% endfor %}
     </dl>
 {% endmacro %}
+
+{% macro basic_meta_editor(form) %}
+    {% for e in [
+        'itemtype',
+        'contenttype',
+        'summary',
+        'tags',
+        'name',
+        'supertags',
+        ] %}
+        <div class="form-group">
+            {{ gen.label(form[e]) }}
+            {{ gen.textarea(form[e], rows='1', class='form-control') }}
+        </div>
+    {% endfor %}
+{% endmacro %}
--- a/MoinMoin/themes/basic/templates/modify.html	Wed Jul 16 11:16:17 2014 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Thu Jul 17 09:54:45 2014 +0530
@@ -1,7 +1,7 @@
 {% 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(form.meta_template) import basic_meta_editor %}
 {% import theme("itemviews.html") as itemviews with context %}
 {% import theme(form['content_form'].template) as content_template %}
 {% set extra_head = content_template.extra_head %}