Skip to content
Snippets Groups Projects
Commit c7afc805 authored by fanky's avatar fanky
Browse files

Added collapsible candidate table organism, added candidate listing template

parent 61ec9050
No related branches found
No related tags found
No related merge requests found
Pipeline #2900 passed
<div class="candidate-table container-padding--zero lg:container-padding--auto">
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
<div class="candidates-list-collapsing-part transition-all duration-1000 max-h-0 overflow-hidden">
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
{{> molecules-candidate-table-row }}
</div>
</div>
<div class="pt-11 text-center">
{{> atoms-icon-button(icon: "ico--chevron-right", classes: "showfulltable text-lg", bodyClasses: "py-4 px-11 leading-5" ) }}
</div>
<script>
//collapse toggle
//assumes only one present on page
var anchorShowFull = document.getElementsByClassName('showfulltable');
if(anchorShowFull !== null) {
for (var i = 0; i < anchorShowFull.length; i++) {
anchorShowFull[i].addEventListener('click', function(e){
e.preventDefault();
var candidatestable = document.getElementsByClassName("candidate-table");
//if fadeout
//candidatestable[0].classList.remove("candidate-table--fadeout");
var collapsepart = document.getElementsByClassName("candidates-list-collapsing-part");
collapsepart[0].style.maxHeight=collapsepart[0].scrollHeight + "px";
this.remove();
});
}
}
</script>
\ No newline at end of file
{{> organisms-header }}
<div class="container container--default py-8 lg:py-24">
<section class="text-center">
<h1 class="head-alt-md mb-8">Výpis kandidátů</h1>
<main>
{{> organisms-candidate-card-list }}
{{> organisms-candidate-table-collapsible }}
</main>
</section>
</div>
{{> organisms-footer }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment