Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Bullet Journal
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
Franz Leonard Atanacio
Bullet Journal
Commits
33fc23a4
Commit
33fc23a4
authored
Mar 30, 2021
by
nikkastra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3c3200bd
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
104 additions
and
14 deletions
+104
-14
forms.cpython-38.pyc
mysite/bulletjournal/__pycache__/forms.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
mysite/bulletjournal/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
mysite/bulletjournal/__pycache__/views.cpython-38.pyc
+0
-0
urls.py
mysite/bulletjournal/urls.py
+6
-2
views.py
mysite/bulletjournal/views.py
+20
-4
urls.cpython-38.pyc
mysite/mysite/__pycache__/urls.cpython-38.pyc
+0
-0
picturekoparasalahat.jpg
mysite/mysite/static/img/picturekoparasalahat.jpg
+0
-0
base.html
mysite/mysite/templates/base.html
+2
-1
index.html
mysite/mysite/templates/index.html
+7
-7
key.html
mysite/mysite/templates/key.html
+19
-0
profile.html
mysite/mysite/templates/profile.html
+22
-0
thisweek.html
mysite/mysite/templates/thisweek.html
+14
-0
today.html
mysite/mysite/templates/today.html
+14
-0
No files found.
mysite/bulletjournal/__pycache__/forms.cpython-38.pyc
View file @
33fc23a4
No preview for this file type
mysite/bulletjournal/__pycache__/urls.cpython-38.pyc
View file @
33fc23a4
No preview for this file type
mysite/bulletjournal/__pycache__/views.cpython-38.pyc
View file @
33fc23a4
No preview for this file type
mysite/bulletjournal/urls.py
View file @
33fc23a4
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
HomePageView
,
index_card_view
from
.views
import
*
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
HomePageView
.
as_view
(),
name
=
'index'
),
path
(
''
,
HomePageView
.
as_view
(),
name
=
'index'
),
path
(
'home'
,
index_card_view
,
name
=
'home'
)
path
(
'home'
,
index_card_view
,
name
=
'home'
),
path
(
'profile'
,
profile
,
name
=
'profile'
),
path
(
'key'
,
key
,
name
=
'key'
),
path
(
'thisweek'
,
thisweek
,
name
=
'thisweek'
),
path
(
'today'
,
today
,
name
=
'today'
)
]
]
\ No newline at end of file
mysite/bulletjournal/views.py
View file @
33fc23a4
...
@@ -4,10 +4,10 @@ from django.views import View
...
@@ -4,10 +4,10 @@ from django.views import View
from
.forms
import
IndexCardForm
from
.forms
import
IndexCardForm
class
HomePageView
(
View
):
class
HomePageView
(
View
):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
return
(
HttpResponse
(
"putanginamo"
))
form
=
IndexCardForm
()
return
render
(
request
,
'index.html'
,
{
'form'
:
form
})
def
index_card_view
(
request
):
def
index_card_view
(
request
):
...
@@ -15,10 +15,26 @@ def index_card_view(request):
...
@@ -15,10 +15,26 @@ def index_card_view(request):
form
=
IndexCardForm
(
request
.
POST
)
form
=
IndexCardForm
(
request
.
POST
)
if
form
.
is_valid
():
if
form
.
is_valid
():
return
HttpResponse
(
return
HttpResponse
(
'Hello, {}! Today is go
ing to
be a great day!'
.
format
(
'Hello, {}! Today is go
nna
be a great day!'
.
format
(
form
.
cleaned_data
[
'name'
]
form
.
cleaned_data
[
'name'
]
)
)
)
)
else
:
else
:
form
=
IndexCardForm
()
form
=
IndexCardForm
()
return
render
(
request
,
'index.html'
,
{
'form'
:
form
})
return
render
(
request
,
'index.html'
,
{
'form'
:
form
})
\ No newline at end of file
def
profile
(
request
):
return
render
(
request
,
'profile.html'
)
def
key
(
request
):
return
render
(
request
,
'key.html'
)
def
thisweek
(
request
):
return
render
(
request
,
'thisweek.html'
)
def
today
(
request
):
return
render
(
request
,
'today.html'
)
\ No newline at end of file
mysite/mysite/__pycache__/urls.cpython-38.pyc
View file @
33fc23a4
No preview for this file type
mysite/mysite/static/img/picturekoparasalahat.jpg
0 → 100644
View file @
33fc23a4
52.2 KB
mysite/mysite/templates/base.html
View file @
33fc23a4
...
@@ -7,12 +7,13 @@
...
@@ -7,12 +7,13 @@
{% block styles %}{% endblock %}
{% block styles %}{% endblock %}
</head>
</head>
<body>
<body>
{% block content %}{% endblock %}
<h1>
YOUR BULLET JOURNAL
</h1>
<form
action=
"/home"
method=
"post"
>
<form
action=
"/home"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{form}}
{{form}}
<input
type=
"Submit"
value=
"Submit"
>
<input
type=
"Submit"
value=
"Submit"
>
</form>
</form>
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
{% block scripts %}{% endblock %}
</body>
</body>
</html>
</html>
\ No newline at end of file
mysite/mysite/templates/index.html
View file @
33fc23a4
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{%
block title %}Your Bujo{% endblock
%}
{%
load static
%}
{% block styles %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.css' %}"
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.css' %}"
type=
'text/css'
>
...
@@ -9,10 +8,11 @@
...
@@ -9,10 +8,11 @@
{% block content %}
{% block content %}
<ul>
<ul>
<li>
Home
</li>
<li>
<a
href=
"{% url 'home'%}"
>
Home
</a>
</li>
<li>
Profile
</li>
<li>
<a
href=
"{% url 'profile'%}"
>
Profile
</a>
</li>
<li>
Key
</li>
<li>
<a
href=
"{% url 'key'%}"
>
Key
</a>
</li>
<li>
This Week
</li>
<li>
<a
href=
"{% url 'thisweek'%}"
>
This Week
</a>
</li>
<li>
Today
</li>
<li>
<a
href=
"{% url 'today'%}"
>
Today
</a>
</li>
</ul>
</ul>
{% include 'profile.html' %}
{% endblock %}
{% endblock %}
\ No newline at end of file
mysite/mysite/templates/key.html
0 → 100644
View file @
33fc23a4
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
'viewport'
content=
'width=device-width'
>
<title>
{% block title %}Key{% endblock %}
</title>
{% block styles %}{% endblock %}
</head>
<body>
<h1>
Key
</h1>
<p>
● Tasks: things you have to do
</p>
<p>
- Notes: things you don't want to forget
</p>
<p>
◦ Events: noteworth moments in time
</p>
<p>
● Task incomplete
</p>
<p>
x Task complete
</p>
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
mysite/mysite/templates/profile.html
0 → 100644
View file @
33fc23a4
{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
'viewport'
content=
'width=device-width'
>
<title>
{% block title %}Profile{% endblock %}
</title>
{% block styles %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
<h1>
Profile
</h1>
<ul>
<li>
Franz Leonard Atanacio
</li>
<li>
"pogi"
</li>
<li>
di raw masyadong masarap pero pwede na
</li>
</ul>
<img
src=
"{% static 'img/picturekoparasalahat.jpg' %}"
/>
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
mysite/mysite/templates/thisweek.html
0 → 100644
View file @
33fc23a4
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
'viewport'
content=
'width=device-width'
>
<title>
{% block title %}This Week{% endblock %}
</title>
{% block styles %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
mysite/mysite/templates/today.html
0 → 100644
View file @
33fc23a4
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
'viewport'
content=
'width=device-width'
>
<title>
{% block title %}Today{% endblock %}
</title>
{% block styles %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
</body>
</html>
\ No newline at end of file
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