Commit 9e1c35a8 authored by James Esguerra's avatar James Esguerra

Changed ShowHome function to render 'home' template

parent ed846083
......@@ -2,4 +2,4 @@ from django import forms
class HomeForm(forms.Form):
name = forms.CharField(label='User Name', max_length=100)
name = forms.CharField(label='', max_length=100)
......@@ -5,4 +5,4 @@ from .forms import HomeForm
def ShowHome(request):
form = HomeForm()
return render(request, 'base.html', {'form': form})
return render(request, 'home.html', {'form': form})
......@@ -19,13 +19,13 @@
<a href='/profile'> Profile </a>
</div>
<div>
<a href='/profile'> Key </a>
<a href='/Key'> Key </a>
</div>
<div>
<a href='/profile'> This Week </a>
<a href='/This Week'> This Week </a>
</div>
<div>
<a href='/profile'> Today </a>
<a href='/Today'> Today </a>
</div>
</div>
</header>
......
{% extends 'base.html' %}
{% block title %} Your Bujo {% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
<h1> Hello! What is your name? </h1>
<form action='/home/' method='post'>
{% csrf_token %}
{{ form }}
<input type='submit' value='Submit'>
</form>
{% endblock %}
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