Skip to content

Commit 107c445

Browse files
committed
create form elements to submit PR
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
1 parent c3fded8 commit 107c445

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!-- <script src="https://cdn.form.io/uswds/uswds.min.js"></script> -->
1313
<!-- <script src="https://cdn.form.io/formiojs/formio.full.js"></script> -->
1414
<!-- <script src="https://cdn.form.io/js/formio.embed.js"></script> -->
15-
15+
<meta charset="utf-8">
1616
<!-- Uses bootstrap for now -->
1717
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
1818
<link rel="stylesheet" href="css/styles.css">

js/generateFormComponents.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,24 @@ async function createFormComponents() {
296296

297297
components = createAllComponents(jsonData);
298298

299+
components.push({
300+
"label": "GitHub API Key (optional)",
301+
"disableSortingAndFiltering": false,
302+
"tableView": true,
303+
"key": "textField",
304+
"type": "textfield",
305+
"input": true
306+
});
307+
308+
components.push({
309+
"label": "Git URL (optional)",
310+
"disableSortingAndFiltering": false,
311+
"tableView": true,
312+
"key": "textField",
313+
"type": "textfield",
314+
"input": true
315+
});
316+
299317
// Add submit button to form
300318
components.push({
301319
type: "button",
@@ -306,6 +324,24 @@ async function createFormComponents() {
306324
tableView: false,
307325
});
308326

327+
328+
329+
330+
// Add Create PR button to form
331+
// Add submit button to form
332+
/*
333+
components.push({
334+
type: "button",
335+
label: "Generate code.json metadata and push to Repository",
336+
key: "submit",
337+
disableOnInvalid: false,
338+
input: true,
339+
tableView: false,
340+
});
341+
*/
342+
343+
344+
309345
console.log(components);
310346

311347
return components;

0 commit comments

Comments
 (0)