Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BuJo
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
Jose Luis Bautista
BuJo
Commits
0ea1e560
Commit
0ea1e560
authored
Mar 24, 2021
by
Jose Luis Bautista
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTML placeholder values and img done
parent
941a39e3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
27 deletions
+65
-27
urls.cpython-39.pyc
BauJo/BauJo/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
BauJo/BauJo/__pycache__/views.cpython-39.pyc
+0
-0
john.jpg
BauJo/BauJo/static/john.jpg
+0
-0
base.html
BauJo/BauJo/templates/base.html
+6
-7
home.html
BauJo/BauJo/templates/home.html
+1
-0
key.html
BauJo/BauJo/templates/key.html
+12
-1
profile.html
BauJo/BauJo/templates/profile.html
+12
-1
this_week.html
BauJo/BauJo/templates/this_week.html
+14
-1
today.html
BauJo/BauJo/templates/today.html
+7
-0
views.py
BauJo/BauJo/views.py
+13
-17
No files found.
BauJo/BauJo/__pycache__/urls.cpython-39.pyc
View file @
0ea1e560
No preview for this file type
BauJo/BauJo/__pycache__/views.cpython-39.pyc
View file @
0ea1e560
No preview for this file type
BauJo/BauJo/static/john.jpg
0 → 100644
View file @
0ea1e560
23.7 KB
BauJo/BauJo/templates/base.html
View file @
0ea1e560
...
...
@@ -5,13 +5,17 @@
<link
rel=
stylesheet
href=
"{% static 'style.css' %}"
>
{% endblock %}
<html>
<head>
<meta
charest =
"utf-8"
>
<meta
name=
"viewport"
content =
"width=device-width"
>
<title>
{% block title %}{% endblock %}
</title>
<h2
align =
'center'
>
{% block header %} {% endblock %}
</h2>
<hr
class=
"dotted"
>
</head>
<body>
<nav>
<ul>
<li><a
href =
"{% url 'home' %}"
>
Home
</a></li>
...
...
@@ -21,11 +25,6 @@
<li><a
href =
"{% url 'today' %}"
>
Today
</a></li>
</ul>
</nav>
<h2
align =
'right'
>
{% block header %} {% endblock %}
</h2>
<hr
class=
"dotted"
>
</head>
<body>
{% block body %}
{% endblock %}
</body>
...
...
BauJo/BauJo/templates/home.html
View file @
0ea1e560
...
...
@@ -19,6 +19,7 @@
{{ form }}
<input
type=
"submit"
name=
"submit"
id =
"submit"
value =
"Submit Name"
>
</form>
{% endif %}
{% endblock %}
...
...
BauJo/BauJo/templates/key.html
View file @
0ea1e560
...
...
@@ -3,3 +3,14 @@
{% block title %}Key{% endblock %}
{% block header %}Key{% endblock %}
{% block body %}
<h3>
• Tasks: Things you have to do
</h3>
<h3>
- Notes: Things you don't want to forget
</h3>
<h3>
O Events: Noteworthy moments in time
</h3>
<h4>
• Task incomplete
</h4>
<h4>
x Task complete
</h4>
{% endblock %}
\ No newline at end of file
BauJo/BauJo/templates/profile.html
View file @
0ea1e560
{% extends 'base.html' %}
{% load static %}
{% block title %}Profile{% endblock %}
{% block header %}Profile{% endblock %}
{% block body %}
<br>
<img
src=
"{% static 'john.jpg' %}"
width=
"600"
height=
"400"
>
<h3>
This is John Batungbacal.
<br>
He works at the SM department store as a sales representative.
<br>
He likes to play Mobile Legends and customizing his motorcycle.
</h3>
{% endblock %}
\ No newline at end of file
BauJo/BauJo/templates/this_week.html
View file @
0ea1e560
...
...
@@ -3,3 +3,16 @@
{% block title %}This Week{% endblock %}
{% block header %}This Week{% endblock %}
{% block body %}
<h1>
3.22.MON - 3.28.SUN
</h1>
<h3>
• Maglinis ng bahay
</h3>
<h3>
• Bolpen ni kapatid
</h3>
<h3>
• Charger wag kalimutan
</h3>
<h3>
- Mura lugaw dun sa may kanto malapit sa trike station
</h3>
<h3>
O (26) Date with bebe (whole day)
</h3>
<h3>
O (28) Ride with the boys pa MOA (whole day)
</h3>
{% endblock %}
\ No newline at end of file
BauJo/BauJo/templates/today.html
View file @
0ea1e560
...
...
@@ -7,4 +7,11 @@
{% block body %}
<h1>
{{date}}
</h1>
<h3>
• Pabili ni baby
</h3>
<h3>
• NBI Clearance
</h3>
<h3>
- Pabili ni baby
</h3>
<h3>
- Mga sinampay, baka umulan
</h3>
<h3>
O ML league stream (8pm)
</h3>
{% endblock %}
\ No newline at end of file
BauJo/BauJo/views.py
View file @
0ea1e560
...
...
@@ -5,30 +5,26 @@ from datetime import datetime
from
.forms
import
home
,
profile
,
key
,
this_week
,
today
def
page_home
(
request
):
if
request
.
method
==
'POST'
:
form
=
home
(
request
.
POST
)
if
form
.
is_valid
():
return
render
(
request
,
'home.html'
,
{
'form'
:
form
,
'name'
:
form
.
cleaned_data
[
'name'
]})
else
:
form
=
home
()
# if request.method == 'POST':
# form = home(request.POST)
# else:
# form = home()
return
render
(
request
,
'home.html'
,
{
'form'
:
form
})
def
page_profile
(
request
):
return
render
(
request
,
'profile.html'
,{
'profile'
:
profile
}
)
return
render
(
request
,
'profile.html'
)
def
page_key
(
request
):
return
render
(
request
,
'key.html'
,{
'profile'
:
profile
}
)
return
render
(
request
,
'key.html'
)
def
page_this_week
(
request
):
return
render
(
request
,
'this_week.html'
,{
'profile'
:
profile
}
)
return
render
(
request
,
'this_week.html'
)
def
page_today
(
request
):
# return HttpResponse("<h1>Hello, world !</h1>")
# Some Date Object, for example a default generated by datetime
myDate
=
datetime
.
now
()
# Give a format to the date
# Displays something like: Aug. 27, 2017, 2:57 p.m.
formatedDate
=
myDate
.
strftime
(
"
%
m-
%
d-
%
A"
)
myDate
=
datetime
.
now
()
formattedDate
=
myDate
.
strftime
(
"
%
m.
%
d.
%
A"
)
# Do something with the formatted date
return
render
(
request
,
'today.html'
,
{
'date'
:
formatedDate
})
return
render
(
request
,
'today.html'
,
{
'date'
:
formattedDate
})
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