Comments (11)
Check helper functions form_label, form_widget, form_row in the docs.
from laravel-form-builder.
Excellent, thanks!
from laravel-form-builder.
So, as I see it, the only way this can be done is by customizing each view where checkboxes are used and I have to do it for every template
Seems that kinda defeats purpose if I wanted to use this package to create majority of application forms.
Would be nice if I could set this globally, or at a minimum in each class where I construct the forms (as an option when adding/modifying)
Note: I am using with Laravel 4
from laravel-form-builder.
If you want it permanently across project you can just customize the view that is using (https://github.com/kristijanhusak/laravel-form-builder/tree/laravel-4#changing-configuration-and-templates).
Publish the views, edit the checkbox.php
and just switch places for label and checkbox.
from laravel-form-builder.
I consulted few people and decided to do the switch like this to be default, because it's more natural. So just update to the last version and you should be good to go.
from laravel-form-builder.
Awesome sauce :)
Thanks for considering (and adding). That will make life a lot simpler.
from laravel-form-builder.
@kristijanhusak Did this get merged with Laravel 4 branch, or just current release? I ask because I just updated and it is still the same?
from laravel-form-builder.
In short term, I will just address it in the template as you outlined above (easy enough) but just wanted to let you know.
from laravel-form-builder.
@kristijanhusak I found the issue as to why it was not working. I had already published view assets with previous version so those assets were taking precedence. After deleting the packages assets, all worked as expected.
from laravel-form-builder.
Everything should be up to date. :-)
from laravel-form-builder.
@kristijanhusak see above, all is well (it was a local copy of the published views causing the issue I was having). Again, all is good now. Thanks!
from laravel-form-builder.
Related Issues (20)
- v1.50 breaks field type collection HOT 5
- BUG: radio buttons chioce type returns an array HOT 5
- Feature request: Switching between classes by theme HOT 9
- Please change CHANGELOG and Releases HOT 3
- Select option for null values HOT 3
- Multiple file upload HOT 1
- Feature request: Add conditional field HOT 3
- Add Fieldset type HOT 3
- Compatibility Laravel 9 ? HOT 2
- getFieldValues() default value instead of null HOT 2
- Default placeholder for entity type(Field::ENTITY). HOT 1
- Radio button has problem HOT 2
- Using entity how we can display format with multiple columns HOT 1
- Collection of templated form HOT 2
- Error: count(): Argument #1 ($value) must be of type Countable|array, Mekongdelta\Slug\Models\Slug given HOT 5
- Validate without request HOT 10
- Invalid pattern for input
- At least one "choice" checkboxes required HOT 2
- Support for Laravel 11 HOT 4
- v1.53 - Method customLabel does not exist HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-form-builder.