]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-195] Подравнять надпись под календарём под каждый месяц, увеличить расстаяние...
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Oct 2024 10:58:38 +0000 (13:58 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Oct 2024 10:58:38 +0000 (13:58 +0300)
erp24/views/production-calendar/index.php

index 0628a2ecd86bcd0b4ff1672e3357b3a6b2c5ceda..c8fd795b5e67d2fc13b7e95d708704453c4f847a 100644 (file)
@@ -36,7 +36,7 @@ $this->registerCssFile('/css/production-calendar/style.css');
 
     <div class="pcal-month-container" style="max-width: 1230px;">
         <?php foreach (DateHelper::MONTH_NAMES as $monthIndex => $month): ?>
-            <div class="pcal-month w-20" style="max-width: 250px;">
+            <div class="pcal-month w-20 mb-5" style="max-width: 250px;">
                 <div class="pcal-month-name"><?= $month; ?></div>
                 <div class="pcal-days">
                     <table>
@@ -50,6 +50,7 @@ $this->registerCssFile('/css/production-calendar/style.css');
                             <?php $num = 1 - date('N', strtotime(date($viewYear . "-" . $padMonth . "-01"))); ?>
                             <?php $numMonth =  date('t', strtotime(date($viewYear . "-" . $padMonth . "-01"))); ?>
                             <?php foreach (range(1, 6) as $weekNum): ?>
+                                <?php if ($num + 1 > $numMonth) { continue; } ?>
                                 <tr>
                                     <?php foreach (DateHelper::DAYS_IN_WEEK_NAMES_SHORT as $dayIndexInWeek => $dayName): ?>
                                         <?php $num++; ?>