File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,6 +237,19 @@ document.getElementById("fillBtn").onclick = function() {
237237 setTimeout ( ( ) => {
238238 if ( funcSel . options . length > 0 ) funcSel . selectedIndex = 0 ;
239239 } , 50 ) ;
240+ // Enable templated and set variable names
241+ const templatedEnable = document . getElementById ( "templatedEnable" ) ;
242+ templatedEnable . checked = true ;
243+ document . getElementById ( "templatedFields" ) . style . display = '' ;
244+ const container = document . getElementById ( 'templateVars' ) ;
245+ container . innerHTML = '' ;
246+ [ 'x0' , 'x1' ] . forEach ( name => {
247+ const row = document . createElement ( 'div' ) ;
248+ row . className = 'template-var-row' ;
249+ row . innerHTML = `<input name="template_var" placeholder="variable name" style="width: 200px; display: inline-block;" value="${ name } ">` ;
250+ container . appendChild ( row ) ;
251+ } ) ;
252+ setupTemplateVarButtons ( ) ;
240253 } ;
241254// Cluster section show/hide logic
242255document . addEventListener ( 'DOMContentLoaded' , function ( ) {
You can’t perform that action at this time.
0 commit comments