evaluation
This commit is contained in:
parent
49fbc9bd54
commit
27ddf8883a
8 changed files with 58 additions and 4 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<li><a href="{% url 'processus-list' %}">Processus</a> </li>
|
||||
<li><a href="{% url 'module-list' %}">Modules</a> </li>
|
||||
<li><a href="{% url 'periodes' %}">Périodes</a> </li>
|
||||
<li><a href="{% url 'evaluation' %}">Evaluation</a> </li>
|
||||
<!-- <li><a href="{% url 'pdf-view' %}">Calendrier</a> </li>-->
|
||||
{% if has_permission %}
|
||||
<li><a href="#">Calendrier</a> </li>
|
||||
|
|
|
|||
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