Skip to content

Commit c0ee2a5

Browse files
committed
First commit
0 parents  commit c0ee2a5

18 files changed

+161
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
LaravelCollective/html Form Snippets
2+
====================================
3+
4+
Sublime Text 3 snippets for [LaravelCollective/html](https://github.com/LaravelCollective/html)
5+
form elements.
6+
7+
8+
Prerequisites
9+
-------------
10+
11+
- [Laravel Blade Highlighter](https://github.com/Medalink/laravel-blade)
12+
13+
14+
Contributing
15+
------------
16+
17+
1. [Fork this repo](https://github.com/PHLAK/laravelcollective-html-form-snippets#fork-destination-box)
18+
2. Make your changes
19+
3. [Submit Pull Request](https://github.com/PHLAK/laravelcollective-html-form-snippets/pull/new)
20+
21+
22+
-----
23+
24+
**Copyright (c) 2016 Chris Kankewicz <Chris@ChrisKankiewicz.com>**
25+
26+
Permission is hereby granted, free of charge, to any person obtaining a copy
27+
of this software and associated documentation files (the "Software"), to deal
28+
in the Software without restriction, including without limitation the rights
29+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30+
copies of the Software, and to permit persons to whom the Software is
31+
furnished to do so, subject to the following conditions:
32+
33+
The above copyright notice and this permission notice shall be included in
34+
all copies or substantial portions of the Software.
35+
36+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42+
THE SOFTWARE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::checkbox(${1:\$name}, ${2:\$value}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formcheckbox</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::close(${1}) !!}
4+
]]></content>
5+
<tabTrigger>formclose</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>

snippets/Form Date.sublime-snippet

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::date(${1:\$name}, ${2:\Carbon\Carbon\::now()}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formdate</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::email(${1:\$name}, ${2:\$value}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formemail</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>

snippets/Form File.sublime-snippet

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::file(${1:\$name}, [${2}]) !!}
4+
]]></content>
5+
<tabTrigger>formfile</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::hidden(${1:\$name}, ${2:\$value}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formhidden</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::label(${1:\$for}, ${2:\$text}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formlabel</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::model(${1:\$user}, [${2}]) !!}
4+
]]></content>
5+
<tabTrigger>formmodel</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{!! Form::number(${1:\$name}, ${2:\$value}, [${3}]) !!}
4+
]]></content>
5+
<tabTrigger>formnumber</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>

0 commit comments

Comments
 (0)