src/cm/templates/site/layout/base_workspace_form.html
author Simon Descarpentries <sid@sopinspace.com>
Mon, 21 Oct 2013 16:37:07 +0200
changeset 553 bf26fb47a14c
parent 0 40c8f766c9b8
permissions -rw-r--r--
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout. So the automated scrolling operations in c_sync.js must be adjustable to the right part to scroll. Also, if a comment have to be shown outside of the current viewport, we scroll the correct part to that viewport and then set the comment top Y offset to juste what it needs to avoid the "Add comment" button after scrolling operation. If not in Safari mobile, we add an offset here to avoid comment to display under the "Add comment" button.

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

{% block head %}
{% endblock %}

{% block main %}

{% block pre_form %}
{% endblock %}

<form enctype="multipart/form-data" class="wizard-form" action="." method="post">

<table summary="form" class="wide_form">
    <tbody>
    {% if form %}
        {% include "site/macros/form_fields.html" %}
    {% endif %}

    {% if forms %}
        {% for form in forms %}
            {% include "site/macros/form_fields.html" %}
        {% endfor %}
    {% endif %}
    
    <tr>
        <td style="vertical-align: top; width: 20%; text-align:right;">
        </td>
        <td>
            <label>&nbsp;</label>
            <input name="{% if save_name %}{{ save_name }}{% else %}{% blocktrans %}Save{% endblocktrans %}{% endif %}" type="submit" value="{% if save_name %}{{ save_name }}{% else %}{% blocktrans %}Save{% endblocktrans %}{% endif %}"/>
            {% block buttons %}
            {% endblock %}            
        </td>
    </tr>
    </tbody>
</table>

</form>

{% block post_form %}
{% endblock %}

{% endblock %}