Skip to content

Commit 36b84f2

Browse files
Changed styling for step 2 auto-generation
Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>
1 parent ce3f60e commit 36b84f2

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

index.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,19 @@ <h4 id="quiz-subheading">
251251
</div>
252252

253253
<div id="auto-generation">
254-
<p id="auto-generation-header"></p>
254+
<div class="auto-generation-header">
255+
<div class="step-header">
256+
<div class="step-number">2</div>
257+
<h2>Auto Generate Fields</h2>
258+
</div>
259+
<h4 id="quiz-subheading"> Enter your repository's GitHub URL in order to automatically pre-fill some of the
260+
fields in this form </h4>
261+
<p><i>This currently only works on <b>public</b> repositories</i></p>
262+
</div>
255263
<form id="github-url-form">
256-
<label for="repo-url">GitHub Repository URL</label><br>
257-
<input type="text" id="repo-url" name="repo-url"><br>
258-
<input type="submit" id="repo-url-button" value="Submit">
264+
<label class="usa-label" for="repo-url">GitHub Repository URL</label>
265+
<input class="usa-input" id="repo-url" name="repo-url" />
266+
<button class="usa-button" type="submit" id="repo-url-button">Submit</button>
259267
</form>
260268
</div>
261269

js/generateFormComponents.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ function createFormHeading(title, description) {
254254
`;
255255
}
256256

257-
function createAutoGenerationBox() {
258-
const container = document.getElementById("auto-generation-header")
259-
container.innerHTML = `<div class="step-header"><div class="step-number">2</div><h2>Auto Generate Fields</h2></div><h4 id="quiz-subheading"> Enter your repository's GitHub URL in order to automatically pre-fill some of the fields in this form </h4> \n <p> <i>This currently only works on <b>public</b> repositories</i> </p>`
260-
}
261-
262257
// Iterates through each json field and creates component array for Form.io
263258
function createAllComponents(schema, prefix = "") {
264259
let components = [];
@@ -305,7 +300,6 @@ async function createFormComponents() {
305300
console.log("JSON Data:", jsonData);
306301

307302
createFormHeading(jsonData["title"], jsonData["description"]);
308-
createAutoGenerationBox()
309303

310304
components = createAllComponents(jsonData);
311305

0 commit comments

Comments
 (0)