fr
/
web
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á" title = "PaedDr. Eva Battistová"
[extra] [extra]
group = "ucitele"
role = "Studijní referent, Garant elektronického zápisu pro KITTV" role = "Studijní referent, Garant elektronického zápisu pro KITTV"
email = "eva.battistova@pedf.cuni.cz" email = "eva.battistova@pedf.cuni.cz"
phone = "+420 221 900 141" phone = "+420 221 900 141"

@ -2,6 +2,7 @@
title = "doc. RNDr. Miroslava Černochová, CSc." title = "doc. RNDr. Miroslava Černochová, CSc."
[extra] [extra]
group = "ucitele"
role = "Zahraniční referent" role = "Zahraniční referent"
email = "miroslava.cernochova@pedf.cuni.cz" email = "miroslava.cernochova@pedf.cuni.cz"
phone = "+420 221 900 238" 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; display: flex;
align-items: center; align-items: center;
height: 8em; height: 8em;
@ -280,6 +289,7 @@ main {
} }
} }
} }
}
.button { .button {
display: inline-block; display: inline-block;

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

@ -11,7 +11,12 @@
{{ section.content | safe }} {{ section.content | safe }}
</section> </section>
<section class="people-list"> <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> </section>
</main> </main>
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save