Commit 80ce621b authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

front end almost done

parent 50056418
...@@ -52,23 +52,30 @@ li:hover{ ...@@ -52,23 +52,30 @@ li:hover{
} }
div.navButtons{ div.navButtons{
background-color: rgb(255, 248, 238);
border-radius: 5px; border-radius: 5px;
border-width: 20px; border-width: 12px;
border-style: ridge; border-style: ridge;
border-color: rgb(167, 16, 66) ; border-color: rgb(167, 16, 66) ;
text-align: left; text-align: left;
margin-right: 50%; margin-right: 50%;
padding-left: 15px; padding: 15px;
} }
button.buttonLink{ button.buttonLink{
background-color: aquamarine; padding: 15px;
font-size: 12pt;
scale: 100%;
background-color: rgb(5, 233, 157);
} }
button.buttonLink:hover{ button.buttonLink:hover{
background-color: rgb(6, 201, 136); background-color: aquamarine;
scale: 105%;
transition: all 100ms;
} }
button.buttonLink:active{ button.buttonLink:active{
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{% block pageTitle %} Add a new assignment {% endblock %} {% block pageTitle %} Add a new assignment {% endblock %}
{% block content %} {% block content %}
<form id="editBook" method="post"> <form id="addAssignment" method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
{% endblock %} {% endblock %}
{% block otherButtons %} {% block otherButtons %}
<button class="buttonLink" form="addAssignment" onclick="window.location.href='assignments/';"> <b> Add assignment </b> </button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
{% block pageTitle %} Edit Assignment {% endblock %} {% block pageTitle %} Edit Assignment {% endblock %}
{% block content %} {% block content %}
<form id="editBook" method="post"> <form id="editAssignment" method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" id="submitButton" value="Edit assignment">
</form> </form>
{% endblock %} {% endblock %}
{% block otherButtons %} {% block otherButtons %}
<button class="buttonLink" form="editAssignment" onclick="window.location.href='assignments/';"> <b>Save changes to assignment</b> </button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -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> <button class="buttonLink" onclick="window.location.href='add/';"> <b>New Assignments</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>
......
...@@ -20,7 +20,7 @@ class AssignmentsDetailView(DetailView): ...@@ -20,7 +20,7 @@ class AssignmentsDetailView(DetailView):
class AssignmentsUpdateView(UpdateView): class AssignmentsUpdateView(UpdateView):
model = Assignment model = Assignment
fields = "__all__" fields = ["assignment_name","description","course","perfect_score" ]
template_name = "templates/assignment-edit.html" template_name = "templates/assignment-edit.html"
success_url = "../details" success_url = "../details"
...@@ -28,7 +28,7 @@ class AssignmentsUpdateView(UpdateView): ...@@ -28,7 +28,7 @@ class AssignmentsUpdateView(UpdateView):
class AssignmentsCreateView(CreateView): class AssignmentsCreateView(CreateView):
model = Assignment model = Assignment
fields = "__all__" fields = ["assignment_name","description","course","perfect_score" ]
template_name = "templates/assignment-add.html" template_name = "templates/assignment-add.html"
def get_success_url(self): def get_success_url(self):
......
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