1
+ < div class ="container-fluid ">
2
+ < form id ="templateForm " method ="POST " action ="rend ">
3
+ < div class ="row ">
4
+ < div class ="col ">
5
+ < p >
6
+ < button class ="btn btn-primary mt20 " type ="button " data-toggle ="collapse "
7
+ data-target ="#environmentSettings " aria-expanded ="false "
8
+ aria-controls ="environmentSettings ">
9
+ Environment Settings
10
+ </ button >
11
+ </ p >
12
+ < div class ="collapse " id ="environmentSettings ">
13
+ < p >
14
+ < div class ="card card-body ">
15
+ < div class ="form-check ">
16
+ < input type ="checkbox " class ="form-check-input " id ="trim_blocks " name ="trim_blocks ">
17
+ < label class ="form-check-label " for ="trim_blocks "> trim_blocks</ label >
18
+ < small id ="trimHelp " class ="form-text text-muted "> If this is set to True the first
19
+ newline after a block is removed (block, not variable tag!). Defaults to
20
+ False.</ small >
21
+ </ div >
22
+
23
+ < div class ="form-check ">
24
+ < input type ="checkbox " class ="form-check-input " id ="lstrip_blocks " name ="lstrip_blocks ">
25
+ < label class ="form-check-label " for ="lstrip_blocks "> lstrip_blocks</ label >
26
+ < small id ="lstripHelp " class ="form-text text-muted "> If this is set to True leading
27
+ spaces and tabs are stripped from the start of a line to a block. Defaults to
28
+ False.</ small >
29
+ </ div >
30
+
31
+ < div class ="form-check ">
32
+ < input type ="checkbox " class ="form-check-input " id ="keep_trailing_newline "
33
+ name ="keep_trailing_newline ">
34
+ < label class ="form-check-label "
35
+ for ="keep_trailing_newline "> keep_trailing_newline</ label >
36
+ < small id ="trailingHelp " class ="form-text text-muted "> Preserve the trailing newline
37
+ when
38
+ rendering templates. The default is False, which causes a single newline, if
39
+ present, to be stripped from the end of the template.</ small >
40
+ </ div >
41
+
42
+ < div class ="form-group ">
43
+ < label for ="newline_sequence "> newline_sequence</ label >
44
+ < input type ="text " class ="form-control " id ="newline_sequence "
45
+ aria-describedby ="newlineHelp " placeholder ="\n " value ="\n " name ="newline_sequence ">
46
+ < small id ="newlineHelp " class ="form-text text-muted "> The sequence that starts a
47
+ newline.
48
+ Must be one of '\r', '\n' or '\r\n'. The default is '\n' which is a useful
49
+ default
50
+ for Linux and OS X systems as well as web applications.</ small >
51
+ </ div >
52
+
53
+ < div class ="form-group ">
54
+ < label class ="mr-sm-2 " for ="undefined "> Extensions</ label >
55
+ < select class ="custom-select " id ="extensions " name ="extensions " multiple >
56
+ < option value ="jinja2.ext.i18n "> i18n</ option >
57
+ < option value ="jinja2.ext.do "> do</ option >
58
+ < option value ="jinja2.ext.loopcontrols "> loopcontrols</ option >
59
+ < option value ="jinja2.ext.debug "> debug</ option >
60
+ </ select >
61
+ < small id ="extensionsHelp " class ="form-text text-muted "> List of Jinja extensions to
62
+ use.
63
+ This can either be import paths as strings or extension classes. For more
64
+ information have a look at the extensions documentation.</ small >
65
+ </ div >
66
+
67
+ < div class ="form-group ">
68
+ < label class ="mr-sm-2 " for ="undefined "> Undefined</ label >
69
+ < select class ="custom-select " id ="undefined " name ="undefined ">
70
+ < option value ="jinja2.Undefined "> Undefined</ option >
71
+ < option value ="jinja2.ChainableUndefined "> ChainableUndefined</ option >
72
+ < option value ="jinja2.DebugUndefined "> DebugUndefined</ option >
73
+ < option value ="jinja2.StrictUndefined "> StrictUndefined</ option >
74
+ </ select >
75
+ < small id ="undefinedHelp " class ="form-text text-muted "> Undefined or a subclass of it
76
+ that is used to represent undefined values in the template</ small >
77
+ </ div >
78
+
79
+ < div class ="form-group ">
80
+ < label class ="mr-sm-2 " for ="filter "> Filter</ label >
81
+ < select class ="custom-select " id ="filter " name ="filter ">
82
+ < option value ="default "> Default (Built-in)</ option >
83
+ < option value ="ansible "> Ansible</ option >
84
+ < option value ="salt "> SaltStack</ option >
85
+ < option value ="st2 "> StackStorm</ option >
86
+ </ select >
87
+ < small id ="filterHelp " class ="form-text text-muted "> Filter imported from tools</ small >
88
+ </ div >
89
+
90
+ </ div >
91
+ </ p >
92
+ </ div >
93
+ </ div >
94
+ </ div >
95
+ < div class ="row ">
96
+ < div class ="col-lg-4 ">
97
+ < div class ="form-group ">
98
+ < label for ="textData "> Data < small > YAML</ small > </ label >
99
+ < textarea class ="form-control show-spaces " id ="textData " name ="data " rows ="20 "> </ textarea >
100
+ </ div >
101
+ </ div >
102
+ < div class ="col-lg-4 ">
103
+ < div class ="form-group ">
104
+ < label for ="textTemplate "> Template < small > jinja2</ small > </ label >
105
+ < textarea class ="form-control show-spaces " id ="textTemplate " name ="template "
106
+ rows ="20 "> </ textarea >
107
+ </ div >
108
+ </ div >
109
+ < div class ="col-lg-4 ">
110
+ < div class ="form-group ">
111
+ < label for ="textRendered " disabled > Rendered < small > Text</ small > </ label >
112
+ < textarea class ="form-control show-spaces " id ="textRendered " rows ="20 " disabled > </ textarea >
113
+ </ div >
114
+ </ div >
115
+ </ div >
116
+ < div class ="row ">
117
+ < div class ="col-auto ">
118
+ < div >
119
+ < button class ="btn btn-primary " type ="submit ">
120
+ Render Template
121
+ </ button >
122
+ </ div >
123
+ </ div >
124
+ < div class ="col-auto mr-auto ">
125
+ < div class ="dropdown ">
126
+ < button id ="examples " class ="btn btn-primary dropdown-toggle " type ="button "
127
+ data-toggle ="dropdown "> Examples
128
+ < span class ="caret "> </ span > </ button >
129
+ < ul class ="dropdown-menu ">
130
+ </ ul >
131
+ </ div >
132
+ </ div >
133
+ </ div >
134
+ </ div >
135
+ </ form>
136
+ </ div>
0 commit comments