Завел переключатель отчетов в кабинете

parent 1becf33b
...@@ -403,3 +403,44 @@ input[type="checkbox"] ...@@ -403,3 +403,44 @@ input[type="checkbox"]
display: none; display: none;
} }
.b-filter__switch {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.display.b-filter__switch {
max-width: 670px;
}
.display.b-filter__switch.metric-cat {
max-width: none;
}
.b-filter__switch-item {
height: 40px;
min-width: 75px;
padding: 0 15px;
white-space: nowrap;
text-align: center;
font-size: 0.7rem;
line-height: 36px;
border: 1px solid #E6E6E6;
border-left: none;
background-color: #FFFFFF;
color: #383838;
cursor: pointer;
transition: color 0.2s ease, background-color 0.2s ease;
}
.b-filter__switch-item:first-child {
border-radius: 5px 0 0 5px;
border: 1px solid #E6E6E6;
}
.b-filter__switch-item:last-child {
border-radius: 0 5px 5px 0;
border: 1px solid #E6E6E6;
border-left: none;
}
.m-filter__switch-item_active.b-filter__switch-item {
background-color: #E6E6E6;
}
\ No newline at end of file
...@@ -135,6 +135,15 @@ if (!$error) { ...@@ -135,6 +135,15 @@ if (!$error) {
</div> </div>
</div> </div>
<div class="b-filter__switch display">
<?php foreach($reports_list as $report_name => $report_title): ?>
<?php /* ?>
<a href="<?= $this->url('user.cabinet', ['lang' => $this->lang, 'report' => $report_name]) ?>" <?php if($current_report == $report_name): ?>class="current"<?php endif; ?> report="<?= $report_name ?>"><?= _t($report_title) ?></a>
<?php */ ?>
<span class="b-filter__switch-item text <?php if($current_report == $report_name): ?>m-filter__switch-item_active<?php endif; ?>"><?= _t($report_title) ?></span>
<?php endforeach; ?>
</div>
<?php /* Выбор дат */ ?> <?php /* Выбор дат */ ?>
<span class="b-feeds-stat_controls-period"> <span class="b-feeds-stat_controls-period">
<div style="display:inline-block;">Дата: </div> <div style="display:inline-block;">Дата: </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment