blob: c120142665fccf519432cb3186ab11efb6ac1801 [file] [log] [blame]
{% extends "v2/modules/gsoc/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% block stylesheets %}
{{ block.super }}
<link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/v2/gsoc/forms.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/v2/gsoc/uniform.default.css" />
{% endblock stylesheets %}
{% block page_content %}
<!-- begin form -->
<form action="#" method="post" id="form" class="form-register">
{% if posted %}
{% if connection_form.errors %}
<div id="flash-message" class="flash-error">
{% if connection_form.non_field_errors %}
{% for error in connection_form.non_field_errors %}
{{ error|striptags }}
{% endfor %}
{% else %}
{% for error in connection_form.errors %}
<p>Sorry, but your data could not be saved. Please fix the errors below.<p>
{% endfor %}
{% endif %}
{% else %}
<div id="flash-message" class="flash-success">
<p>Connection established successfully.</p>
{% endif %}
</div>
{% endif %}
{% if profile_created %}
<div id="flash-message" class="flash-success">
<p>Your profile was saved successfully. Please use this form to request to become a mentor for your organization.</p>
</div>
{% endif %}
{{ logged_in_msg.render }}
<h2 id="form-register-title">{{ page_name}}</h2> <p id="form-register-req" class="req">* fields required</p>
{{ connection_form.render }}
<div id="form-register-fieldset-button-row" class="row button-row">
<input id="form-register-submit" type="submit" value="Submit" class="submit" />
</div>
</form>
<!-- end form -->
{% endblock page_content %}
{% block dependencies %}
[
dep.uniform,
null,
function () {
jQuery("select, input:radio, input:file, input:checkbox").uniform();
}
]
{% endblock dependencies %}