Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esguerra_lab1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
James Esguerra
esguerra_lab1
Commits
0caea6b5
Commit
0caea6b5
authored
Apr 06, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added KeyForm and "Add Key" button
parent
59d2ac9b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
forms.cpython-38.pyc
pages/__pycache__/forms.cpython-38.pyc
+0
-0
models.cpython-38.pyc
pages/__pycache__/models.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
pages/__pycache__/urls.cpython-38.pyc
+0
-0
forms.py
pages/forms.py
+7
-0
key.html
templates/key.html
+1
-8
urls.cpython-38.pyc
website/__pycache__/urls.cpython-38.pyc
+0
-0
No files found.
pages/__pycache__/forms.cpython-38.pyc
View file @
0caea6b5
No preview for this file type
pages/__pycache__/models.cpython-38.pyc
View file @
0caea6b5
No preview for this file type
pages/__pycache__/urls.cpython-38.pyc
View file @
0caea6b5
No preview for this file type
pages/forms.py
View file @
0caea6b5
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__'
templates/key.html
View file @
0caea6b5
...
@@ -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 %}
website/__pycache__/urls.cpython-38.pyc
View file @
0caea6b5
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment