evaluation
This commit is contained in:
parent
49fbc9bd54
commit
27ddf8883a
8 changed files with 58 additions and 4 deletions
42
templates/cms/evaluation.html
Normal file
42
templates/cms/evaluation.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
$("select.P01").change(function(){
|
||||
|
||||
tot = 0
|
||||
$('select.P01 option:selected').each(function(){
|
||||
tot = tot + parseInt($(this).val());
|
||||
});
|
||||
alert(tot);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<div id="content-main">
|
||||
<h1>Evaluation des compétences</h1>
|
||||
<table>
|
||||
{% for p in object_list %}
|
||||
<tr><th>{{p}}</th><td></td></tr>
|
||||
{% for c in p.competence_set.all %}
|
||||
<tr><td>{{c}}</td><td><select class="{{p.code}}" ><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option></select></td></tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue