Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
25646d55
Commit
25646d55
authored
May 07, 2023
by
Joaquin Inigo Crisologo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic styling to root-level CSS file
parent
3a1ec398
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
163 additions
and
25 deletions
+163
-25
db.sqlite3
widget_vincentdjango/db.sqlite3
+0
-0
forum.html
widget_vincentdjango/forum/templates/forum/forum.html
+15
-6
forumpost-add.html
...et_vincentdjango/forum/templates/forum/forumpost-add.html
+4
-4
forumpost-details.html
...incentdjango/forum/templates/forum/forumpost-details.html
+11
-11
forumpost-edit.html
...t_vincentdjango/forum/templates/forum/forumpost-edit.html
+3
-3
base.css
widget_vincentdjango/static/base.css
+130
-1
settings.cpython-39.pyc
.../widget_vincentdjango/__pycache__/settings.cpython-39.pyc
+0
-0
No files found.
widget_vincentdjango/db.sqlite3
View file @
25646d55
No preview for this file type
widget_vincentdjango/forum/templates/forum/forum.html
View file @
25646d55
...
@@ -3,17 +3,26 @@
...
@@ -3,17 +3,26 @@
{% block title %} Widget's Forum {% endblock %}
{% block title %} Widget's Forum {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Welcome to Widget's Forum!
</h1>
<h1
id=
"header"
>
Welcome to Widget's Forum!
</h1>
<div
class=
"separator-bar"
></div>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<h2>
Forum Posts:
</h2>
<h2
class=
"subheader"
>
Forum Posts:
</h2>
<ul>
<ul>
{% for forumpost in forumposts|dictsortreversed:"pub_datetime" %}
{% for forumpost in forumposts|dictsortreversed:"pub_datetime" %}
<li>
<li
class=
"object-cell"
>
<a
href=
"{{ forumpost.get_absolute_url }}"
>
{{ forumpost.title }} by {{ forumpost.author.first_name }} {{ forumpost.author.last_name }}
</a>
<a
href=
"{{ forumpost.get_absolute_url }}"
>
<span
class=
"object-title"
>
{{ forumpost.title }}
</span>
<span
class=
"object-subtitle"
>
by {{ forumpost.author.first_name }} {{ forumpost.author.last_name }}
</span>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
<hr>
<div
class=
"separator-bar"
></div>
<button
onclick=
"window.location.href='{% url 'forum:forumpost-add' %}';"
>
New Post
</button>
{% endblock %}
{% block navigation %}
<button
onclick=
"window.location.href='{% url 'forum:forumpost-add' %}';"
class=
"action-button"
>
New Post
</button>
<div
id=
"footer"
>
<a
href=
"{% url 'dashboard:index' %}"
>
Dashboard
</a>
<a
href=
"{% url 'announcementBoard:index' %}"
>
Announcements
</a>
<a
href=
"{% url 'assignments:homePage' %}"
>
Assignments
</a>
<a
href=
"{% url 'widget_calendar:index' %}"
>
Calendar
</a>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_vincentdjango/forum/templates/forum/forumpost-add.html
View file @
25646d55
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
{% block title %} Add Post {% endblock %}
{% block title %} Add Post {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Add a new Post:
</h1>
<h1
class=
"subheader"
>
Add a new Post:
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
<div
class=
"form-fields"
>
{{ form.as_p }}
</div>
<
br
>
<
div
class=
"separator-bar"
></div
>
<input
type=
"submit"
value=
"Save New Post"
>
<input
class=
"action-button"
type=
"submit"
value=
"Save New Post"
>
</form>
</form>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_vincentdjango/forum/templates/forum/forumpost-details.html
View file @
25646d55
...
@@ -3,20 +3,20 @@
...
@@ -3,20 +3,20 @@
{% block title %} {{ object.title }} {% endblock %}
{% block title %} {{ object.title }} {% endblock %}
{% block heading %}
{% block heading %}
<h1>
{{ object.title }}
</h1>
<h1
class=
"detail-header"
>
{{ object.title }}
</h1>
<h2>
by {{ object.author.first_name }} {{ object.author.last_name }}
</h2>
<h2
class=
"detail-additionalinfo"
>
by {{ object.author.first_name }} {{ object.author.last_name }}
</h2>
<h4>
{{ object.format_pub_datetime }}
</h4>
<h4
class=
"detail-additionalinfo"
>
{{ object.format_pub_datetime }}
</h4>
<p>
{{ object.body }}
</p>
<p
class=
"detail-body"
>
{{ object.body }}
</p>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<
hr
>
<
div
class=
"separator-bar"
></div
>
<h2>
Post Replies:
</h2>
<h2
class=
"subheader"
>
Post Replies:
</h2>
{% for reply in object.replies.all %}
{% for reply in object.replies.all %}
<p>
by {{ reply.author.first_name }} {{ reply.author.last_name }}
</p>
<p
class=
"detail-additionalinfo"
>
by {{ reply.author.first_name }} {{ reply.author.last_name }}
</p>
<p>
{{ reply.format_pub_datetime }}
</p>
<p
class=
"detail-additionalinfo"
>
{{ reply.format_pub_datetime }}
</p>
<p>
{{ reply.body }}
</p>
<p
class=
"detail-body"
>
{{ reply.body }}
</p>
<br>
<br>
{% endfor %}
{% endfor %}
<
hr
>
<
div
class=
"separator-bar"
></div
>
<button
onclick=
"window.location.href='{% url 'forum:forumpost-edit' pk=object.pk %}';"
>
Edit Post
</button>
<button
class=
"action-button"
onclick=
"window.location.href='{% url 'forum:forumpost-edit' pk=object.pk %}';"
>
Edit Post
</button>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_vincentdjango/forum/templates/forum/forumpost-edit.html
View file @
25646d55
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
{% block title %} Edit Post {% endblock %}
{% block title %} Edit Post {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Edit Post:
</h1>
<h1
class=
"subheader"
>
Edit Post:
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<
br
>
<
div
class=
"separator-bar"
></div
>
<input
type=
"submit"
value=
"Save Changes"
>
<input
type=
"submit"
value=
"Save Changes"
class=
"action-button"
>
</form>
</form>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_vincentdjango/static/base.css
View file @
25646d55
body
{
body
{
font-family
:
"Segoe UI"
;
font-family
:
"Franklin Gothic"
;
}
ul
{
padding
:
0
0
;
text-align
:
center
;
}
#header
{
text-align
:
center
;
width
:
100%
;
font-family
:
"Franklin Gothic Medium"
;
font-size
:
40px
;
background-color
:
#444
;
color
:
white
;
margin
:
0
;
padding
:
50px
0
;
text-shadow
:
0
0
1px
currentColor
;
transition
:
all
0.3s
;
}
.subheader
{
text-align
:
center
;
font-family
:
"Franklin Gothic Medium"
;
font-size
:
28px
;
margin
:
6px
0
;
padding
:
6px
0
;
background-color
:
#CCE
;
text-shadow
:
0
0
1px
currentColor
;
}
.detail-header
{
text-align
:
center
;
font-family
:
"Franklin Gothic Medium"
;
font-size
:
24px
;
}
.detail-additionalinfo
{
text-align
:
center
;
font-family
:
"Franklin Gothic Medium"
;
font-size
:
14px
;
margin
:
6px
0
;
}
.detail-body
{
text-align
:
center
;
font-size
:
16px
;
font-family
:
"Franklin Gothic"
;
}
.separator-bar
{
height
:
1px
;
border-bottom
:
1px
solid
black
;
border-top
:
1px
solid
black
;
margin
:
20px
0
;
}
.object-cell
{
border-radius
:
6px
;
background-color
:
#F0F0F0
;
padding
:
10px
;
margin
:
10px
;
list-style
:
none
;
transition
:
all
0.3s
;
}
.object-cell
:hover
{
background-color
:
#DDE
;
}
.object-title
{
font-size
:
16px
;
font-weight
:
bold
;
}
.object-subtitle
{
font-size
:
14px
;
}
a
{
text-decoration
:
none
;
transition
:
0.3s
;
}
a
:hover
{
text-decoration
:
underline
;
}
a
:visited
{
color
:
black
;
}
input
{
font-family
:
"Franklin Gothic"
;
width
:
75%
;
}
.form-fields
{
margin
:
auto
;
}
.action-button
{
margin
:
auto
;
padding
:
6px
;
display
:
block
;
text-align
:
center
;
width
:
50%
;
background-color
:
#F0F0F0
;
font-family
:
"Franklin Gothic"
;
font-size
:
16px
;
border-radius
:
6px
;
transition
:
0.3s
;
}
.action-button
:hover
{
background-color
:
#CCE
;
cursor
:
pointer
;
}
#footer
{
display
:
flex
;
justify-content
:
center
;
}
#footer
>
a
{
padding
:
10px
10px
;
}
}
\ No newline at end of file
widget_vincentdjango/widget_vincentdjango/__pycache__/settings.cpython-39.pyc
View file @
25646d55
No preview for this file type
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