2016-06-26 14:30:37 -04:00
|
|
|
extends html
|
|
|
|
|
2015-03-14 16:02:10 -04:00
|
|
|
snippet %
|
|
|
|
<% ${0} %>
|
|
|
|
snippet =
|
2015-07-13 06:22:46 -04:00
|
|
|
<%= ${0} %>
|
2015-03-14 16:02:10 -04:00
|
|
|
snippet end
|
|
|
|
<% end %>
|
2015-07-13 06:22:46 -04:00
|
|
|
snippet for
|
|
|
|
<%= for ${1:item} <- ${2:items} ${3:@conn} do %>
|
|
|
|
${0}
|
|
|
|
<% end %>
|
|
|
|
snippet if
|
|
|
|
<%= if ${1} do %>
|
2017-08-03 11:21:37 -04:00
|
|
|
${0:${VISUAL}}
|
2015-07-13 06:22:46 -04:00
|
|
|
<% end %>
|
|
|
|
snippet ife
|
|
|
|
<%= if ${1} do %>
|
2017-08-03 11:21:37 -04:00
|
|
|
${2:${VISUAL}}
|
2015-07-13 06:22:46 -04:00
|
|
|
<%= else %>
|
|
|
|
${0}
|
|
|
|
<% end %>
|
|
|
|
snippet ft
|
|
|
|
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
|
|
|
|
${0}
|
|
|
|
</form>
|
|
|
|
snippet lin
|
|
|
|
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
|
|
|
|
snippet ff
|
|
|
|
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
|
|
|
|
${0}
|
|
|
|
|
|
|
|
<%= submit "Submit" %>
|
|
|
|
<% end %>
|