bradcornford / bootstrapper Goto Github PK
View Code? Open in Web Editor NEWAn easy way to integrate Twitter Bootstrap with Laravel
License: MIT License
An easy way to integrate Twitter Bootstrap with Laravel
License: MIT License
Hi Again, sometimes during submission of form, users can make mistake during typing.
i’m using Laravel 4.2, if validation fails i need to redirect user back and re-fill all data as before submit, this is working with normal input like "Form::text"
but with Bootstraper input i’m unable to make this kind of thing, any suggestion ?
Hi Again sir,
I’m unable to get date format working (while loading a value)
edit.blade.php
Bootstrap::date('date', '', Input::old('date'), $errors, ['class' => 'form-control datepicker'], ['format' => 'DD-MM-YYYY’])
when the edit page has been loaded, on “Date” Field, i’ve:
2014-08-01 00:00:00
on DB this field is a TIMESTAMP,
this don’t work event if i try in this way:
date(‘d-m-Y',Input::old('date’))
//01-01-1970
or
date(‘d-m-Y',strtotime(Input::old('date')))
//01-01-1970
Create a search input.
Hello mate,
Was trying to get the datepicker firing on focus/click on the input element rather than just on the glyphicon.
I tried binding an event to the input but couldn't get any joy so instead changed the line that binds the datepicker to the input instead. i.e.
Any ideas on a better fix or do you want to go with this one?
Ta
Matt
Maybe panels and cols for an update?
E.g. my forms often look like this for longer forms, an extra div around the input
form-horizontal
<div class="form-group">
{{ Form::label('name', 'Your name', array('class'=> 'col-lg-2 control-label')) }}
<div class="col-lg-10">{{ Form::text('name', '',array('class'=>
'form-control', 'placeholder' => 'Your name')) }}
</div>
</div>
If class is overwritten on a container, and errors are present, no error class is added.
when i use:
Bootstrap::js('local', ['type' => 'text/javascript'])
get an error:
JS_BOOTSTRAP_JQUERY_LOCAL not found
look for the code, see:
$this->add('script', asset(self::JS_BOOTSTRAP_JQUERY_LOCAL), $attributes)
and here:
const JS_JQUERY_CDN = '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js';
const JS_JQUERY_LOCAL = 'assets/js/jquery.min.js';
so, I think, should replace JS_BOOTSTRAP_JQUERY_LOCAL with JS_JQUERY_LOCAL
Please forgive me,my english is poor~
While using local js script. There a error shows up Undefined class constant 'JS_BOOTSTRAP_JQUERY_LOCAL'
I guess on BootstrapBase.php there no such constant declared. So I think it was a mistake to put JS_BOOTSTRAP_JQUERY_LOCAL there. It might be JS_JQUERY_LOCAL.
Sorry for my bad english. I hope I did make clear what the error is.
Thanks in advance to look into it.
Upgrade Bootstrap assets to newest version.
When installing using "cornford/bootstrapper": "2.*", the version fetched is old. You can tell first because L5 fails out with "Call to undefined method [package]" and the jQuery version is old at 2.1.1
Using "cornford/bootstrapper": "dev-master" fetches the latest version.
Following instructions including adding Alerter, any call to any Bootstrap:: method from any location (route, view, or controller) results in undefined error.
The installation instructions need to be changed to add the ServiceProvider:
'Cornford\Alerter\AlerterServiceProvider'
to
'Cornford\Bootstrapper\BootstrapServiceProvider',
When I publish the assets files with the artisan-command they are saved in 'public/packages/cornford/bootstrapper/assets/css' (same for js-files).
Loading the assets files with 'Bootstrap::css()' generates the path 'assets/css' (and 'assets/js'). The path constants in BoostrapBase.php need to be adjusted... Thanks!
Primarily because Illuminate\Html\FormBuilder uses $this->app->bindShared and Session->getToken(), both of which are depreciated and have been removed in 5.4
This also means the BootstrapServiceProvider call to $app['session.store']->getToken() should be changed to $app['session.store']->token() on line 35.
Hopefully Collective\Html ends up being a drop-in replacement. I'm testing it out on my own fork to see if I run into any more 5.4 update issues.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.