Code Monkey home page Code Monkey logo

bootstrapformhelpers's Introduction

BootstrapFormHelpers

http://bootstrapformhelpers.com

BootstrapFormHelpers is a set of javascript to help you create user friendly forms, created and maintained by Vincent Lamanna. endorse

Build Status

Dependency Status

Code Climate

Coverage Status

Quick start

Clone the repo, git clone git://github.com/vlamanna/BootstrapFormHelpers.git, or download the latest release.

Bug tracker

Stories in Ready

Have a bug? Please create an issue here on GitHub that conforms with necolas's guidelines.

https://github.com/vlamanna/BootstrapFormHelpers/issues

Authors

Vincent Lamanna

Copyright and license

Copyright 2012 Vincent Lamanna, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

bootstrapformhelpers's People

Contributors

alaczi avatar andreamazz avatar arpi0003 avatar billsaysthis avatar collegeman avatar coryg89 avatar evolic avatar foxp2 avatar fzxu avatar grakic avatar heuels avatar jackp avatar monstergfx avatar nikoroberts avatar posabsolute avatar saeven avatar satiani avatar tazgpl avatar thujohn avatar timdufrane avatar tinyfly avatar toddlawton avatar vjeux avatar vlamanna avatar waffle-with-pears avatar winmarkltd avatar wizzvet-cborsenberger avatar wkjagt avatar ytzvan avatar yurijmi 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrapformhelpers's Issues

google fonts are not working in 1.7.1

Selectbox.js and google fonts have an conflict.. Main reason is [role=option] vs [role=options]
I couldnt understand which one is correct one but can you check it please?

Issue with phone input in safari

I just noticed that your fix causes a problem on Safari 5.1.7 on Windows 8 and Safari 5.1.3 on Mac OS X 10.7.3.
Everytime your plugin adds a symbol to show the mask, the cursor is placed on the left of the newly inserted number. You have to mannually replace the cursor to the very end of the string.
That might not be clear....so take a look at the picture below :
issue
issue2
issue3

So if I try to enter 514 878 1000 in one shot, this is what I get :
issue4

Thanks for your help.

Cédric

data-subsets fix

You can check: #36

data-subsets code was working only for some "latin-ext". I fixed it as using this:

    if (this.options.subsets) {
      this.options.subsets = this.options.subsets.split(',')
      for (var i in BFHGoogleFontsList.items) {
        var font = BFHGoogleFontsList.items[i];
        for (var f = 0, allhave = true; f <= this.options.subsets.length; f++){
            if ($.inArray(this.options.subsets[f], font.subsets) == -1) {allhave = false;}
            if (f == this.options.subsets.length-1 && allhave == true){
              this.familyList[font.family] = {
                'font': BFHGoogleFontsList.items[i],
                'i': parseInt(i)
              };
            }
        }
      }
    } else if (this.options.families) {

You can set data-subsets as "vietnamese,cyrillic-ext" and you will see only 3 fonts that have "vietnamese" and "cyrillic-ext" together.

Datepicker.js not working with Bootstrap.js version 2.3+

After upgrading bootstrap.js to version 2.3.0 and also tested on version 2.3.1 the datepicker.js stopped working. When clicking on the input field the calendar does not show up anymore.

Managed to track down the issue to the toggle function within bootstrap-formhelpers-datepickers.js:

if (!isActive) {
$parent.toggleClass('open')
}

For some reason the toggleClass is not called? I'm also running jquery 1.9.1

To get it to work I changed the block to the following:

if (!isActive) {
$parent.show()
}else{
$parent.toggleClass('open')
}

Not sure if this is due to jquery or bootstrap.js? any help appreciated!

thanks

Typo in documentation

class="selectbox-options" role="options"

should not have class="selectbox-options".

Stack overflow at line:0 (phone format plugin)

On the demo page (and when downloading the source) a stack overflow error is thrown while viewing in Internet Explorer 8.

Otherwise, this is a great tool, and we would love to use this.

google fonts limit list with subsets

I needed to list of google fonts with data-subsets="latin-ext" and added this code to your script. Probably its not best way to do that (js noob here), its working tho.

if (this.options.subsets) {
      this.options.subsets = this.options.subsets.split(',')
      for (var i in GoogleFontsList.items) {
        var font = GoogleFontsList.items[i];
        if ($.inArray(font.subsets[0], this.options.subsets) >= 0) {
          this.familyList[font.family] = {
            'font': GoogleFontsList.items[i],
            'i': parseInt(i)
          };
        }
      }
    } else if (this.options.families) {

maybe you consider this to add to your project because subsets really important for non-english communities

Avoid conflicts....

I noticed that some of your css classes use names too common. like _.datepicker. I would sugest you to append some prefix to avoid possible conflicts. Something like a namespace: _formhelper- or even just _fh-. So in the above example it would be like _formhelper-datepicker or _fh-datepicker_. This way your library will be safe to use (conflitcless) and you even may reduce some possible complaints about errors that are in fact conflict issues. ;-)

Disabled mode for Select Box?

How to make Select Box disabled? I mean sth like this:

<form action="demo_form.asp">
  First name: <input type="text" name="fname" disabled><br>
  Last name: <input type="text" name="lname" disabled><br>
  <input type="submit" value="Submit">
</form>

When I put the word 'disabled' to BFH Selectbox, to the input tag, it doesn't turn to disabled. This is my code:

<div class="bfh-selectbox form-inline">
    <input  class="filtr" type="hidden" name="minpoj" value="" disabled>
    <a class="bfh-selectbox-toggle" role="button" data-toggle="bfh-selectbox" href="#">
        <span id="minpoj" class="bfh-selectbox-option input-smallx" data-option="1">10</span>
        <b class="caret"></b>
    </a>
    <div class="awid2 bfh-selectbox-options">
        <ul role="options">
          <li><a tabindex="-1" href="#" data-option="1">10</a></li>
          <li><a tabindex="-1" href="#" data-option="2">15</a></li>
          <li><a tabindex="-1" href="#" data-option="3">30</a></li>
          <li><a tabindex="-1" href="#" data-option="4">40</a></li>
          <li><a tabindex="-1" href="#" data-option="5">60</a></li>
          <li><a tabindex="-1" href="#" data-option="6">80</a></li>
          <li><a tabindex="-1" href="#" data-option="7">100</a></li>
          <li><a tabindex="-1" href="#" data-option="8">110</a></li>
          <li><a tabindex="-1" href="#" data-option="9">120</a></li>
          <li><a tabindex="-1" href="#" data-option="10">160</a></li>
          <li><a tabindex="-1" href="#" data-option="11">190</a></li>
          <li><a tabindex="-1" href="#" data-option="12">500</a></li>
          <li><a tabindex="-1" href="#" data-option="13">1000</a></li>
        </ul>
    </div>
</div>

Thanks

Standard Listing of Dependencies

Everyone uses Bootstrap differently, I've spent a while so far going through and trying to track down the dependencies of this project, it's great, but I'm not using all of Bootstrap and I think it would be good to list somewhere all of the JS & CSS dependencies of this project so that people can use it modularly if needed.

Problem with JQuery 1.8.3+

It does not work with newer jquery versions - it only works with 1.7.2 in the example
Im always recieving this error

Fehler: Error: Syntax error, unrecognized expression: table.calendar td:not[.off]
Quelldatei: .../includes/js/jquery-1.8.3.min.js
Zeile: 2

Fehler: Error: Syntax error, unrecognized expression: table.calendar td:not[.off]
Quelldatei: .../includes/js/jquery-1.9.0.min.js
Zeile: 2

Currency drop down

Hi ,
Are you planing to add different currencies of the world.
Thankyou

Update phone field definitions/overhaul of definition format

I suppose this is something of an open issue (localisation), but I guess some of the phone field definitions will be incorrect right now. I know for a fact the UK one is incorrect, although to be honest a UK phone number can change its style depending on the number. For example, most people probably have a phone number with a four-digit area code, so the input mask will be 01xx xxx xxxx with the first group being the area code. But then you have five-digit area codes that'll have a number like 01xxx xxxxxx. And then there's London-based numbers which have a three digit area code 020 xxxx xxxx, not to mention mobile phones which tend to be written like a regular five-digit-area-code number: 07xxx xxxxxx.

In fact I just found a good description of the mess on Wikipedia. See the sections Overview and Format.

So I suppose as well as updating the definitions for countries where the formats are currently incorrect, the whole feature needs to be generally extended to allow for such things. In the case of these variable UK numbers, the definition would have to store a lit of all known area codes, and the corresponding input mask after that, maybe having a default mask for any unspecified area codes (this way you only have to specify abnormal ones). Alternatively, some kind of logic to allow something along the lines of the table at the beginning of the Format section of the Wikipedia article.

Maybe I'm thinking too much into a handy feature, eh?

FormHelper-Phone backspace doesn't work

backsapce doesn't work when trying to delete a digit. it only deletes one digit if you have the full number typed and it stops. if you don't have the full number typed and you try to delete a digit, it does NOT work at all.

Multi-SelectBox

Html's multiple select options always been a problem for user experience. Most of users dont know how they can select multi option. For years, i see lots of people tried to fix that problem. Like: http://ivaynberg.github.io/select2/

I believe they seriously failing for multiple select except 1 solution:
https://code.google.com/p/dropdown-check-list/

This solution is really best for user experience and i believe a similar solution will be a good addition for BootstrapFormHelpers.

on the input when I try to populate the phone field with value

so:
<input type="text" name="phonenumber" id="id_phonenumber" value="(222) 222-2222" class="input-medium sharpedge phone" data-country="US">

This is after a user has submitted a form and now they are looking to edit their info.

The value doesn't end up showing. Possibly this is not the way to do it? In version one of this however this worked and the value would show on the form.

I see flash up the number and then it goes back to default of ( )

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.