Update design of form to add user

parent a3d5a0e1
...@@ -14,9 +14,11 @@ ...@@ -14,9 +14,11 @@
<a href="{% url 'assignments:indexAssignments' %}">Assignments</a> <a href="{% url 'assignments:indexAssignments' %}">Assignments</a>
</nav> </nav>
<div class="flex-container">
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Submit"> <input type="submit" value="Submit">
</form> </form>
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -206,4 +206,53 @@ button { ...@@ -206,4 +206,53 @@ button {
button:hover { button:hover {
color: #e1bb54; color: #e1bb54;
cursor: pointer;
}
form {
display: flex;
flex-flow: nowrap column;
justify-content: center;
padding: 30px 50px;
color: white;
background-color: #121212;
border-radius: 25px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
form > p {
margin: 7px 0;
}
input, select {
display: inline-block;
border-radius: 5px;
padding: 7px;
border: 0;
font-family: 'Inter';
}
label {
float: left;
clear: left;
width: 100px;
text-align: right;
margin-right: 15px;
}
input[type="file"]{
padding: 0;
border-radius: 0;
}
input[type="Submit"]{
width: 100px;
background-color: #e1bb54;
margin: 30px auto 0 auto;
}
input[type="Submit"]:hover{
background-color: #d38a2a;
cursor: pointer;
} }
\ 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