mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-10 13:38:41 +00:00
Remove static loading
This commit is contained in:
parent
e97c0a0293
commit
762007922f
|
|
@ -20,7 +20,7 @@ return ['Calendar' => [
|
|||
'Layout' => 'Layout',
|
||||
'List' => 'List',
|
||||
'Month' => 'Month',
|
||||
'NewEvent' => 'New Event',
|
||||
'NewEvent' => 'New Event',
|
||||
'Settings' => 'Settings',
|
||||
'Timeline' => 'Timeline',
|
||||
'Week' => 'Week',
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ $calendar = $this->getData('calendar');
|
|||
<?php for($j = 0; $j < 7; $j++) : ?>
|
||||
<div contextmenu="calendar-day-menu" style="display: inline-block; box-sizing: border-box; width: 13.0%; height: 100px; border: 1px solid #000; margin: 0; padding: 3px; overflow: hidden">
|
||||
<?php if($calendar->getDate()->getFirstDayOfMonth() <= $i*7+$j+1 && $calendar->getDate()->getDaysOfMonth() >= $i*7+$j+1) {
|
||||
echo ($i*7+$j+1) . ' ' . $this->l11n->getText(0, jddayofweek($j, 'Backend', 1));
|
||||
echo ($i*7+$j+1) . ' ' . jddayofweek($j, 1);
|
||||
} else {
|
||||
echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->getText(0, jddayofweek($j, 'Backend', 1));
|
||||
echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . jddayofweek($j, 1);
|
||||
} ?>
|
||||
<ul>
|
||||
<?php
|
||||
|
|
@ -67,7 +67,7 @@ $calendar = $this->getData('calendar');
|
|||
<li><i class="fa fa-times warning"></i> <span class="check"><input type="checkbox" id="iDefault" checked><label for="iDefault">Default</label></span><i class="fa fa-cogs floatRight"></i>
|
||||
</ul>
|
||||
<div class="spacer"></div>
|
||||
<button><i class="fa fa-calendar-plus-o"></i> <?= $this->l11n->getText(0, 'Add'); ?></button> <button><i class="fa fa-calendar-check-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Create') ?></button>
|
||||
<button><i class="fa fa-calendar-plus-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Add'); ?></button> <button><i class="fa fa-calendar-check-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Create') ?></button>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ return ['Calendar' => [
|
|||
'Layout' => 'Layout',
|
||||
'List' => 'List',
|
||||
'Month' => 'Month',
|
||||
'NewEvent' => 'New Event',
|
||||
'NewEvent' => 'New Event',
|
||||
'Settings' => 'Settings',
|
||||
'Timeline' => 'Timeline',
|
||||
'Week' => 'Week',
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ $calendar = $this->getData('calendar');
|
|||
<?php for($j = 0; $j < 7; $j++) : ?>
|
||||
<div contextmenu="calendar-day-menu" style="display: inline-block; box-sizing: border-box; width: 13.0%; height: 100px; border: 1px solid #000; margin: 0; padding: 3px; overflow: hidden">
|
||||
<?php if($calendar->getDate()->getFirstDayOfMonth() <= $i*7+$j+1 && $calendar->getDate()->getDaysOfMonth() >= $i*7+$j+1) {
|
||||
echo ($i*7+$j+1) . ' ' . $this->l11n->getText(0, jddayofweek($j, 'Backend', 1));
|
||||
echo ($i*7+$j+1) . ' ' . jddayofweek($j, 1);
|
||||
} else {
|
||||
echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->getText(0, jddayofweek($j, 'Backend', 1));
|
||||
echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . jddayofweek($j, 1);
|
||||
} ?>
|
||||
<ul>
|
||||
<?php
|
||||
|
|
@ -67,7 +67,7 @@ $calendar = $this->getData('calendar');
|
|||
<li><i class="fa fa-times warning"></i> <span class="check"><input type="checkbox" id="iDefault" checked><label for="iDefault">Default</label></span><i class="fa fa-cogs floatRight"></i>
|
||||
</ul>
|
||||
<div class="spacer"></div>
|
||||
<button><i class="fa fa-calendar-plus-o"></i> <?= $this->l11n->getText(0, 'Add'); ?></button> <button><i class="fa fa-calendar-check-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Create') ?></button>
|
||||
<button><i class="fa fa-calendar-plus-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Add'); ?></button> <button><i class="fa fa-calendar-check-o"></i> <?= $this->l11n->getText(0, 'Backend', 'Create') ?></button>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user