evaluation

This commit is contained in:
alazo 2017-03-09 16:20:13 +01:00
parent 49fbc9bd54
commit 27ddf8883a
8 changed files with 58 additions and 4 deletions

View file

@ -5,7 +5,7 @@
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static "admin/css/base.css" %}" />
<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
<script src="{% static 'js/jquery.js' %}"></script>
{% block extrastyle %}<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}" />{% endblock %}
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
{% block extrahead %}{% endblock %}

View file

@ -22,6 +22,7 @@
<li><a href="{% url 'processus-list' %}">Processus</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'module-list' %}">Modules</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'periodes' %}">Périodes</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'evaluation' %}">Evaluation</a>&nbsp;&nbsp;</li>
<!-- <li><a href="{% url 'pdf-view' %}">Calendrier</a>&nbsp;&nbsp;</li>-->
{% if has_permission %}
<li><a href="#">Calendrier</a>&nbsp;&nbsp;</li>

View 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 %}