-
-
Save Kd-Here/bc01d23eeacc5841de43c2872391ab8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %}{% block title %}HOME{% endblock %} | |
{% block content %} | |
<br> | |
<h1 class="border border-primary rounded" align="center">This is the homepage</h1> | |
<h1 align="center" class="bg-danger">Notes</h1> | |
<ul class="list-group list-group-flush" id="notes"> | |
{% for note in user.notes %} | |
<li class="list-group-item"> | |
{{note.userNote}} | |
<button type="button" class="close" onClick="deleteNote({{ note.id }})"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</li> | |
{% endfor %} | |
</ul> | |
<form action="" method="POST"> | |
<textarea name="note" class='form-control' id="note" rows="2"></textarea> | |
<div align="center"> | |
<br> | |
<button type="submit" class="btn btn-primary">Add Notes</button> | |
</div> | |
</form> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment