forked from trustmaster/sublime-cotonti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpl-tool.sublime-snippet
72 lines (67 loc) · 1.33 KB
/
tpl-tool.sublime-snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<snippet>
<content><![CDATA[
<!-- BEGIN: MAIN -->
<h2>{PHP.L.${1:myplug}_title}</h2>
{FILE "{PHP.cfg.themes_dir}/{PHP.cfg.defaulttheme}/warnings.tpl"}
<h3>{PHP.L.editdeleteentries}:</h3>
<table class="cells">
<tr>
<td class="coltop">
#
</td>
<td class="coltop">
{PHP.L.Name}
</td>
</tr>
<!-- BEGIN: ${2:MYPLUG}_ROW -->
<tr>
<td>
{${2:MYPLUG}_ROW_ID}
</td>
<td>
{${2:MYPLUG}_ROW_NAME}
</td>
</tr>
<!-- END: ${2:MYPLUG}_ROW -->
<tr>
<td colspan="2">
<button type="submit">{PHP.L.Submit}</button>
</td>
</tr>
</table>
<p class="paging">{${2:MYPLUG}_PAGENAV_PREV} {${2:MYPLUG}_PAGENAV} {${2:MYPLUG}_PAGENAV_NEXT}</p>
<h3>{PHP.L.Add}</h3>
<form action="{${2:MYPLUG}_ACTION}" method="post">
<table class="cells">
<tr>
<td class="coltop">
{PHP.L.Name}
</td>
<td class="coltop">
{PHP.L.Description}
</td>
</tr>
<tr>
<td>
<input type="text" name="" />
</td>
<td>
<input type="text" name="" />
</td>
</tr>
<tr>
<td colspan="2">
<button>
{PHP.L.Add}
</button>
</td>
</tr>
</table>
</form>
<!-- END: MAIN -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cottooltpl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>