Code Monkey home page Code Monkey logo

bootstrap-form-builder's Introduction

Bootstrap v 3.0.0 Form Builder

This is not maintained anymore, @Bloggify but an amazing one based on bootstrap 4 here

What's this?

A Drag-and-drop form builder for twitter bootstrap.

Currently using v. 3.0.0 ๐Ÿฌ

Where can I see it in action using bootstrap v 2.3.1 thanks to minikomi?

And It's hosted on github pages here using bootstrap v 3.0.0

Notes

  • This project is still under development.

  • For development & debugging change the data-main for the require script tag in index.html to point at assets/js/main.js. (Look just before the closing <body> tag!)

  • Once done, change it back to build for production using the build.js script in the assets/js/lib folder and r.js. Then revert to assets/js/main-built.js

  • The full command is r.js -o assets/js/lib/build.js which should be run from the base directory.

Adding new form elements

  • In the js/data/yaml folder are yaml files, each of which corresponds to a tab in the form builder.
  • If you just want to add a new element you need to:
  • If you want to add a new tab, you'll also need to adjust the app.js file to make sure the tab is loaded.

Don't forget to switch to main.js rather than main-built.js, or the changes you make before compiling with require.js won't show up!

bootstrap-form-builder's People

Contributors

ihabsoliman avatar ionicabizau avatar minikomi avatar msurguy avatar nfvs avatar peterb-2795 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-form-builder's Issues

update libs or Browserify?

I've successfully updated Bootstrap, Underscore (to Lo-Dash Underscore build on their dev repo), Require.js & RequireJS text to their latest, & Backbone to 1.0.0 (1.1.* didn't seem to work). Took a while, but a friend told me about Browserify being better to compile & update dependencies.

What do you think is better?

add BootstrapValidator?

https://github.com/nghuuphuoc/bootstrapvalidator#bootstrapvalidator
Pros:

  • I really like the use of color & optional icons & prompts to ensure form is filled out right. Almost like a game; encouraging & fun to fill out forms.
  • Repo manager is open to PR, & quick to respond.
  • decent selection of validation rules & rules are modular
  • good docs & examples

Cons:

  • not instant to use server-side; very tied into jQuery right now
  • validation rules are incomplete; few non-US rules
  • will take some extra HTML markup, & perhaps an extra config file

This is not a "should/need" request, more open to discussion. I'll play with it more this week, & can report findings & prep for a PR if you wish.
Or perhaps you have another solution that is better?

Add possiblity to copy created input text element

Hi

I am using angular and bootstrap and this tool to create the forms. What would be great is the possibility to clone/copy a created input filed. Because I use angular translate I have input files with name like {{'EMAIL' | translate}} etc. That would save me some time.

BR, Rene

You read my mind

I was just wandering did someone already did that rewrite, and i was gonna start to do it.
Thanks a lot.
There is only one issue for me, it seems hard to place the element over the drop zone, can you make it bigger?

Save to database & re-edit - were you sucessful?

Hi,

I see in "issues" that you were trying to accomplish what I also need. I need user to save the form to database and re-edit if needed.

please let me know if you got this done.

Thanks...Q

Syntax errors in the yaml files --> ../assets/js/data/yaml

When exec'ing the parse.rb ruby file, it raises a number of syntax errors in the yaml files. I have been through these files and fixed them (as I am adding further options). How do I upload the original files with the fixes applied?

Regards,
Peter

PS: Thank you for a great piece of work (original author and yourself). Its a neat little tool for form code generation and has already saved me a bucket of time... kudos guys..

Ensure `id` attribute is CSS-friendly

I'm using a lib that needs dot.nested.objects name attributes. But dot.notation makes bad CSS ID selectors (I could \ escape the CSS, but I don't want to torture the poor PhotoShop choppers ;).

I tried to remove the dots but couldn't hack in the code :/ So I separated name from id:

      "id": {
        "label": "ID",
        "type": "input",
        "value": "filebutton"
      },
      "name": {
        "label": "Name",
        "type": "input",
        "value": "name.val"
      },

Works so far, but I hacked the JSON & not YAML, plus all the default values for name is "name.val". I can PR after yours if you wish.

Improvements: on a fully default component template, editing ID, Name, or Label Text will auto-fill the other 2.

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.