Initial working version with minor bugs
This commit is contained in:
parent
f946e4933a
commit
71b3993326
83 changed files with 34485 additions and 173 deletions
25
templates/friend_codes/list_friend_codes.html
Normal file
25
templates/friend_codes/list_friend_codes.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% extends '_base.html' %}
|
||||
|
||||
{% block title %}My Friend Codes{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>My Friend Codes</h1>
|
||||
|
||||
{% if friend_codes %}
|
||||
<ul>
|
||||
{% for code in friend_codes %}
|
||||
<li>
|
||||
{{ code.friend_code }}
|
||||
<!-- Link to the delete confirmation page for this friend code -->
|
||||
<a href="{% url 'delete_friend_code' code.id %}">Delete</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>You do not have any friend codes added yet.</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<a href="{% url 'add_friend_code' %}">Add a New Friend Code</a>
|
||||
</p>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue