Code Monkey home page Code Monkey logo

Comments (7)

maxschulze avatar maxschulze commented on May 15, 2024

Checkout my fork for this http://github.com/maxschulze/simple_form
You can supply :wrap_element_tag (Tag for each element e.g. LI) and :wrap_list_tag (Tag for the whole block, e.g. UL) with the :input_html option.

from simple_form.

carlosantoniodasilva avatar carlosantoniodasilva commented on May 15, 2024

There is no such config in SimpleForm yet, a patch is welcome!
And you're right about the docs, please feel free to fork and fix it, then just send a pull request and I'll apply your changes. Thanks.

@maxschulze I took another look at your branch, could you add some tests to this feature and send a new pull request? Thanks!

from simple_form.

maxschulze avatar maxschulze commented on May 15, 2024

Will do!

from simple_form.

josevalim avatar josevalim commented on May 15, 2024

Closing as stale. Feel free to reopen it with a pull request.

from simple_form.

maxschulze avatar maxschulze commented on May 15, 2024

For everything who is looking for this, there now seems to be a option for collection_check_boxes

  #   * collection_wrapper_tag => the tag to wrap the entire collection.
  #
  #   * item_wrapper_tag       => the tag to wrap each item in the collection.

Just saw that my self.

from simple_form.

carlosantoniodasilva avatar carlosantoniodasilva commented on May 15, 2024

Hey mate, thanks for commenting back here, I really forgot to do that =).

from simple_form.

sledge909 avatar sledge909 commented on May 15, 2024

Thanks for this @maxschulze

from simple_form.

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.