octavhendra / laravel-forms-twig

Laravel forms snippets using bootstrap and twig for sublime text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel TwigBridge Forms + Bootstrap Snippets for Sublime Text

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.

Installation

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...).

Usage

When you're editing your view in Sublime Text, type the snippet shortcut then press tab key.

Available snippets

General

Input Shortcut
Form bootform
Form model bootformmodel

Inputs

Input Shortcut
Button bootbutton
Checkbox bootcheckbox
Date bootdate
Email bootemail
File bootfile
Hidden boothidden
Number bootnumber
Password bootpassword
Radio bootradio
Select bootselect
SelectMonth bootselectmonth
SelectRange bootselectrange
Text boottextarea
Textarea boottext

Horizontal inputs

Input Shortcut
Checkbox bootcheckboxh
Date bootdateh
Email bootemailh
File bootfileh
Number bootnumberh
Password bootpasswordh
Select bootselecth
SelectMonth bootselectmonthh
SelectRange bootselectrangeh
Text boottextareah
Textarea boottexth

About

Laravel forms snippets using bootstrap and twig for sublime text

License:MIT License