redesign of direction card #35

Merged
aslan merged 2 commits from RomanGolienko/Roman_applicant-site:prodV1 into main 2024-03-27 09:21:32 +03:00
1 changed files with 49 additions and 3 deletions
Showing only changes of commit a9f9a8f0fe - Show all commits

View File

@ -50,7 +50,37 @@ class DirectonHtmlBuilder
} }
$mgtu = '';
if(array_key_exists('МГТУ', $direction['budget_places'])){
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
$profile_content ='';
foreach($profile as $forms => $budget_places){
$profile_content .= "<strong> {$forms} </strong> - " . "<span style='font-family: Geologica-ExtraLight'> {$budget_places} </span><br>";
}
$mgtu .= "<div class=\"accordion\" id=\"accordionExample\">
<div class=\"accordion-item\">
<h2 class=\"accordion-header\">
<button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapseOne\" aria-expanded=\"true\" aria-controls=\"collapseOne\">
$profile_name
</button>
</h2>
<div id=\"collapseOne\" class=\"accordion-collapse collapse show\" data-bs-parent=\"#accordionExample\">
<div class=\"accordion-body\">
$profile_content
</div>
</div>
</div>
</div>" ;
}
}
$filial = '222';
@ -71,8 +101,8 @@ class DirectonHtmlBuilder
</div> </div>
<div class='col d-flex justify-content-end'> <div class='col d-flex justify-content-end'>
<div class=\"fs-5 \" style=\"font-family: Geologica-Light\"> <div class=\"fs-5 \" style=\"font-family: Geologica-Light\">
<a href='#' role='button'> МГТУ </a> | <a href='#' role='button' class='button-mgtu'> МГТУ </a> |
<a href='#' role='button' > Филиал МГТУ (пос. Яблоновский)</a> <a href='#' role='button' class='button-filial' > Филиал МГТУ (пос. Яблоновский)</a>
</div> </div>
</div> </div>
</div> </div>
@ -100,7 +130,23 @@ class DirectonHtmlBuilder
</div> </div>
<div class=' col-7 '> <div class=' col-7 '>
<div class=\"p-3 px-5 border-success fs-5 h-100\" style='border-radius: 20px; border: 2px solid;'> <div class=\"p-3 px-5 border-success fs-5 h-100\" style='border-radius: 20px; border: 2px solid;'>
Места для обучения: <script>
$(\".button-mgtu\").click(function () {
$(\".content_budget\").html('{$mgtu}');
});
$(\".button-filial\").click(function () {
$(\".content_budget\").html('{$filial}');
});
</script>
<style>
</style>
<strong>Места для обучения:</strong><br>
<div class='content_budget'>
</div>
</div> </div>
</div> </div>
</div> </div>