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
4b34bddd
Commit
4b34bddd
authored
Mar 17, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed style tags and added basic CSS
parent
be2e318f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
37 deletions
+47
-37
views.cpython-38.pyc
pages/__pycache__/views.cpython-38.pyc
+0
-0
views.py
pages/views.py
+1
-0
styles.css
static/css/styles.css
+25
-2
base.html
templates/base.html
+1
-1
home.html
templates/home.html
+8
-10
home2.html
templates/home2.html
+1
-5
key.html
templates/key.html
+0
-4
profile.html
templates/profile.html
+4
-6
this_week.html
templates/this_week.html
+0
-4
today.html
templates/today.html
+7
-5
No files found.
pages/__pycache__/views.cpython-38.pyc
View file @
4b34bddd
No preview for this file type
pages/views.py
View file @
4b34bddd
...
@@ -10,6 +10,7 @@ def ShowHome(request):
...
@@ -10,6 +10,7 @@ def ShowHome(request):
if
form
.
is_valid
():
if
form
.
is_valid
():
global
name
global
name
name
=
form
.
cleaned_data
[
'name'
]
name
=
form
.
cleaned_data
[
'name'
]
#renders another HTML with the user's name and without the form
return
render
(
request
,
'home2.html'
,
{
'name'
:
name
})
return
render
(
request
,
'home2.html'
,
{
'name'
:
name
})
form
=
HomeForm
()
form
=
HomeForm
()
...
...
static/css/styles.css
View file @
4b34bddd
*
{
margin
:
0
;
padding
:
0
;
}
body
{
body
{
font-family
:
Georgia
;
font-family
:
Georgia
;
}
}
a
{
a
{
text-decoration
:
none
;
text-decoration
:
none
;
color
:
inherit
;
}
#page-header
{
text-align
:
center
;
font-size
:
2.5em
;
padding-top
:
15px
;
}
#navbar
{
display
:
grid
;
grid-template-columns
:
20%
20%
20%
20%
20%
;
background-color
:
black
;
color
:
white
;
padding
:
5px
0px
5px
0px
;
text-align
:
center
;
}
}
h1
{
#home
{
font-size
:
2.5em
;
text-align
:
center
;
text-align
:
center
;
padding-top
:
200px
;
}
}
templates/base.html
View file @
4b34bddd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
{% block title %} {% endblock %}
</title>
<title>
{% block title %} {% endblock %}
</title>
{% block styles %} {% endblock %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
</head>
</head>
<body>
<body>
<header>
<header>
...
...
templates/home.html
View file @
4b34bddd
...
@@ -3,20 +3,18 @@
...
@@ -3,20 +3,18 @@
{% block title %} Your Bujo {% endblock %}
{% block title %} Your Bujo {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
{% block content %}
<h1>
Hello! What is your name?
</h1>
<div
id=
home
>
<h1>
Hello! What is your name?
</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>
</div>
{% endblock %}
{% endblock %}
templates/home2.html
View file @
4b34bddd
...
@@ -3,14 +3,10 @@
...
@@ -3,14 +3,10 @@
{% block title %} Your Bujo {% endblock %}
{% block title %} Your Bujo {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
{% block content %}
<h1>
Hello, {{ name }}! Today is going to be a great day!
</h1>
<h1
id=
'home'
>
Hello, {{ name }}! Today is going to be a great day!
</h1>
{% endblock %}
{% endblock %}
templates/key.html
View file @
4b34bddd
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
{% block title %} Key {% endblock %}
{% block title %} Key {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} Key {% endblock %}
{% block header %} Key {% endblock %}
{% block content %}
{% block content %}
...
...
templates/profile.html
View file @
4b34bddd
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
{% block title %} Profile {% endblock %}
{% block title %} Profile {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} Profile {% endblock %}
{% block header %} Profile {% endblock %}
{% block content %}
{% block content %}
...
@@ -14,11 +10,13 @@
...
@@ -14,11 +10,13 @@
<div>
<div>
<div>
<div>
<p>
{{ name }}
</p>
<p>
{{ name }}
</p>
<p>
My name is {{ name }} and I love playing computer games.
</p>
<p>
My name is {{ name }}, I am 25 years old, and I graduated from Ateneo
de Manila University. My hobbies are singin, painting, and collecting
Pokemon cards!
</p>
</div>
</div>
<div>
<div>
<
p>
picture here
</p
>
<
img
src=
'dummypic.png'
alt=
'Picture'
>
</div>
</div>
</div>
</div>
...
...
templates/this_week.html
View file @
4b34bddd
...
@@ -3,10 +3,6 @@
...
@@ -3,10 +3,6 @@
{% block title %} This Week {% endblock %}
{% block title %} This Week {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} This Week {% endblock %}
{% block header %} This Week {% endblock %}
{% block content %}
{% block content %}
...
...
templates/today.html
View file @
4b34bddd
...
@@ -3,16 +3,18 @@
...
@@ -3,16 +3,18 @@
{% block title %} Today {% endblock %}
{% block title %} Today {% endblock %}
{% block styles %}
<link
rel=
'stylesheet'
type=
'text/css'
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block header %} Today {% endblock %}
{% block header %} Today {% endblock %}
{% block content %}
{% block content %}
<h2>
{{ my_date|date:"m.d.D" }}
</h2>
<h2>
{{ my_date|date:"m.d.D" }}
</h2>
<p>
This is the today page.
</p>
<p>
• 7AM water plants
</p>
<p>
• 8AM walk the dogs
</p>
<p>
- i need more to buy more fish food
</p>
<p>
- be careful when deleting commits on git!
</p>
<p>
○ 20 1PM DSC org meeting
</p>
<p>
- never hit up a random girl on twitter ever again
</p>
<p>
○ 21 7AM ACOMM org meeting
</p>
{% endblock %}
{% endblock %}
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