Commit fcf822d3 authored by Tarsvini's avatar Tarsvini

edit

parent 3b4c9001
Pipeline #14306974 passed with stages
in 4 minutes and 52 seconds
No preview for this file type
<!-- templates/lab_6/partials/footer.html -->
<!-- TODO, CREATE THIS FILE AND ADD copyright symbol -->
<p>Made with Love by {{author}}</p>
<p>Made with Love by Tarsvini</p>
<!-- templates/lab_6/partials/header.html -->
<!-- templates/lab_7/partials/header.html -->
<nav>
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
#<span class="icon-bar"></span>
#<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="">Home</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<!-- LINK INTO table, and link into home#form -->
<li><a href="{% url 'lab-6:index' %}#calculator">Calculator</a></li>
<li><a href="{% url 'lab-6:index' %}#theme">Theme</a> </li>
<li><a href="{% url 'lab-7:index' %}#friend-list">Add Friend</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
......
......@@ -31,6 +31,7 @@ def friend_list_json(request): # update
@csrf_exempt
def add_friend(request):
if request.method == 'POST':
name = request.POST['name']
npm = request.POST['npm']
friend = Friend(friend_name=name, npm=npm)
friend.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment