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
e9de1bf0
Commit
e9de1bf0
authored
May 15, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplifiied templates with forms and url requests
parent
2922be19
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
34 deletions
+32
-34
calendar.html
...t_aguandhischipmunks/calendar_app/templates/calendar.html
+10
-10
event-add.html
..._aguandhischipmunks/calendar_app/templates/event-add.html
+5
-4
event-details.html
...andhischipmunks/calendar_app/templates/event-details.html
+13
-17
event-edit.html
...aguandhischipmunks/calendar_app/templates/event-edit.html
+4
-3
No files found.
widget_aguandhischipmunks/calendar_app/templates/calendar.html
View file @
e9de1bf0
{% extends 'base.html' %}
{% load static %}
{% block title %}Widget's Calendar of Activities{% endblock %}
{% block content %}
...
...
@@ -6,19 +7,18 @@
{% block header %}
<h1>
Widget's Calendar of Activities
</h1>
{% endblock %}
{% for event in events %}
<a
href=
"{{event.
id}}>/details"
>
{{event.activ
ty}}
</a><br>
<a
href=
"{{event.
get_absolute_url}}"
>
{{event.activi
ty}}
</a><br>
{% endfor %}
<button
type=
"button"
onclick=
"window.location.href='/calendar/events/add/'"
>
<a
>
New Activity
</a>
</button>
<br>
<form
action=
"events/add"
>
<button
type=
"submit"
>
New Activity
</button>
</form>
<br>
<a
href=
"
dashboard/
"
>
Dashboard
</a><br>
<a
href=
"
announcements/
"
>
Announcements
</a><br>
<a
href=
"
forum/
"
>
Forum
</a><br>
<a
href=
"
assignments/
"
>
Assignments
</a><br>
<a
href=
"
/dashboard
"
>
Dashboard
</a><br>
<a
href=
"
/announcements
"
>
Announcements
</a><br>
<a
href=
"
/forum
"
>
Forum
</a><br>
<a
href=
"
/assignments
"
>
Assignments
</a><br>
{% endblock %}
\ No newline at end of file
widget_aguandhischipmunks/calendar_app/templates/event-add.html
View file @
e9de1bf0
{% extends 'base.html'%}
{% load static %}
{% block title %}
Add
a new
Activity
Add Activity
{% endblock %}
{% block content %}
<p>
Add a new a
ssignment
:
</p>
<form
method=
"
post
"
>
<p>
Add a new a
ctivity
:
</p>
<form
method=
"
POST
"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Save New Activity
</button>
</form>
</form>
{% endblock %}
widget_aguandhischipmunks/calendar_app/templates/event-details.html
View file @
e9de1bf0
{% extends 'base.html'%}
{% block title %} {{
even
t.activity}} {% endblock %}
{% block title %} {{
objec
t.activity}} {% endblock %}
{% block content %}
{% if assignment %}
<h1>
{{assignment.name}}
</h1>
<ul>
<p>
Date and Time: {{event.target_datetime|date:'m/d/Y, 'h:i A''}}
</p><br>
<p>
Estimated Hours: {{event.target_datetime}}
</p><br>
<p>
{{event.course}}
</p><br>
<p>
Mode: {{location.mode}}
</p><br>
<p>
Venue: {{location.venue}}
</p><br>
</ul>
{% else %}
<p>
No Available Books.
</p>
{% endif %}
<h1>
{{object.activity}}
</h1>
<ul>
<li
><button
type=
"button"
onclick=
"window.location.href='/calendar/{{event.pk}}/edit'"
>
Edit Event
</button></li>
</ul>
<p>
Date and Time: {{object.target_datetime|date:'m/d/Y, h:i A'}}
</p>
<p>
Estimated Hours: {{object.estimated_hours}}
</p>
<p>
{{object.course}}
</p>
<p>
Mode: {{object.location.mode}}
</p>
<p>
Venue: {{object.location.venue}}
</p>
</ul>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Activity
</button>
</form>
{% endblock %}
widget_aguandhischipmunks/calendar_app/templates/event-edit.html
View file @
e9de1bf0
{% extends 'base.html'%}
{% load static %}
{% block title %}
Edit Activity
{% endblock %}
{% block content %}
<p>
Edit Activity:
</p>
>
<form
method=
"
post
"
>
<p>
Edit Activity:
</p>
<form
method=
"
POST
"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Save New Activity
</button>
</form>
{% endblock %}
{% endblock %}
\ 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