-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed it so Groups are accessable for authorized users only
- Loading branch information
1 parent
4ba7bdf
commit 2eaab16
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
service/src/FlaskWebsite/website/templates/group_page.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "base.html" %} {% block title %}Home{% endblock %} {% block content | ||
%} | ||
<h1 align="center">Note Groups</h1> | ||
<ul class="list-group list-group-flush" id="notes"> | ||
{% for note in notes %} | ||
<li class="list-group-item"> | ||
{{ note.data }} | ||
{% if note.owner_id == user.id %} | ||
<button type="button" class="close" onClick="deleteNote({{ note.id }})"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<form method="POST"> | ||
<textarea name="note" id="note" class="form-control"></textarea> | ||
<br /> | ||
<div align="center"> | ||
<button type="submit" class="btn btn-primary">Add Note</button> | ||
</div> | ||
</form> | ||
{% endblock %} |
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
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