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

adamwathan / bootforms / 154
91%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2017 02:55PM UTC
Jobs 2
Files 10
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
154

Pull #132

travis-ci

web-flow
Support for `->required()` on the label within a form group

By intercepting the `required($conditional)` function here we will add automatically the `control-label-required` CSS class to the `<label>` HTML element.

This way you are able to use CSS to style the `<label>` HTML element however you want, you can even use pseudo-elements to add an asterisk:
```css
label.control-label-required:after {
    content: " *";
}
```

Obviously we wont interfere with Form Builder and we'll call the `required()` function defined within `adamwathan/form` no matter what. The CSS class will just be added conditionally.
Pull Request #132: Support for `->required()` on the label within a form group

5 of 5 new or added lines in 1 file covered. (100.0%)

250 of 280 relevant lines covered (89.29%)

29.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
src/AdamWathan/BootForms/Elements/GroupWrapper.php
Jobs
ID Job ID Ran Files Coverage
1 154.1 25 Apr 2017 02:55PM UTC 0
89.29
Travis Job 154.1
2 154.2 25 Apr 2017 02:55PM UTC 0
91.09
Travis Job 154.2
Source Files on build 154
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #154
  • Pull Request #132
  • PR Base - master (#153)
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