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>
<!doctype html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<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>
</head>
<body
style=
"background-color:powderblue;"
>
<body
style=
"background-color:powderblue;"
>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% block content %}
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
{% endblock %}
<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>
</body>
</html>
</html>
\ No newline at end of file
bujo/bujo/templates/home.html
View file @
a4aa8d62
<!doctype html>
{% extends 'base.html'%}
<html
lang=
"en"
>
<head>
<head>
</head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Your Bujo
</title>
<title>
Your Bujo
</title>
<h1><center>
Today is going to be a great day!
</center></h1>
<center>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% if Submit != none %}
<a
href=
"{% url 'profile' %}"
><center>
Profile
</center></a>
<h1>
Hello {{Submit}}! Today is going to be a great day!
</h1>
<a
href=
"{% url 'key' %}"
><center>
Key
</center></a>
{% else %}
<a
href=
"{% url 'thisweek' %}"
><center>
This Week
</center></a>
<h1>
Hello! What is your name?
</h1>
<a
href=
"{% url 'today' %}"
><center>
Today
</center></a>
<form
action=
'home'
method=
'post'
>
{% csrf_token %}
{{ form }}
<input
type=
'submit'
value=
"Submit"
>
</form>
{% endif %}
</center>
{% endblock %}
</body>
</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>
{% extends 'base.html'%}
<html
lang=
"en"
>
<head>
<head>
</head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Key
</title>
<title>
Key
</title>
<h1><center>
Key
</center></h1>
<h1><center>
Key
</center></h1>
<text><center>
♦
Tasks: Things you have to do
</center></text>
<text><center>
♦
Tasks: Things you have to do
</center></text>
...
@@ -14,10 +14,5 @@
...
@@ -14,10 +14,5 @@
<text><center>
∅
Task incomplete
</center></text>
<text><center>
∅
Task incomplete
</center></text>
<br>
<br>
<text><center>
Ο
Task complete
</center></text>
<text><center>
Ο
Task complete
</center></text>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% endblock %}
<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>
</body>
\ No newline at end of file
</html>
\ No newline at end of file
bujo/bujo/templates/profile.html
View file @
a4aa8d62
{% extends 'base.html'%}
<!doctype html
>
<head
>
<html
lang=
"en"
>
</head
>
<b
r
>
<b
ody
>
<body
style=
"background-color:powderblue;"
>
{% block content %}
<title>
Profile
</title>
<title>
Profile
</title>
<br>
<br>
<h1><center>
Profile
</center></h1>
<h1><center>
Profile
</center></h1>
...
@@ -10,10 +10,5 @@
...
@@ -10,10 +10,5 @@
<br>
<br>
<text><center>
19 years old, 2nd Year Comp Sci major, video editor on the side
</center></text>
<text><center>
19 years old, 2nd Year Comp Sci major, video editor on the side
</center></text>
<br>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% endblock %}
<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>
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/thisweek.html
View file @
a4aa8d62
<!doctype html>
{% extends 'base.html'%}
<html
lang=
"en"
>
<head>
<head>
</head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
This Week
</title>
<title>
This Week
</title>
<h1><center>
This Week
</center></h1>
<h1><center>
This Week
</center></h1>
<text><center>
3.28.2021-4.03.2021
</center></text>
<text><center>
3.28.2021-4.03.2021
</center></text>
...
@@ -17,10 +17,5 @@
...
@@ -17,10 +17,5 @@
<br>
<br>
<text><center>
∅
Do laundry
</center></text>
<text><center>
∅
Do laundry
</center></text>
<br>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% endblock %}
<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>
</body>
</html>
\ No newline at end of file
bujo/bujo/templates/today.html
View file @
a4aa8d62
<!doctype html>
{% extends 'base.html'%}
<html
lang=
"en"
>
<head>
<head>
</head>
</head>
<body
style=
"background-color:powderblue;"
>
<body>
{% block content %}
<title>
Today
</title>
<title>
Today
</title>
<h1><center>
Today
</center></h1>
<h1><center>
Today
</center></h1>
<text><center>
3.30.2021
</center></text>
<text><center>
3.30.2021
</center></text>
...
@@ -15,10 +15,5 @@
...
@@ -15,10 +15,5 @@
<br>
<br>
<text><center>
♥
Try to sleep by 12am
</center></text>
<text><center>
♥
Try to sleep by 12am
</center></text>
<br>
<br>
<a
href=
"{% url 'home' %}"
><center>
Home
</center></a>
{% endblock %}
<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>
</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
from
django
import
forms
class
IndexCardForm
(
forms
.
Form
):
class
NameForm
(
forms
.
Form
):
name
=
forms
.
CharField
(
label
=
'Your name'
,
max_length
=
20
)
fname
=
forms
.
CharField
(
label
=
'name'
,
max_length
=
20
)
\ No newline at end of file
\ No newline at end of file
bujo/sites1/views.py
View file @
a4aa8d62
from
django.shortcuts
import
render
,
redirect
from
django.shortcuts
import
render
,
redirect
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
from
.forms
import
IndexCard
Form
from
.forms
import
Name
Form
def
home
(
request
):
def
home
(
request
):
return
render
(
request
,
'home.html'
)
if
request
.
method
==
'POST'
:
form
=
NameForm
(
request
.
POST
)
def
index
(
request
):
if
form
.
is_valid
():
return
render
(
request
,
'index.html'
)
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
):
def
profile
(
request
):
return
render
(
request
,
'profile.html'
)
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