dwightwatson / bootstrap-form

Bootstrap 3 form builder for Laravel
MIT License
217 stars 133 forks source link

Creating element without label #54

Open garethferguson opened 8 years ago

garethferguson commented 8 years ago

Is it possible to create a text element without a label? I've tried setting the value to null and '' but the label is still created.

BootForm::text('amount', null, '14.50);

dwightwatson commented 8 years ago

Yeah - the package tries to be smart and sort out a label for you. Not a bad idea to have an option to create an input without an input. Happy to take a look at any PRs that implement this.

georgearnall commented 8 years ago

I would like to look into this, I've setup the repo how are we supposed to test it? I don't quite understand the workflow for developing laravel packages.

dwightwatson commented 8 years ago

composer install on the repo and you'll be able to use PHPUnit to run the test suite. If you want to test inside a Laravel app you can define the location of the package using a local URL so you can test with your clone.

georgearnall commented 8 years ago

Thanks, no tests for fields (only open/close forms) ?

dwightwatson commented 8 years ago

Looks like it, the test suite can do with some work, I never got around to implementing it completely.

georgearnall commented 8 years ago

Ok, well I've sent a pull request with no label options for you to take a look at.

67