designed all htmls,hyperlinks and buttons all working

parent f44227cf
{% 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
{% 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 %}
{% 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 %}
{% 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 %}
......@@ -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
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