Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_gitgud
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
Neal Luigi D. Rodriguez
midterm_gitgud
Commits
d5e56536
Commit
d5e56536
authored
May 13, 2023
by
Christian Louis Olivares
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
designed all htmls,hyperlinks and buttons all working
parent
f44227cf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
0 deletions
+65
-0
calendar.html
...gud/widgetcalendar/templates/widgetcalendar/calendar.html
+23
-0
event-add.html
...ud/widgetcalendar/templates/widgetcalendar/event-add.html
+11
-0
event-details.html
...idgetcalendar/templates/widgetcalendar/event-details.html
+19
-0
event-edit.html
...d/widgetcalendar/templates/widgetcalendar/event-edit.html
+11
-0
urls.py
widget_gitgud/widgetcalendar/urls.py
+1
-0
No files found.
widget_gitgud/widgetcalendar/templates/widgetcalendar/calendar.html
0 → 100644
View file @
d5e56536
{% extends 'base.html' %}
{% load static %}
{% block title %} Widget's Calendar of Activities {% endblock %}
{% block content %}
<h1>
Widget's Calendar of Activities
</h1>
<ul>
{% for object in events %}
<li>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.activity }}
</a>
</li>
{% endfor %}
</ul>
<button
onclick=
"window.location.href='../../Calendar/events/add/';"
>
New Activity
</button>
<p>
<a
href=
"/Dashboard"
>
Dashboard
</a><br>
<a
href=
"/Announcement"
>
Announcements
</a><br>
<a
href=
"/Forum"
>
Forum
</a><br>
<a
href=
"/Assignments"
>
Assignments
</a>
</p>
{% endblock %}
\ No newline at end of file
widget_gitgud/widgetcalendar/templates/widgetcalendar/event-add.html
0 → 100644
View file @
d5e56536
{% extends 'base.html' %}
{% load static %}
{% block title %} Add Activity {% endblock %}
{% block content %}
<h1>
Add a New Activity
</h1>
<form
action=
""
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save New Activity"
>
</form>
{% endblock %}
widget_gitgud/widgetcalendar/templates/widgetcalendar/event-details.html
0 → 100644
View file @
d5e56536
{% extends 'base.html' %}
{% load static %}
{% block title %} {{ object.activity }}{% endblock %}
{% block content %}
<h1>
{{ object.activity }}
</h1>
<h2>
Date and Time: {{ object.target_datetime|date:"m/d/Y, "}}{{ object.target_datetime|time:"h:i A" }}
</h2>
<h2>
Estimated Hours: {{ object.estimated_hours }}
</h2>
<h2>
{{ object.course.code }} {{ object.course.title }} - {{ object.course.section }}
</h2>
<ul>
<li>
Mode: {{ object.location.mode }}
</li>
<li>
Venue: {{ object.location.venue }}
</li>
</ul>
<button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit Activity
</button>
{% comment %}
<button
onclick=
"document.location='{{object.get_edit_url}}'"
>
Edit Activity
</button>
{% endcomment %}
{% endblock %}
widget_gitgud/widgetcalendar/templates/widgetcalendar/event-edit.html
0 → 100644
View file @
d5e56536
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Activity {% endblock %}
{% block content %}
<h1>
Edit Assignment
</h1>
<form
action=
""
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Activity"
>
</form>
{% endblock %}
widget_gitgud/widgetcalendar/urls.py
View file @
d5e56536
...
...
@@ -4,6 +4,7 @@ urlpatterns = [
path
(
''
,
index
,
name
=
'Calendar'
),
path
(
'events/<int:pk>/details/'
,
EventDetailView
.
as_view
(),
name
=
"event-detail"
),
path
(
'events/add/'
,
AddEventView
.
as_view
(),
name
=
"event-add"
),
path
(
'events/<int:pk>/edit/'
,
EditEventView
.
as_view
(),
name
=
"event-edit"
),
]
app_name
=
"widgetcalendar"
\ No newline at end of file
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