Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="newMessageWindow" id="newMessageForm" action="{{ url_for('addTask')}}" method='POST'>
- Title:
- <input type="text" id="newTaskTitle" name="newTaskTitle">
- <br>
- Details:
- <input type="text" id="newTaskDetails" name="newTaskDetails">
- <br>
- Time to do:
- <input type="text" id="newTaskTimeToDo" name="newTaskTimeToDo">
- <br><br>
- Tag:
- <input type="radio" id="schoolTag" name="tag" value="school"> School
- <input type="radio" id="workTag" name="tag" value="work" > Work
- <input type="radio" id="homeTag" name="tag" value="home" > Home
- <input type="submit" id="newTaskConfirm" name="confirmReceiverTitle" value="Add">
- if request.form['tag'] == "":
- tag = "other"
- else:
- tag = request.form['tag']
- data = {
- "title": request.form['newTaskTitle'],
- "details": request.form['newTaskDetails'],
- "timeToDo": request.form['newTaskTimeToDo'],
- "tag": tag
- }
- if request.form['tag'] == None:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement