-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (57 loc) · 2.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends "base.html" %}
{% block scripts %}
<link href="/stylesheets/form.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
$('#reviewDate').datepicker({
dateFormat: 'yy-mm-dd',
date: $('#reviewDate').val(),
current: $('#reviewDate').val(),
firstDay: 1,
starts: 1,
position: 'r',
changeMonth: false,
changeYear: false,
yearRange: "-5:+5",
onBeforeShow: function () {
$('#reviewDate').datepickerSetDate($('#reviewDate').val(), true);
}
});
$("#peerReviewForm").validate({
rules: {
reviewName: "required",
reviewDate: "required",
content: "required",
},
messages: {
reviewName: "* Merci d'entrer l'identifiant de l'activité.",
reviewDate: "* Merci d'entrer la date à laquelle l'activité s'est déroulée.",
content : "* Merci d'entrer ici la liste des numéros INAMI correspondant aux participants."
}
});
});
</script>
<style type="text/css">
#peerReviewForm label.error, #commentForm input.submit
{
float: none; color: red; padding-left: .5em; vertical-align: top;
}
#peerReview p { clear:both;}
</style>
{% endblock %}
{% block content %}
<form id="peerReviewForm" action="/peerReview" method="post">
<h1>Détails de l'activité:</h1>
<fieldset id="column1">
<label for="reviewName">Activité:</label>
<input type="text" name="reviewName" value="" class="required" />
<label for="reviewDate">Date:</label>
<input type="date" id="reviewDate" name="reviewDate" value="" class="required" />
</fieldset>
<fieldset id="column2">
<label for="content">Numéros INAMI des participants:</label>
<textarea name="content" rows="0" cols="0" class="required"></textarea>
<input type="submit" value="Téléchargement" name="submit" class="submit" />
</fieldset>
</form>
{% endblock %}