{% extends "site/layout/base_text.html" %}
{% load i18n %}
{% load com %}

{% block head %}
<script type="text/javascript" src="{{ MEDIA_URL }}js/site/text_edit.js"></script>
{% endblock %}

{% block main %}
    {% include "site/macros/text_editor.html" %}

<script type="text/javascript">
<!--
tb_conf['current_tab'] = 'edit';
// keep get parameters!! 
tb_conf['pre_edit_url'] = '{% url text-preedit text.key %}?{{ request.GET.urlencode }}';
-->
</script>

<div style="display: none;">
    <div id="check_save_dialog"></div>
</div>

<div id="text_edit" class="tab-meta">
<form id="edit_form" class="text-form wizard-form" action="." method="post">
    <table class="wide_form">
        <tbody>
            {% include "site/macros/form_fields.html" %}
    <tr>
        <td style="vertical-align: top; width: 20%; text-align:right;">
        </td>
        <td>
            <label></label>
            <input name="save" id="save" type="button" value="{% blocktrans %}Save{% endblocktrans %}"/>            
        </td>
    </tr>
        </tbody>
    </table>
</form>
</div>

{% endblock %}
