Commit 0caea6b5 authored by James Esguerra's avatar James Esguerra

Added KeyForm and "Add Key" button

parent 59d2ac9b
from django import forms
from .models import Key
class HomeForm(forms.Form):
name = forms.CharField(label='', max_length=100)
class KeyForm(forms.ModelForm):
class Meta:
model = Key
fields = '__all__'
......@@ -7,13 +7,6 @@
{% block content %}
<div id='key'>
<p>• Tasks: things to do </p>
<p>- Notes: things you don't want to forget</p>
<p>○ Events: noteworth moments in time</p>
<br>
<p>• Task incomplete</p>
<p>X Task complete</p>
</div>
<a href='{% url 'home' %}'><button type='button'> Add Key </button></a>
{% 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