Edited the HTML templates for Calendar to use CSS

parent 3a43d794
{% 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/announcements/">Announcements</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/assignments/">Assignments</a>
</div>
{% endblock %}
{% 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">
{% csrf_token %}
{{ form.as_p }}
{% block header %} Add a new activity: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
<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 %}
{% 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 %}
{% extends "base.html" %}
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Activity {% endblock %}
{% block content %}
<title>Edit Activity</title>
{% block header %} Edit Activity: {% endblock %}
Edit Activity:<br>
{% block content %}
<form action="" method=POST>
{% csrf_token %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
{{ 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 %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment