Commit d28d41db authored by Arman Sobhi's avatar Arman Sobhi

Added button to fill out example audit info

parent d6c73302
......@@ -62,3 +62,11 @@ function removeOptions(selectbox) {
function goBack() {
window.history.back();
}
function fillOutExample() {
alert("test");
document.getElementById("MajorList").value = "math";
document.getElementById("SpecializationOfDegree").value = "applied";
document.getElementById("YearList").value = "2015"
document.getElementById("classesTaken").value = "cs1337,phys2125,phys2126,phys2325,phys2326,chem1311,chem1111,math2417,hist1301,hist1302,math2419,govt2305,govt2306,rhet1302,cs2305,cs2336,cs3305,cs3340,math2418,ahst2331,math3310,cs3345,cs3341,cs4V98,math2451,math3311,math3323,ecs1200,ecs3390"
};
......@@ -17,13 +17,14 @@
<br>
<input name="transcriptPDF" type="file" accept="application/pdf" class="upload_field"></input>
<br>
<input type="submit" class="upload_field">Click here to fill out the forms automatically.</button>
<input type="submit" class="upload_field" value="Click here to fill out the forms automatically."></button>
</div>
</form>
<br>
<div class="student_info">
<form action="/submit" method="post">
<br>
<button type="button" onClick="fillOutExample()">Click here to run an example audit</button>
<div>
<label for="typeOfDeggree">Degree Type</label>
<input type="radio" name="degreeType" value ="bs" checked />BS
......@@ -32,7 +33,7 @@
<br>
<div>
<label for="Major">Major</label>
<select name="MajorList" onchange="degreeSelectHandler(this)" required>
<select name="MajorList" onchange="degreeSelectHandler(this)" id="MajorList" required>
<option value="">Please Select Your Major</option>
<option value="cs">Computer Science</option>
<option value="math">Mathematics</option>
......@@ -2114,8 +2115,8 @@
<div>
<label for="showClasses">Classes Taken</label>
<textarea name="classesTaken" id="classesTaken" rows="6" cols="60">{{ classes }}</textarea>
<div class="button">
<input type="submit"></button>
<div class="button">
<input type="submit" value="Perform Audit"></button>
</div>
</div>
</form>
......@@ -2153,7 +2154,7 @@
font-weight: bold;
}
input,select,textarea {
button, input,select,textarea {
background:#b6bfc8;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment