This project based on laravel_forms_boostrap_snippets for Blade and adapted for Twig.
Handy Sublime Text 3 snippets to create Twig forms and inputs preformated for Twitter's Bootstrap 3.
Before using this snippets, make sure you have installed TwigBridge in your laravel project.
- Via Git, clone this repository into your Packages folder:
git clone https://github.com/octavhendra/laravel-forms-twig.git
- Or download the zip file and unzip it into your Packages folder (Windows & Linux:
Preferences > Browse Packages...
, Mac:Sublime Text > Preferences > Browse Packages...
).
When you're editing your view in Sublime Text, type the snippet shortcut then press tab
key.
Input | Shortcut |
---|---|
Form | bootform |
Form model | bootformmodel |
Input | Shortcut |
---|---|
Button | bootbutton |
Checkbox | bootcheckbox |
Date | bootdate |
bootemail |
|
File | bootfile |
Hidden | boothidden |
Number | bootnumber |
Password | bootpassword |
Radio | bootradio |
Select | bootselect |
SelectMonth | bootselectmonth |
SelectRange | bootselectrange |
Text | boottextarea |
Textarea | boottext |
Input | Shortcut |
---|---|
Checkbox | bootcheckboxh |
Date | bootdateh |
bootemailh |
|
File | bootfileh |
Number | bootnumberh |
Password | bootpasswordh |
Select | bootselecth |
SelectMonth | bootselectmonthh |
SelectRange | bootselectrangeh |
Text | boottextareah |
Textarea | boottexth |