Compare commits
No commits in common. "8094bd78654334a08b1ff7665ea59cea9ddf1a99" and "e86c7ac9410ecdca827ff3caf44059dcb62be7f8" have entirely different histories.
8094bd7865
...
e86c7ac941
1
app.py
1
app.py
@ -297,7 +297,6 @@ def habit_list_create():
|
|||||||
@app.route('/profile')
|
@app.route('/profile')
|
||||||
@login_required
|
@login_required
|
||||||
def profile():
|
def profile():
|
||||||
print(current_user.name, current_user.email)
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"profile.html",
|
"profile.html",
|
||||||
name=current_user.name,
|
name=current_user.name,
|
||||||
|
|||||||
@ -35,9 +35,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
// Add event listener to edit button to open modal
|
// Add event listener to edit button to open modal
|
||||||
editButton.addEventListener("click", function() {
|
editButton.addEventListener("click", function() {
|
||||||
editModal.show();
|
editModal.show();
|
||||||
// document.getElementById("newName").value = "{{ name }}";
|
document.getElementById("newName").value = "{{ name }}";
|
||||||
// document.getElementById("newEmail").value = "{{ email }}";
|
document.getElementById("newEmail").value = "{{ email }}";
|
||||||
// document.getElementById("password").value = "";
|
document.getElementById("password").value = "";
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add event listener to save changes button to submit form
|
// Add event listener to save changes button to submit form
|
||||||
|
|||||||
@ -102,5 +102,4 @@
|
|||||||
|
|
||||||
<script src="../static/script/script-profile.js"></script>
|
<script src="../static/script/script-profile.js"></script>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
x
Reference in New Issue
Block a user