Code Monkey home page Code Monkey logo

Comments (11)

kristijanhusak avatar kristijanhusak commented on May 27, 2024

Check helper functions form_label, form_widget, form_row in the docs.

from laravel-form-builder.

mikeerickson avatar mikeerickson commented on May 27, 2024

Excellent, thanks!

from laravel-form-builder.

mikeerickson avatar mikeerickson commented on May 27, 2024

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.

kristijanhusak avatar kristijanhusak commented on May 27, 2024

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.

kristijanhusak avatar kristijanhusak commented on May 27, 2024

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.

mikeerickson avatar mikeerickson commented on May 27, 2024

Awesome sauce :)

Thanks for considering (and adding). That will make life a lot simpler.

from laravel-form-builder.

mikeerickson avatar mikeerickson commented on May 27, 2024

@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.

mikeerickson avatar mikeerickson commented on May 27, 2024

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.

mikeerickson avatar mikeerickson commented on May 27, 2024

@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.

kristijanhusak avatar kristijanhusak commented on May 27, 2024

Everything should be up to date. :-)

from laravel-form-builder.

mikeerickson avatar mikeerickson commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.