Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bulatao_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
Adam Zachary Bulatao
bulatao_lab1
Commits
a4aa8d62
Commit
a4aa8d62
authored
Apr 02, 2021
by
Adam Zachary Bulatao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited
parent
f06c827a
Pipeline
#1556
failed with stages
Changes
13
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
56 additions
and
75 deletions
+56
-75
urls.cpython-37.pyc
bujo/bujo/__pycache__/urls.cpython-37.pyc
+0
-0
base.html
bujo/bujo/templates/base.html
+7
-5
home.html
bujo/bujo/templates/home.html
+17
-10
index.html
bujo/bujo/templates/index.html
+0
-13
key.html
bujo/bujo/templates/key.html
+5
-10
profile.html
bujo/bujo/templates/profile.html
+6
-11
thisweek.html
bujo/bujo/templates/thisweek.html
+4
-9
today.html
bujo/bujo/templates/today.html
+5
-10
forms.cpython-37.pyc
bujo/sites1/__pycache__/forms.cpython-37.pyc
+0
-0
urls.cpython-37.pyc
bujo/sites1/__pycache__/urls.cpython-37.pyc
+0
-0
views.cpython-37.pyc
bujo/sites1/__pycache__/views.cpython-37.pyc
+0
-0
forms.py
bujo/sites1/forms.py
+2
-2
views.py
bujo/sites1/views.py
+10
-5
No files found.
bujo/bujo/__pycache__/urls.cpython-37.pyc
View file @
a4aa8d62
No preview for this file type
bujo/bujo/templates/base.html
View file @
a4aa8d62
<!doctype html>
<html
lang=
"en"
>
<head>
<a
href=
"{% url 'home' %}"
>
Home
</a>
<a
href=
"{% url 'profile' %}"
>
Profile
</a>
<a
href=
"{% url 'key' %}"
>
Key
</a>
<a
href=
"{% url 'thisweek' %}"
>
This Week
</a>
<a
href=
"{% url 'today' %}"
>
Today
</a>
</head>
<body
style=
"background-color:powderblue;"
>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/home.html
View file @
a4aa8d62
<!doctype html>
<html
lang=
"en"
>
{% extends 'base.html'%}
<head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Your Bujo
</title>
<h1><center>
Today is going to be a great day!
</center></h1>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
<center>
{% if Submit != none %}
<h1>
Hello {{Submit}}! Today is going to be a great day!
</h1>
{% else %}
<h1>
Hello! What is your name?
</h1>
<form
action=
'home'
method=
'post'
>
{% csrf_token %}
{{ form }}
<input
type=
'submit'
value=
"Submit"
>
</form>
{% endif %}
</center>
{% endblock %}
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/index.html
deleted
100644 → 0
View file @
f06c827a
<!doctype html>
<html
lang=
"en"
>
<head>
</head>
<body
style=
"background-color:powderblue;"
>
<title>
Your Bujo
</title>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/key.html
View file @
a4aa8d62
<!doctype html>
<html
lang=
"en"
>
{% extends 'base.html'%}
<head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Key
</title>
<h1><center>
Key
</center></h1>
<text><center>
♦
Tasks: Things you have to do
</center></text>
...
...
@@ -14,10 +14,5 @@
<text><center>
∅
Task incomplete
</center></text>
<br>
<text><center>
Ο
Task complete
</center></text>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
{% endblock %}
</body>
\ No newline at end of file
</html>
\ No newline at end of file
bujo/bujo/templates/profile.html
View file @
a4aa8d62
<!doctype html
>
<html
lang=
"en"
>
<b
r
>
<body
style=
"background-color:powderblue;"
>
{% extends 'base.html'%}
<head
>
</head
>
<b
ody
>
{% block content %}
<title>
Profile
</title>
<br>
<h1><center>
Profile
</center></h1>
...
...
@@ -10,10 +10,5 @@
<br>
<text><center>
19 years old, 2nd Year Comp Sci major, video editor on the side
</center></text>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
{% endblock %}
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/thisweek.html
View file @
a4aa8d62
<!doctype html>
<html
lang=
"en"
>
{% extends 'base.html'%}
<head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
This Week
</title>
<h1><center>
This Week
</center></h1>
<text><center>
3.28.2021-4.03.2021
</center></text>
...
...
@@ -17,10 +17,5 @@
<br>
<text><center>
∅
Do laundry
</center></text>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
{% endblock %}
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/today.html
View file @
a4aa8d62
<!doctype html>
<html
lang=
"en"
>
{% extends 'base.html'%}
<head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Today
</title>
<h1><center>
Today
</center></h1>
<text><center>
3.30.2021
</center></text>
...
...
@@ -15,10 +15,5 @@
<br>
<text><center>
♥
Try to sleep by 12am
</center></text>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
{% endblock %}
</body>
\ No newline at end of file
</html>
\ No newline at end of file
bujo/sites1/__pycache__/forms.cpython-37.pyc
View file @
a4aa8d62
No preview for this file type
bujo/sites1/__pycache__/urls.cpython-37.pyc
View file @
a4aa8d62
No preview for this file type
bujo/sites1/__pycache__/views.cpython-37.pyc
View file @
a4aa8d62
No preview for this file type
bujo/sites1/forms.py
View file @
a4aa8d62
from
django
import
forms
class
IndexCardForm
(
forms
.
Form
):
name
=
forms
.
CharField
(
label
=
'Your name'
,
max_length
=
20
)
\ No newline at end of file
class
NameForm
(
forms
.
Form
):
fname
=
forms
.
CharField
(
label
=
'name'
,
max_length
=
20
)
\ No newline at end of file
bujo/sites1/views.py
View file @
a4aa8d62
from
django.shortcuts
import
render
,
redirect
from
django.http
import
HttpResponse
from
.forms
import
IndexCard
Form
from
.forms
import
Name
Form
def
home
(
request
):
return
render
(
request
,
'home.html'
)
def
index
(
request
):
return
render
(
request
,
'index.html'
)
if
request
.
method
==
'POST'
:
form
=
NameForm
(
request
.
POST
)
if
form
.
is_valid
():
return
render
(
request
,
'home.html'
,{
'Submit'
:
form
.
cleaned_data
[
'fname'
]})
else
:
return
render
(
request
,
'home.html'
,
{
'form'
:
form
})
else
:
form
=
NameForm
()
return
render
(
request
,
'home.html'
,
{
'form'
:
form
})
def
profile
(
request
):
return
render
(
request
,
'profile.html'
)
...
...
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