Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group3
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
Jonathan Talbot
widget_group3
Commits
8560fa1b
Commit
8560fa1b
authored
May 24, 2022
by
Jonathan Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lab 3 video
parent
49ca8f22
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
9 deletions
+38
-9
README.md
README.md
+4
-1
announcements_list.html
...uncements/templates/announcements/announcements_list.html
+1
-1
db.sqlite3
widget_group3/db.sqlite3
+0
-0
views.cpython-310.pyc
widget_group3/homepage/__pycache__/views.cpython-310.pyc
+0
-0
widgetuser_detail.html
...group3/homepage/templates/homepage/widgetuser_detail.html
+9
-1
widgetuser_form.html
...t_group3/homepage/templates/homepage/widgetuser_form.html
+9
-1
widgetuser_list.html
...t_group3/homepage/templates/homepage/widgetuser_list.html
+14
-2
views.py
widget_group3/homepage/views.py
+0
-2
settings.cpython-310.pyc
...group3/widget_group3/__pycache__/settings.cpython-310.pyc
+0
-0
settings.py
widget_group3/widget_group3/settings.py
+1
-1
No files found.
README.md
View file @
8560fa1b
...
@@ -13,4 +13,7 @@
...
@@ -13,4 +13,7 @@
### https://drive.google.com/file/d/1iEkbHXomN2VUXBepXeVk2zCTFWFxRD0A/view?usp=sharing
### https://drive.google.com/file/d/1iEkbHXomN2VUXBepXeVk2zCTFWFxRD0A/view?usp=sharing
## Lab 2: Video link:
## Lab 2: Video link:
### https://drive.google.com/file/d/1JqTDjraUkpCbQ_alrvoAGlDRjvGIuyL4/view?usp=sharing
### https://drive.google.com/file/d/1JqTDjraUkpCbQ_alrvoAGlDRjvGIuyL4/view?usp=sharing
\ No newline at end of file
## Lab 3: Video link:
### https://drive.google.com/file/d/1J6YsAXeB6fFtzpXEqnRvbQdeE3p8EkIK/view?usp=sharing
\ No newline at end of file
widget_group3/announcements/templates/announcements/announcements_list.html
View file @
8560fa1b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
{% if announcements %}
{% if announcements %}
<ul>
<ul>
{% for announcement in announcements %}
{% for announcement in announcements %}
<li><a
href=
"{{ announcement.get_absolute_url }}"
>
{{ announcement.announcement_title }} by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date }}
</a></li>
<li><a
href=
"{{ announcement.get_absolute_url }}"
>
{{ announcement.announcement_title }} by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date
|date:'d/m/Y'
}}
</a></li>
{% endfor %}
{% endfor %}
</ul>
</ul>
{% else %}
{% else %}
...
...
widget_group3/db.sqlite3
View file @
8560fa1b
No preview for this file type
widget_group3/homepage/__pycache__/views.cpython-310.pyc
View file @
8560fa1b
No preview for this file type
widget_group3/homepage/templates/homepage/widgetuser_detail.html
View file @
8560fa1b
...
@@ -13,6 +13,14 @@
...
@@ -13,6 +13,14 @@
<p>
{{user.department.dept_name}}
</p>
<p>
{{user.department.dept_name}}
</p>
<p>
{{user.department.home_unit}}
</p>
<p>
{{user.department.home_unit}}
</p>
<hr>
<hr>
<a
href=
"{% url 'widget_user-list' %}"
>
Back to Homepage
</a>
<a
class=
"back"
href=
"{% url 'widget_user-list' %}"
>
Back to Homepage
</a>
</body>
</body>
<style>
a
{
text-decoration
:
none
;
}
.back
:hover
{
color
:
green
;
}
</style>
</html>
</html>
\ No newline at end of file
widget_group3/homepage/templates/homepage/widgetuser_form.html
View file @
8560fa1b
...
@@ -15,6 +15,14 @@
...
@@ -15,6 +15,14 @@
<input
type=
"submit"
value=
"Save WidgetUser"
>
<input
type=
"submit"
value=
"Save WidgetUser"
>
</form>
</form>
<hr>
<hr>
<a
href=
"{% url 'widget_user-list' %}"
>
Back to Homepage
</a>
<a
class=
"back"
href=
"{% url 'widget_user-list' %}"
>
Back to Homepage
</a>
</body>
</body>
<style>
a
{
text-decoration
:
none
;
}
.back
:hover
{
color
:
green
;
}
</style>
</html>
</html>
\ No newline at end of file
widget_group3/homepage/templates/homepage/widgetuser_list.html
View file @
8560fa1b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<title>
User List
</title>
<title>
User List
</title>
</head>
</head>
<body>
<body>
<h1>
Welcome to Widget!
</h1>
<h1
id=
"heading"
>
Welcome to Widget!
</h1>
<hr>
<hr>
<p>
Widget Users:
</p>
<p>
Widget Users:
</p>
{% if object_list %}
{% if object_list %}
...
@@ -20,6 +20,18 @@
...
@@ -20,6 +20,18 @@
<p>
There are no widget users.
</p>
<p>
There are no widget users.
</p>
{% endif %}
{% endif %}
<hr>
<hr>
<a
href=
"{% url 'widget_user-add' %}"
><button>
Add Widget User
</button></a>
<a
href=
"{% url 'widget_user-add' %}"
><button
class=
"add"
>
Add Widget User
</button></a>
</body>
</body>
<style>
#heading
{
text-decoration
:
underline
;
text-align
:
center
;
}
a
{
text-decoration
:
none
;
}
.add
{
padding
:
5px
10px
;
}
</style>
</html>
</html>
\ No newline at end of file
widget_group3/homepage/views.py
View file @
8560fa1b
...
@@ -14,8 +14,6 @@ def UserDetailView(request, pk):
...
@@ -14,8 +14,6 @@ def UserDetailView(request, pk):
class
UserListView
(
ListView
):
class
UserListView
(
ListView
):
queryset
=
WidgetUser
.
objects
.
order_by
(
'last_name'
)
# Orders by last name alphabetically
queryset
=
WidgetUser
.
objects
.
order_by
(
'last_name'
)
# Orders by last name alphabetically
context_object_name
=
"post_list"
template_name
=
"post_list.html"
def
addWidgetUser
(
request
):
def
addWidgetUser
(
request
):
form
=
WidgetUserForm
()
form
=
WidgetUserForm
()
...
...
widget_group3/widget_group3/__pycache__/settings.cpython-310.pyc
View file @
8560fa1b
No preview for this file type
widget_group3/widget_group3/settings.py
View file @
8560fa1b
...
@@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
...
@@ -112,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE
=
'en-us'
LANGUAGE_CODE
=
'en-us'
TIME_ZONE
=
'
UTC
'
TIME_ZONE
=
'
Asia/Manila
'
USE_I18N
=
True
USE_I18N
=
True
...
...
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