forked from kittv/web
1
0
Fork 0

Řazení pracovníků do skupin

search
Emil Miler 4 years ago
parent f15e26403e
commit 54e9d81eb1

@ -2,6 +2,7 @@
title = "PaedDr. Eva Battistová"
[extra]
group = "ucitele"
role = "Studijní referent, Garant elektronického zápisu pro KITTV"
email = "eva.battistova@pedf.cuni.cz"
phone = "+420 221 900 141"

@ -2,6 +2,7 @@
title = "doc. RNDr. Miroslava Černochová, CSc."
[extra]
group = "ucitele"
role = "Zahraniční referent"
email = "miroslava.cernochova@pedf.cuni.cz"
phone = "+420 221 900 238"

@ -252,7 +252,16 @@ main {
}
}
.people-list article {
.people-list {
h2 {
margin: 3rem 0 4rem 0;
font-size: 1.4rem;
text-align: center;
color: #4C566A;
}
article {
display: flex;
align-items: center;
height: 8em;
@ -280,6 +289,7 @@ main {
}
}
}
}
.button {
display: inline-block;

@ -110,8 +110,9 @@
{% endfor %}
{% endmacro %}
{% macro list_people() %}
{% macro list_people(group) %}
{% for page in section.pages %}
{% if page.extra.group and page.extra.group == group %}
<article>
{{ macro::profile_picture(profile=page) }}
<div class="info">
@ -126,6 +127,7 @@
</div>
</div>
</article>
{% endif %}
{% endfor %}
{% endmacro %}

@ -11,7 +11,12 @@
{{ section.content | safe }}
</section>
<section class="people-list">
{{ macro::list_people() }}
<h2>Vedení katedry</h2>
{{ macro::list_people(group="vedeni") }}
<h2>Vědecko-pedagogičtí pracovníci</h2>
{{ macro::list_people(group="ucitele") }}
<h2>Odborní pracovníci</h2>
{{ macro::list_people(group="odborni-pracovnici") }}
</section>
</main>
{% endblock content %}

Loading…
Cancel
Save