1
0
forked from ScoDoc/ScoDoc
ScoDoc/app/templates/but/refcomp_show.j2

61 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
{% extends "sco_page.j2" %}
{% block styles %}
{{super()}}
2023-04-14 23:36:36 +02:00
<link href="{{scu.STATIC_DIR}}/css/refcomp_parcours_niveaux.css" rel="stylesheet" type="text/css" />
{% endblock %}
2021-12-04 22:20:08 +01:00
{% block app_content %}
<h2>Référentiel de compétences {{ref.type_titre}} {{ref.specialite_long}}</h2>
<div class="help">
Référentiel chargé le {{ref.scodoc_date_loaded.strftime("%d/%m/%Y à %H:%M") if ref.scodoc_date_loaded else ""}} à
partir du fichier <tt>{{ref.scodoc_orig_filename or "(inconnu)"}}</tt>.
</div>
2021-12-04 22:20:08 +01:00
2023-04-13 15:16:14 +02:00
<div class="refcomp_show">
<div>
<ref-competences></ref-competences>
</div>
2021-12-04 22:20:08 +01:00
{% include "but/refcomp_parcours_niveaux.j2" %}
2021-12-04 22:20:08 +01:00
2023-04-13 15:16:14 +02:00
<div class="liens">
<ul>
<li>Formations se référant à ce référentiel:
<ul>
{% for formation in ref.formations %}
<li><a class="stdlink" href="{{
url_for('notes.ue_table', scodoc_dept=g.scodoc_dept, formation_id=formation.id )
}}">{{ formation.get_titre_version() }}</a></li>
{% else %}
<li><em>aucune</em></li>
{% endfor %}
</ul>
</li>
<li><a class="stdlink" href="{{url_for('notes.refcomp_table', scodoc_dept=g.scodoc_dept)}}">Liste des référentiels</a>
</li>
</ul>
2023-04-13 15:16:14 +02:00
</div>
2021-12-04 22:20:08 +01:00
</div>
{% endblock %}
{% block scripts %}
{{super()}}
2023-05-12 10:00:11 +02:00
<script src="{{scu.STATIC_DIR}}/js/ref_competences.js"></script>
<script>
$(function () {
let data_url = "{{data_source}}";
$.getJSON(data_url, function (data) {
document.querySelector("ref-competences").setData = data;
});
});
</script>
2021-12-04 22:20:08 +01:00
{% endblock %}