Commit 1f223763 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

final changes to front end

parent 80ce621b
......@@ -10,7 +10,7 @@ class Course(models.Model):
class Assignment(models.Model):
assignment_name = models.CharField(unique=True, default="", max_length=50,)
assignment_name = models.CharField("Name", unique=True, default="", max_length=50,)
description = models.TextField(default="")
perfect_score = models.IntegerField(default=100)
passing_score = models.IntegerField(default=80)
......
......@@ -36,7 +36,12 @@ div.content{
padding-right: 5%;
padding-bottom: 15px;
border-radius: 2px;
border-radius: 10px;
border-width: 9px;
border-style: outset;
border-color: rgb(138, 0, 0);
box-shadow: 0px 20px 40px 0px rgb(65, 2, 23);
}
li{
......@@ -81,3 +86,11 @@ button.buttonLink:hover{
button.buttonLink:active{
background-color: rgb(201, 226, 218);
}
label {
width: 180px;
}
textarea{
vertical-align: top;
}
\ No newline at end of file
......@@ -6,10 +6,10 @@
{% block content %}
<form id="addAssignment" method="post">
<b>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" id="submitButton" value="Add assignment">
</b>
</form>
{% endblock %}
......
......@@ -6,9 +6,10 @@
{% block content %}
<form id="editAssignment" method="post">
<b>
{% csrf_token %}
{{ form.as_p }}
</b>
</form>
{% endblock %}
......
{% extends 'base.html' %}
{% block webTitle %} Assignments {% endblock %}
{% block webTitle %} Widget's Assignments {% endblock %}
{% block pageTitle %} Assignments {% endblock %}
{% block pageTitle %} Welcome to Widget's assignments {% endblock %}
{% block content %}
<ul style='list-style-type:square;'>
......@@ -13,7 +13,7 @@
{% endblock %}
{% block otherButtons %}
<button class="buttonLink" onclick="window.location.href='add/';"> <b>New Assignments</b> </button><br><br>
<button class="buttonLink" onclick="window.location.href='add/';"> <b>New Assignment</b> </button><br><br>
<a class="miniLink" href="/dashboard"> Dashboard </a> <br>
<a class="miniLink" href="/announcementBoard"> Announcements </a> <br>
<a class="miniLink" href="/forum"> Forum </a> <br>
......
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