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