• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

contributte / forms-bootstrap / #57

12 Mar 2024 07:10PM UTC coverage: 82.649% (-0.7%) from 83.353%
#57

Pull #90

github

dakorpar
BC: Compatibility with nette/forms 3.1.14
renamed addDate, addDateTime to addBootstrapDate and addBootstrapDateTime.
added Date/DateTime/Time/Color inputs which acts as default nette forms
Pull Request #90: BC: Compatibility with nette/forms 3.1.14

15 of 25 new or added lines in 3 files covered. (60.0%)

705 of 853 relevant lines covered (82.65%)

5.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/Inputs/ColorPicker.php
1
<?php declare(strict_types = 1);
2

3
namespace Contributte\FormsBootstrap\Inputs;
4

5
use Contributte\FormsBootstrap\BootstrapUtils;
6
use Contributte\FormsBootstrap\Traits\StandardValidationTrait;
7
use Nette\Utils\Html;
8

9
class ColorPicker extends \Nette\Forms\Controls\ColorPicker
10
{
11

12
        use StandardValidationTrait;
13

14
        /** @var bool */
15
        private $isValidated = false;
16

17
        public function getControl(): Html
18
        {
19
                $control = parent::getControl();
1✔
20
                BootstrapUtils::standardizeClass($control);
1✔
21

22
                $control->class[] = 'form-control';
1✔
23

24
                return $control;
1✔
25
        }
26

27
        /**
28
         * @inheritdoc
29
         */
30
        public function validate(): void
31
        {
NEW
32
                parent::validate();
×
33

NEW
34
                $this->isValidated = true;
×
35
        }
36

37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc