Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
fd2e88c0
Commit
fd2e88c0
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the HTML templates for Calendar to use CSS
parent
3a43d794
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
46 deletions
+67
-46
calendar.html
...y/widget_Calendar/templates/widget_Calendar/calendar.html
+31
-0
event-add.html
.../widget_Calendar/templates/widget_Calendar/event-add.html
+10
-17
event-details.html
...get_Calendar/templates/widget_Calendar/event-details.html
+16
-16
event-edit.html
...widget_Calendar/templates/widget_Calendar/event-edit.html
+10
-13
No files found.
widget_robo_mommy/widget_Calendar/templates/widget_Calendar/calendar.html
0 → 100644
View file @
fd2e88c0
{% extends 'base.html' %}
{% block title %} Widget's Calendar of Activities {% endblock %}
{% block header %} Widget's Calendar of Activities {% endblock %}
{% block content %}
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for event in events %}
<a
href=
"events/{{ event.pk }}/details/"
class=
"item"
>
{{ event.activity }}
</a><br>
{% endfor %}
<br>
<li>
<a
href=
"events/add/"
class=
"item"
>
New Activity
</a>
</li>
</ul>
</div>
{% endblock %}
{% block navbar %}
<div
id =
"navbar"
>
<a
href =
"/dashboard/"
>
Dashboard
</a>
<a
href=
"/announcements/"
>
Announcements
</a>
<a
href =
"/forum/"
>
Forum
</a>
<a
href =
"/assignments/"
>
Assignments
</a>
</div>
{% endblock %}
widget_robo_mommy/widget_Calendar/templates/widget_Calendar/event-add.html
View file @
fd2e88c0
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{%
load static
%}
{%
block title %} Add Activity {% endblock
%}
{% block content %}
<title>
Add Activity
</title>
Add a new activity:
<form
method=
"post"
>
{% block header %} Add a new activity: {% endblock %}
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<a
href=
"/Events/{{Event.pk}}/details"
>
<button
type=
"submit"
>
Save New Activity
</button>
</a>
{{ form.as_p }}
</form>
{% endblock content %}
\ No newline at end of file
<input
type=
"submit"
value=
"Save New Assignment"
>
</form>
{% endblock %}
widget_robo_mommy/widget_Calendar/templates/widget_Calendar/event-details.html
View file @
fd2e88c0
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{%
load static
%}
{%
block title %} {{ object.name }} {% endblock
%}
{% block content %}
<title>
{{object.activity}}
</title>
<h2>
{{object.activity}}
</h2>
<br>
Date and Time: {{object.target_datetime|date:"m/d/y, h:i A"}}
<br>
<br>
Estimated Hours: {{object.estimated_hours}}
<br>
<br>
{{object.course.code}} {{object.course.title}} - {{object.course.section}}
<br>
<br>
Mode: {{object.location.mode}}
<br>
<br>
Venue: {{object.location.venue}}
<br>
{% block header %} {{ object.name }} {% endblock %}
<br><br>
<a
href=
"edit"
>
<input
type=
"button"
value=
"Edit Activity"
>
</a>
{% endblock content %}
\ No newline at end of file
{% block content %}
<h2>
{{object.activity}}
</h2>
<p>
Date and Time: {{object.target_datetime|date:"m/d/y, h:i A"}}
<br>
Estimated Hours: {{object.estimated_hours}}
<br>
{{object.course.code}} {{object.course.title}} - {{object.course.section}}
<br>
Mode: {{object.location.mode}}
<br>
Venue: {{object.location.venue}}
<br>
</p>
<li>
<a
href =
"/calendar/events/{{ object.pk }}/edit/"
class=
"item"
>
Edit Activity
</a>
</li>
{% endblock %}
widget_robo_mommy/widget_Calendar/templates/widget_Calendar/event-edit.html
View file @
fd2e88c0
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{%
load static
%}
{%
block title %} Edit Activity {% endblock
%}
{% block content %}
<title>
Edit Activity
</title>
Edit Activity:
<br>
{% block header %} Edit Activity: {% endblock %}
<form
method=
"post"
>
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save New Activity"
/>
</a>
</form>
{% endblock content %}
\ No newline at end of file
<input
type=
"submit"
value=
"Save New Activity"
>
</form>
{% endblock %}
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