Browse Source

Changes index redirect and template stuff

Jose Reyes 6 years ago
parent
commit
8925b61f6b
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      app/index.py
  2. 2
    2
      app/templates/index.html

+ 1
- 1
app/index.py View File

@@ -33,6 +33,6 @@ def index():
33 33
             (cName, cEmail, turn, 'testin', station_id)
34 34
         )
35 35
         db.commit()
36
-        return redirect(url_for('index.index'))
36
+        return redirect(url_for('index'))
37 37
 
38 38
     return render_template('index.html')

+ 2
- 2
app/templates/index.html View File

@@ -7,9 +7,9 @@
7 7
 {% block content %}
8 8
     <form method="post">
9 9
         <label for="name">Name</label>
10
-        <input name="name" id="name" value="{{ request.form['cName'] }}" required></input><br>
10
+        <input name="name" id="name" required></input><br>
11 11
 		<label for="email">email</label>
12
-        <input name="email" id="email" value="{{ request.form['cEmail'] }}" required></input><br>
12
+        <input name="email" id="email" required></input><br>
13 13
         <input type="radio" name="station" id="station1" value="Fulano"> Fulano </input><br>
14 14
         <input type="radio" name="station" id="station2" value="Mengana"> Mengana </input><br>
15 15
         <input type="submit" value="Get ticket">