blob: adf6a8370d0bc4d1fc9f9dda96e2ce1fe2ad9cb5 [file] [log] [blame]
{% extends "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="/{{ css_path }}/forms.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/{{ css_path }}/uniform.default.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/tables.css" />
{% endblock stylesheets %}
{% block synchronous_scripts %}
<script type='text/javascript' src="/tiny_mce/tiny_mce.js"></script>
{{ block.super }}
{% endblock synchronous_scripts %}
{% block page_content %}
{% include "forms/_data_saved_message.html" %}
<h1 id="main-page-title" class="dashboard-title">Manage Student Project</h1>
{% for extension_form in extension_forms %}
<form action="#" method="POST" id="form" class="form-register">
<h3 id="midterm-extension-title">Extension for {{ extension_form.title }}</h3>
<fieldset class="fieldset-referral">
<div id="form-row-start-date" class="row {% if extension_form.start_date.errors %}error{% endif %}">
<label>{{ extension_form.start_date.label }}</label>
{{ extension_form.start_date }}
{% if extension_form.start_date.errors %}
<div class="error-message">
{% for error in extension_form.start_date.errors %}
{{ error|escape }}
{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
<div id="form-row-end-date" class="row {% if extension_form.end_date.errors %}error{% endif %}">
<label>{{ extension_form.end_date.label }}</label>
{{ extension_form.end_date }}
{% if extension_form.end_date.errors %}
<div class="error-message">
{% for error in extension_form.end_date.errors %}
{{ error|escape }}
{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</fieldset>
<div id="form-register-fieldset-button-row" class="row button-row">
<input id="form-register-submit" type="submit" value="{{ extension_form.button_value }}"
class="submit" name="{{ extension_form.name }}"/>
</div>
</form>
{% endfor %}
{% endblock page_content %}
{% block dependencies %}
[
dep.uniform,
dep.counter,
dep.melange.datetimepicker,
null,
tc("/summerofcode/content/{{ app_version }}/js/templates/project_manage/admin_manage.js")
]
{% endblock dependencies %}