Commit 2df9f93c authored by Arman Sobhi's avatar Arman Sobhi

Added button to upload PDF file and form to send POST request to "/upload"

	Made placeholder upload function in gasweb.py
parent 0cf0cf16
......@@ -10,7 +10,10 @@ app = Flask(__name__)
def input_form():
return render_template('GASGUI.html')
@app.route('/upload',methods=['POST'])
def upload():
return render_template('GASGUI.html')
@app.route('/submit', methods=['POST'])
def submit():
name = request.form['name'].lower()
......
......@@ -5,7 +5,17 @@
<p>This is an automated degree audit system for various degree plans at The University of Texas at Dallas.<br> Note: Audits may take between five seconds to a minute depending on degree plan. </p>
<link rel="stylesheet" type="text/css" href="GAS.css">
<script src="{{ url_for('static', filename='GAS.js') }}"></script>
<form action="/upload" method="post">
<div>
<label for="transcriptPDF">Upload an unofficial transcript PDF or fill out the information manually</label>
<input name="transcriptPDF" type="file" accept="application/pdf"></input>
</div>
<div class="button">
<input type="submit">Click here to fill out the forms automatically.</button>
</div>
</form>
<form action="/submit" method="post">
<br>
<div>
<label for="name">Name:</label>
<input type="text" name="name" />
......@@ -2095,15 +2105,18 @@
<option value="viet2311">
</datalist>
<input type="button" onclick="addClass()">Add class</button>
<button type="button" onclick="addClass()">Add class</button>
</div>
<br>
<div>
<label for="showClasses">Classes Taken</label>
<textarea name="classesTaken" id="classesTaken"></textarea>
<div class="button">
<input type="submit"></button>
<div class="button">
<input type="submit"></button>
</div>
</div>
</form>
<p>Source code for GAS can be found <a href="https://gitlab.com/saikiran1096/gradaudit">here</a><br>Please email any bugs or feature requests to <a href="mailto:ars140330@utdallas.edu">ars140330@utdallas.edu</a> or <a href="mailto:sai@utdallas.edu">sai@utdallas.edu</a>
......
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