Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Input Date & Time Picker #160

Merged
merged 5 commits into from
Oct 30, 2016
Merged

Conversation

OwenMelbz
Copy link
Contributor

@OwenMelbz OwenMelbz commented Oct 4, 2016

Summary

Simple date-time picker, based off https://eonasdan.github.io/bootstrap-datetimepicker/

Preview
backpack - datepicker - edited 1

Usage

//Model
protected $dates = ['published_at'];
protected $casts = ['published_at' => 'date'];
//Controller->setUp()
$this->crud->addField([
    'name' => 'published_at',
    'label' => 'Date',
    'type' => 'datetime_picker',
    'datetime_picker_options' => [
        'format' => 'DD/MM/YYYY HH:mm',
        'language' => 'fr'
    ]
]);

@tabacitu tabacitu merged commit 4fefe1c into master Oct 30, 2016
@tabacitu tabacitu deleted the feature-input-datetimepicker branch October 30, 2016 16:23
@tabacitu
Copy link
Member

Thank you! Merged!

This was referenced Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants