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 %} {% block header %} Add a new activity: {% endblock %}
<title>Add Activity</title>
Add a new activity:
<form method="post">
{% block content %}
<form action="" method=POST>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }}
<a href="/Events/{{Event.pk}}/details">
<button type="submit">Save New Activity</button>
</a>
{{ form.as_p }}
</form> <input type="submit" value="Save New Assignment">
{% endblock content %} </form>
\ No newline at end of file {% endblock %}
{% extends "base.html" %} {% extends 'base.html' %}
{% load static %} {% block title %} {{ object.name }} {% endblock %}
{% block content %} {% block header %} {{ object.name }} {% endblock %}
<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>
<br><br> {% block content %}
<a href="edit"> <h2>{{object.activity}}</h2>
<input type="button" value="Edit Activity"> <p>
</a> Date and Time: {{object.target_datetime|date:"m/d/y, h:i A"}} <br>
{% endblock content %} Estimated Hours: {{object.estimated_hours}} <br>
\ No newline at end of file {{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 %} {% block header %} Edit Activity: {% endblock %}
<title>Edit Activity</title>
Edit Activity:<br>
<form method="post"> {% block content %}
<form action="" method=POST>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Save New Activity" /> <input type="submit" value="Save New Activity">
</a> </form>
</form> {% endblock %}
{% endblock content %}
\ No newline at end of file
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