fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo in translation
[edumed.git]
/
curriculum
/
templates
/
curriculum
/
competence_list.html
diff --git
a/curriculum/templates/curriculum/competence_list.html
b/curriculum/templates/curriculum/competence_list.html
index
cd4ad2f
..
cea4d4e
100755
(executable)
--- a/
curriculum/templates/curriculum/competence_list.html
+++ b/
curriculum/templates/curriculum/competence_list.html
@@
-1,34
+1,44
@@
-{% extends "base.html" %}
+{% extends base_template %}
+{% load chunks %}
+{% load i18n %}
-{% block title %}
Katalog kompetencji medialnych i informacyjnych
{% endblock %}
+{% block title %}
{% trans 'Media, information and digital literacy competencies catalogue' %}
{% endblock %}
{% block body %}
{% block body %}
-<h1>
Katalog kompetencji medialnych i informacyjnych
</h1>
+<h1>
{% trans 'Media, information and digital literacy competencies catalogue' %}
</h1>
+{% if request.LANGUAGE_CODE == 'pl' %}
+ {% chunk 'katalog_kompetencji' %}
+{% endif %}
+
+<div class="curriculum-form">
+<h2><a>{% trans 'Browse competencies' %} <span>({% trans 'expand' %})</span></a></h2>
<form>
<form>
-<h3>Poziom edukacyjny:</h3>
+
+<h3>{% trans 'Education level' %}:</h3>
{% if errors.level %}<p class="error">{{ errors.level }}</p>{% endif %}
{% if errors.level %}<p class="error">{{ errors.level }}</p>{% endif %}
-<strong>edukacja formalna:</strong>
-<ul>
-{% for lev in levels %}
+{% for lev_group, levels in levels.items %}
+ <strong>{{ lev_group }}</strong>
+ <ul class="curriculum-levels">
+ {% for lev in levels %}
<li><label><input type="radio" name="level" value="{{ lev.slug }}"
{% if lev == level %}checked="checked"{% endif %} />
{{ lev }}</label></li>
<li><label><input type="radio" name="level" value="{{ lev.slug }}"
{% if lev == level %}checked="checked"{% endif %} />
{{ lev }}</label></li>
+ {% endfor %}
+ </ul>
{% endfor %}
{% endfor %}
-</ul>
-<strong>edukacja ustawiczna:</strong>
-<h3>
Kategorie kompetencji
:</h3>
+<h3>
{% trans 'Competency categories' %}
:</h3>
{% if errors.competences %}<p class="error">{{ errors.competences }}</p>{% endif %}
{% if errors.competences %}<p class="error">{{ errors.competences }}</p>{% endif %}
-<ul>
+<ul
class="curriculum-sections"
>
{% for section in sections %}
{% for section in sections %}
- <li>
- <label><input type="checkbox" name="s" value="{{ section.pk }}"
+ <li
class="curriculum-section"
>
+ <label><input type="checkbox"
class="s"
name="s" value="{{ section.pk }}"
{% if section.pk in sect_ids %}checked="checked"{% endif %} /> {{ section }}</label>
{% if section.pk in sect_ids %}checked="checked"{% endif %} /> {{ section }}</label>
- <
span class="curriculum-section-toggler" >(rozwiń)</span
>
- <ul>
+ <
a class="curriculum-section-toggler">({% trans 'expand' %})</a
>
+ <ul
class="competences"
>
{% for competence in section.competence_set.all %}
{% for competence in section.competence_set.all %}
- <li
><label><input
type="checkbox" name="c" value="{{ competence.pk }}"
+ <li
class="competence"><label><input class="c"
type="checkbox" name="c" value="{{ competence.pk }}"
{% if competence.pk in comp_ids %}checked="checked"{% endif %} />
{{ competence }}</label></li>
{% endfor %}
{% if competence.pk in comp_ids %}checked="checked"{% endif %} />
{{ competence }}</label></li>
{% endfor %}
@@
-36,19
+46,28
@@
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
-<button>
Pokaż
</button>
+<button>
{% trans 'Show' %}
</button>
</form>
</form>
+</div>
{% if chosen_competences %}
{% if chosen_competences %}
+<h2>{% trans 'Selected competencies' %} – {{ level }}</h2>
+
{% for section, competences in chosen_competences.items %}
<h3>{{ section }}</h3>
{% for competence in competences %}
<h4>{{ competence }}</h4>
{% for section, competences in chosen_competences.items %}
<h3>{{ section }}</h3>
{% for competence in competences %}
<h4>{{ competence }}</h4>
- {{ competence.for_level_.description }}
+ {{ competence.for_level_.description
|linebreaksbr
}}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
-{% endblock %}
\ No newline at end of file
+
+{% if request.GET.d %}
+<script type="text/javascript">
+ var curriculum_hide_form = true;
+</script>
+{% endif %}
+{% endblock %}