Skip to content

Commit 4a1e9dd

Browse files
committed
Add elif and if-else snippets
1 parent 2d3bd24 commit 4a1e9dd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

snippets/xml.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,30 @@
498498
],
499499
"description": "Create Odoo t-if tag"
500500
},
501+
"odoo_template_elif": {
502+
"prefix": "otelif",
503+
"body": [
504+
"<t t-if=\"${1:condition}\">",
505+
"\t${0}",
506+
"</t>",
507+
"<t t-elif=\"${2:condition}\">",
508+
"</t>",
509+
"<t t-else=\"\">",
510+
"</t>"
511+
],
512+
"description": "Create Odoo t-ifelse tag"
513+
},
514+
"odoo_template_if_else": {
515+
"prefix": "otifelse",
516+
"body": [
517+
"<t t-if=\"${1:condition}\">",
518+
"\t${0}",
519+
"</t>",
520+
"<t t-else=\"\">",
521+
"</t>"
522+
],
523+
"description": "Create Odoo t-if and t-else tag"
524+
},
501525
"odoo_template_raw": {
502526
"prefix": "otraw",
503527
"body": [

0 commit comments

Comments
 (0)