An open API service indexing awesome lists of open source software.

https://github.com/redgluten/laravel-form-bootstrap-snippets-atom

Handy Atom editor snippets to create Laravel Collective Forms inputs preformated for Twitter's Bootstrap 3
https://github.com/redgluten/laravel-form-bootstrap-snippets-atom

atom-editor

Last synced: 6 months ago
JSON representation

Handy Atom editor snippets to create Laravel Collective Forms inputs preformated for Twitter's Bootstrap 3

Awesome Lists containing this project

README

        

# Laravel Collective Forms + Bootstrap Snippets for Atom Editor

Handy [Atom editor](http://www.atom.io/) snippets to create [Laravel Collective Forms](http://laravelcollective.com/docs/5.1/html) inputs preformated for [Twitter’s Bootstrap 3](http://getbootstrap.com/).

## Installation

You need to install the [language-blade](https://atom.io/packages/language-blade) package before installing this one. You can do it via the GUI (`Preferences > Install`) or with the command line:

`apm install language-blade`
`apm install laravel-forms-bootstrap-snippets`

Then reload your Atom.

## Usage

When you’re editing your view in Atom, type the snippet shortcut then press `tab` key.

![Example with `boottext` snippet](example.gif)

## 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` |
| **SelectYear** | `bootselectyear` |
| **SelectRange** | `bootselectrange` |
| **Text** | `boottext` |
| **Textarea** | `boottextarea` |

### Horizontal inputs

| Input | Shortcut |
|-----------------|-------------------|
| **Checkbox** | `bootcheckboxh` |
| **Date** | `bootdateh` |
| **Email** | `bootemailh` |
| **File** | `bootfileh` |
| **Number** | `bootnumberh` |
| **Password** | `bootpasswordh` |
| **Radio** | `bootradioh` |
| **Select** | `bootselecth` |
| **SelectMonth** | `bootselectmonthh` |
| **SelectYear** | `bootselectyearh` |
| **SelectRange** | `bootselectrangeh` |
| **Text** | `boottexth` |
| **Textarea** | `boottextareah` |