mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffcb
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for check_box
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.check_box :${1:attribute} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffff
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for file_field
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.file_field :${1:attribute} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffhf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for hidden_field
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.hidden_field :${1:attribute} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for label
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.label :${1:attribute}${2:, "${3:${1:$(capitalize (replace-regexp-in-string "_" " " yas/text))}}"} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffpf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for password_field
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.password_field :${1:attribute} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffrb
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for radio_box
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.radio_box :${1:attribute}, :${2:tag_value} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffs
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for submit
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.submit "${1:Submit}"${2:, :disable_with => '${3:$1ing...}'} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ffta
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for text_area
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.text_area :${1:attribute} %>
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fftf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: form_for text_field
|
||||
## condition: "text.html.ruby, text.haml"
|
||||
# --
|
||||
<%= f.text_field :${1:attribute} %>
|
||||
Reference in New Issue
Block a user