GithubHelp home page GithubHelp logo

bootstrapper's People

Contributors

bradcornford avatar mpandar avatar punchrockgroin avatar scrutinizer-auto-fixer avatar seagullmouse 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrapper's Issues

Input::old Support

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 ?

Bootstrap::date default value format

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

Datepicker improvement?

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.

$return .= '<script type="text/javascript">$(function() { $("#' . $name . '").datetimepicker({';

Any ideas on a better fix or do you want to go with this one?

Ta

Matt

Inputs next to labels rather than above them

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>

Load local jquery error

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~

Undefined class constant 'JS_BOOTSTRAP_JQUERY_LOCAL'

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.

Composer require fetches wrong 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.

Problem With DatePicker ?

I’m using Laravel 4.2,
I’ve follow all instruction for installation/configuration.

But if i try to use following code:

{{ Bootstrap::date('date', '', date('d-m-Y'), $errors, [], ['format' => 'DD-MM-YYYY']) }}

While loading page, i got (on safari):

screen shot 2014-08-25 at 16 56 40

Any Suggestion ?

Thanks !

Call to undefined method Cornford\Bootstrapper\Facades\Bootstrap

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',

Assets publishing path missmatch

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!

Update for 5.4: Replace Illuminate\Html with Collective\Html

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.

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.