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

Added KeyForm and "Add Key" button

parent 59d2ac9b
from django import forms from django import forms
from .models import Key
class HomeForm(forms.Form): class HomeForm(forms.Form):
name = forms.CharField(label='', max_length=100) name = forms.CharField(label='', max_length=100)
class KeyForm(forms.ModelForm):
class Meta:
model = Key
fields = '__all__'
...@@ -7,13 +7,6 @@ ...@@ -7,13 +7,6 @@
{% block content %} {% block content %}
<div id='key'> <a href='{% url 'home' %}'><button type='button'> Add Key </button></a>
<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>
{% endblock %} {% 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