view MoinMoin/themes/basic/templates/modify.html @ 2338:a6c3df154d27

adds horizontal rule to separate comment and edit content
author sharky93 <rishabhr123@gmail.com>
date Tue, 23 Jul 2013 20:52:14 +0530
parents 7c01aeab600c
children 60c3cba1aad4
line wrap: on
line source
{% extends "modify.html" %}
{% from theme("modify_meta.html") import basic_meta_editor %}


{% block content %}
<h2>{{ title }}</h2>
<div id="moin-modify" class="moin-form">
    {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
    {{ forms.render_errors(form) }}
    {#
       Workaround:
       For *Draw content, hide submit button and form['comment'], since *Draw
       POSTs originate from their respective applets.
    #}
    {% if not form['content_form'].is_draw %}
        {{ forms.render_submit(form, class='btn btn-primary', id='moin-save-text-button') }}
        <dl>
            {{ forms.render_textcha(gen, form) }}
            {{ forms.render(form['comment']) }}
        </dl>
    {% endif %}
    <hr>
    <div class="tabbable tabs-right">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#editor" data-toggle="tab">Edit</a></li>
            <li><a href="#gmeta" data-toggle="tab">General Meta</a></li>
            <li><a href="#emeta" data-toggle="tab">Extra Meta</a></li>
        </ul>    
        <div class="tab-content">
            <div class="tab-pane active" id="editor">
                {{ data_editor(form['content_form'], item_name, class='input-block-level') }}
                {% if form['content_form'].help %}
                    <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
                {% endif %}
            </div>
            <div class="tab-pane" id="gmeta">
                {{ basic_meta_editor(form['meta_form']) }}
            </div>
            <div class="tab-pane" id="emeta">
                {{ forms.render(form['extra_meta_text'], class='span6') }}
            </div>
        </div>
    </div> <!-- left tabbable -->
    {#
    {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
    <br />
    {{ forms.render_errors(form['meta_text']) }}
    #}
    {{ gen.form.close() }}
</div>
{% endblock %}