src/cm/templates/site/register.html
author Simon Descarpentries <sid@sopinspace.com>
Mon, 21 Oct 2013 16:37:07 +0200
changeset 553 bf26fb47a14c
parent 439 8994d24e4b2f
child 550 05b5e51e8823
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 i18n %}
{% load com %}

{% block head %}
{% endblock %}

{% block title %}{% blocktrans %}Register{% endblocktrans %}{% endblock %}

{% block content %}

<h1 class="main_title"><a class="title" href="{% url index %}">{{ CONF.workspace_name }}</a></h1>

<div id="login_container">

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

<div class="underline_border">
{% blocktrans with CONF.workspace_name as wname %}{{ wname }} Registration{% endblocktrans %}
</div>


<table class="small_form">
    <tbody>
    {% for form in forms %}
    	{% include "site/macros/form_fields.html" %}
    {% endfor %}
    <tr>
        <td style="vertical-align: top; width: 20%; text-align:right;">
        </td>
        <td>
            <label></label>
            <input name="register" type="submit" value="Register"/>
        </td>
    </tr>
    </tbody>
</table>

</form>

</div>

{% endblock %}