Add a BoostrapFormHelper
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with View/Helper/TwitterBootstrapHelper.php and compare its existing HtmlHelper/FormHelper mix with the listed Cake helper methods. Trace the bake templates and decide how the lightweight BootstrapFormHelper should cover create, input, end, button, radio, checkbox, and select without regex; done means those generated forms receive the intended Bootstrap 3 defaults.
Written by the indexing model from the issue text.
Description
The current bake templates mostly output Bootstrap styled code by default. One area that is weak are generated <forms> for add/edit. The current templates were taken from ABUS, which used the BoostCake helpers to auto-inject Bootstrap-specific settings into calls to Form->create(), Form-->input(), etc. We need something similar, but without the huge bloated, regex-powered BoostCake stuff.
I started some work on this a long time ago in what is currently View/Helper/TwitterBootstrapHelper.php. This is kind of a mixup of HtmlHelper and FormHelper currently. There are probably some base functions like _buttonOptions() that could be placed in a central class, and then break out the assistance methods for overriding Form->create() or Html->getCrumbs()` into respective BootstrapFormHelper and BootstrapHtmlHelper classes like in Joey's loadsys/twitter-bootstrap-helper and BoostCake, but much lighter in weight and tuned for BT3 (with no regex either).
We don't need to go for full Bootstrap feature completeness, just enough to set proper default TB3 styles for Cake's built-in helper methods and really just our bake templates (which means Form->create, input, end, button and the input subtypes like radio, checkbox, select).
- Dominant language
- PHP
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from loadsys/CakePHP-Skeleton
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
loadsys/CakePHP-Skeleton#173 · 1 comment ·
-
3.x enhancement
Difficulty 3/5 1-2 days Newbie friendliness 42/100
loadsys/CakePHP-Skeleton#169 ·
-
Add `loadsys/cakephp-loadsys-theme` as a dev dependencyMay be free again @justinyost claimed this 3759 days ago, and no pull request is open. Open3.x enhancement
loadsys/CakePHP-Skeleton#166 · 1 assignee ·
-
Add Rule Class for Being In the Configure ListMay be free again @justinyost claimed this 3759 days ago, and no pull request is open. Open3.x enhancement
loadsys/CakePHP-Skeleton#164 · 1 assignee ·
-
Update The Script Block To Be At The BottomMay be free again @justinyost claimed this 3759 days ago, and no pull request is open. Open3.x enhancement
loadsys/CakePHP-Skeleton#162 · 1 assignee ·
All issues in loadsys/CakePHP-Skeleton
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
UX
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ProfessionalWiki/NeoWiki#1573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
endoflife-date/endoflife.date#11194 ·
Maintainers usually reply within 1 day