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): ...@@ -10,7 +10,7 @@ class Course(models.Model):
class Assignment(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="") description = models.TextField(default="")
perfect_score = models.IntegerField(default=100) perfect_score = models.IntegerField(default=100)
passing_score = models.IntegerField(default=80) passing_score = models.IntegerField(default=80)
......
...@@ -36,7 +36,12 @@ div.content{ ...@@ -36,7 +36,12 @@ div.content{
padding-right: 5%; padding-right: 5%;
padding-bottom: 15px; 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{ li{
...@@ -80,4 +85,12 @@ button.buttonLink:hover{ ...@@ -80,4 +85,12 @@ button.buttonLink:hover{
button.buttonLink:active{ button.buttonLink:active{
background-color: rgb(201, 226, 218); background-color: rgb(201, 226, 218);
}
label {
width: 180px;
}
textarea{
vertical-align: top;
} }
\ No newline at end of file
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
{% block content %} {% block content %}
<form id="addAssignment" method="post"> <form id="addAssignment" method="post">
<b>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
</b>
<input type="submit" id="submitButton" value="Add assignment">
</form> </form>
{% endblock %} {% endblock %}
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
{% block content %} {% block content %}
<form id="editAssignment" method="post"> <form id="editAssignment" method="post">
<b>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
</b>
</form> </form>
{% endblock %} {% endblock %}
......
{% extends 'base.html' %} {% 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 %} {% block content %}
<ul style='list-style-type:square;'> <ul style='list-style-type:square;'>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% endblock %} {% endblock %}
{% block otherButtons %} {% 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="/dashboard"> Dashboard </a> <br>
<a class="miniLink" href="/announcementBoard"> Announcements </a> <br> <a class="miniLink" href="/announcementBoard"> Announcements </a> <br>
<a class="miniLink" href="/forum"> Forum </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