Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
0662b273
Commit
0662b273
authored
May 15, 2023
by
Deokhyun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the background "Nezuko" image has been added for better view
parent
c034e6a2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
17 deletions
+20
-17
models.py
widget_aguandhischipmunks/calendar_app/models.py
+0
-4
views.py
widget_aguandhischipmunks/calendar_app/views.py
+0
-6
styles.css
widget_aguandhischipmunks/static/styles.css
+20
-4
urls.py
widget_aguandhischipmunks/widget_aguandhischipmunks/urls.py
+0
-3
No files found.
widget_aguandhischipmunks/calendar_app/models.py
View file @
0662b273
...
...
@@ -21,11 +21,7 @@ class Location(models.Model):
# Event
# target_datetime; activity; estimated_hours; location; course
class
Event
(
models
.
Model
):
<<<<<<<
HEAD
target_datetime
=
models
.
DateTimeField
(
"Date and Time: "
,
max_length
=
50
)
=======
target_datetime
=
models
.
DateTimeField
(
"Date and Time: "
,
max_length
=
50
,
)
>>>>>>>
origin
/
calendarv2
activity
=
models
.
CharField
(
"Activity: "
,
max_length
=
50
)
estimated_hours
=
models
.
FloatField
(
"Estimated Hours: "
,
max_length
=
50
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
...
...
widget_aguandhischipmunks/calendar_app/views.py
View file @
0662b273
...
...
@@ -2,14 +2,8 @@ from django.shortcuts import render, redirect
from
django.views.generic
import
DetailView
,
CreateView
,
UpdateView
from
.models
import
Event
,
Location
<<<<<<<
HEAD
# calendar view from .models
def
calendarIndex
(
request
):
title
=
'Widget’s Calendar of Activities<br><br>'
=======
# calendar view for FBV implmentation
def
calendar_view
(
request
):
>>>>>>>
origin
/
calendarv2
events
=
Event
.
objects
.
all
()
return
render
(
request
,
'calendar.html'
,
{
'events'
:
events
})
...
...
widget_aguandhischipmunks/static/styles.css
View file @
0662b273
...
...
@@ -2,7 +2,7 @@
grid-row
:
1
/
span
2
;
}
ul
li
{
li
{
list-style-type
:
none
;
}
...
...
@@ -13,9 +13,6 @@ h1 {
color
:
blue
;
}
form
{
background-color
:
blanchedalmond
;
}
button
{
background-color
:
#555
;
...
...
@@ -24,4 +21,23 @@ button {
border
:
none
;
border-radius
:
4px
;
cursor
:
pointer
;
}
body
{
background-image
:
url("https://www.pngkey.com/png/full/979-9791878_cold-as-ice-but-has-a-warm-heart.png")
;
background-repeat
:
no-repeat
;
}
@media
(
min-width
:
308px
)
{
body
{
background-position
:
200px
20px
;
}
}
@media
(
max-width
:
767px
)
{
body
{
background-position
:
140px
10px
;
}
}
\ No newline at end of file
widget_aguandhischipmunks/widget_aguandhischipmunks/urls.py
View file @
0662b273
...
...
@@ -19,10 +19,7 @@ from django.urls import path, include
urlpatterns
=
[
path
(
"admin/"
,
admin
.
site
.
urls
),
path
(
"dashboard/"
,
include
(
"dashboard.urls"
,
namespace
=
"dashboard"
)),
<<<<<<<
HEAD
path
(
"widgetusers/"
,
include
(
"dashboard.urls"
,
namespace
=
"widgetusers"
)),
=======
>>>>>>>
origin
/
calendarv2
path
(
"assignments/"
,
include
(
"assignments.urls"
)),
path
(
"forum/"
,
include
(
"forum.urls"
)),
path
(
"calendar/"
,
include
(
"calendar_app.urls"
)),
...
...
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