Commit 21eac579 authored by Caryn Lopez-Go's avatar Caryn Lopez-Go

added css formatting

parent 420da923
body {
height: 100vh;
background-color: #E9E3FE;
display: flex;
align-items: center;
justify-content: center;
}
.event-content {
margin-top: auto;
padding: 2rem;
border-radius: 0.5rem;
background-color: white
}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %}Add Assignment{% endblock %} {% block title %}Add Assignment{% endblock %}
{% block header %}Add a new assignment:{% endblock %} {% block header %}<h1>Add a new assignment:</h1>{% endblock %}
{% block content %} {% block body %}
<form method="POST"> {% block content %}
{% csrf_token %} <div class="form">
{{ form.as_p }} <form method="POST">
<input type="SUBMIT" value="Save New Assignment"> {% csrf_token %}
</form> {{ form }}
<input type="SUBMIT" value="Save New Assignment">
</form>
</div>
{% endblock %}
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'assignments/assignments.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% endblock %}
{% block title %}{{ assignment.name }}{% endblock %} {% block title %}{{ assignment.name }}{% endblock %}
{% block heading %}{{ assignment.name }}{% endblock %} {% block heading %}<h1>{{ assignment.name }}</h1>{% endblock %}
{% block content %} {% block body %}
<p> <div class="assignments-content">
{% block content %}
<div class="details">
<h4>
{{ assignment.course.code }} {{ assignment.course.title }} - {{ assignment.course.section }}<br> {{ assignment.course.code }} {{ assignment.course.title }} - {{ assignment.course.section }}<br>
Description: {{ assignment.description }}<br> Description: {{ assignment.description }}<br>
Perfert Score: {{ assignment.perfect_score }}<br> Perfert Score: {{ assignment.perfect_score }}<br>
Passing Score: {{ assignment.passing_score }} Passing Score: {{ assignment.passing_score }}
</p> </h4>
<a href="{% url 'assignments:assignment-edit' assignment.id %}"> <a href="{% url 'assignments:assignment-edit' assignment.id %}" class="edit-btn"><i class="fa fa-edit"></i>Edit Assignment</a>
<button>Edit Assignment</button> </div>
</a><br> {% endblock %}
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %}Edit Assignment{% endblock %} {% block title %}Edit Assignment{% endblock %}
{% block header %}Edit Assignment:{% endblock %} {% block header %}<h1>Edit Assignment:</h1>{% endblock %}
{% block content %} {% block body %}
<form method="POST"> {% block content %}
{% csrf_token %} <div class="form">
{{ form.as_p }} <form method="POST" action="">
<input type="SUBMIT" value="Save Changes to Assignment"> {% csrf_token %}
</form> {{ form }}
<input type="SUBMIT" value="Save Changes to Assignment">
</form>
</div>
{% endblock %}
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}Widget's Assignments{% endblock %}
{% block heading %}Welcome to Widget's Assignments{% endblock %}
{% block content %}
<ul>
{% for assignment in assignments %}
<li>
<a href="{ assignment.get_absolute_url }"></a>
</li>
{% endfor %}
<a href="{% url 'add-assignment' assignment.id %}">
<button>{{ assignment.title }}</button>
</a><br>
</ul>
<a href="{% url 'dashboard:dashboard' %}">Dashboard</a><br>
<a href="{% url 'announcements:announcements' %}">Announcements</a><br>
<a href="{% url 'forum:forum' %}">Forum</a><br>
<a href="{% url 'calendar:calendar' %}">Calendar</a>
{% endblock %}
\ No newline at end of file
...@@ -35,14 +35,17 @@ ALLOWED_HOSTS = [] ...@@ -35,14 +35,17 @@ ALLOWED_HOSTS = []
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'widget_calendar.apps.WidgetCalendarConfig',
'assignments.apps.AssignmentsConfig', 'assignments.apps.AssignmentsConfig',
'forum.apps.ForumConfig',
'announcementboard.apps.AnnouncementboardConfig',
'dashboard.apps.DashboardConfig',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django_rename_app',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
...@@ -60,7 +63,7 @@ ROOT_URLCONF = 'widget_princessgabi.urls' ...@@ -60,7 +63,7 @@ ROOT_URLCONF = 'widget_princessgabi.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR), 'templates'],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
...@@ -124,7 +127,10 @@ USE_TZ = True ...@@ -124,7 +127,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATICFILES_DIRS = [
BASE_DIR / "static",
'widget_calendar/static/widget_calendar',
]
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
......
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