Files
vivespos-landing/modules/backend/formwidgets/datepicker/partials/_datepicker.php
avives 1f72193a64
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
- Base: wintercms/winter branch 1.2 (full framework)
- Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS
- Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication
- Partials: hero (offline-first), features, modes (offline/nube toggle),
  screenshots, pricing (3 planes), comparison, FAQ, CTA
- Plugin VivesPOS.Site with ContactForm
- Dockerfile: PHP 8.2 Apache, port 80, healthcheck
- Added winter/wn-pages, blog, sitemap, seo plugins
- Active theme set to vivespos
2026-08-21 19:29:00 -06:00

80 lines
2.3 KiB
PHP

<?php if (!empty($error)): ?>
<p class="flash-message static error">
<?= e($error); ?></p>
</p>
<?php if ($this->previewMode): ?>
<span class="form-control"><?= $value ? e($value) : '&nbsp;' ?></span>
<?php else: ?>
<input
type="text"
name="<?= $field->getName() ?>"
id="<?= $field->getId() ?>"
value="<?= e($value) ?>"
class="form-control"
autocomplete="off"
/>
<?php endif ?>
<?php return; ?>
<?php endif; ?>
<?php if ($this->previewMode): ?>
<div class="form-control"><?= Backend::dateTime($value, [
'format' => $format,
'formatAlias' => $formatAlias,
'defaultValue' => $value
]) ?></div>
<?php else: ?>
<div
id="<?= $this->getId() ?>"
class="field-datepicker"
data-control="datepicker"
data-mode="<?= $mode ?>"
data-show-week-number="<?= $showWeekNumber ?>"
<?php if ($formatMoment): ?>
data-format="<?= $formatMoment ?>"
<?php endif ?>
<?php if ($minDate): ?>
data-min-date="<?= $minDate ?>"
<?php endif ?>
<?php if ($maxDate): ?>
data-max-date="<?= $maxDate ?>"
<?php endif ?>
<?php if ($yearRange): ?>
data-year-range="<?= $yearRange ?>"
<?php endif ?>
<?php if ($firstDay): ?>
data-first-day="<?= $firstDay ?>"
<?php endif ?>
<?php if ($ignoreTimezone): ?>
data-ignore-timezone
<?php endif ?>
>
<?php if ($mode == 'date'): ?>
<?= $this->makePartial('picker_date') ?>
<?php elseif ($mode == 'datetime'): ?>
<div class="row">
<div class="col-md-7">
<?= $this->makePartial('picker_date') ?>
</div>
<div class="col-md-5">
<?= $this->makePartial('picker_time') ?>
</div>
</div>
<?php elseif ($mode == 'time'): ?>
<?= $this->makePartial('picker_time') ?>
<?php endif ?>
<!-- Data locker -->
<input
type="hidden"
name="<?= $field->getName() ?>"
id="<?= $field->getId() ?>"
value="<?= e($value) ?>"
data-datetime-value
/>
</div>
<?php endif ?>