Skip to content

Commit 38cdeb6

Browse files
committed
Autofill data includes templated variables
1 parent 1d9be64 commit 38cdeb6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

main.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
242255
document.addEventListener('DOMContentLoaded', function() {

0 commit comments

Comments
 (0)