Commit d02e2cd2 authored by Anya Habana's avatar Anya Habana

Added css design elements for buttons

parent 7179931b
No preview for this file type
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
{% block content %} {% block content %}
<h1 class="homepage-heading">Add Widget User</h1> <h1 class="homepage-heading">Add Widget User</h1>
<form class="homepage-form" action="{% url 'homepage:newuser' %}" method="POST"> <form action="{% url 'homepage:newuser' %}" method="POST">
{% csrf_token %} {% csrf_token %}
{{ user_form }} {{ user_form.as_p }}
<button class="button" type="submit">Save New User</button> <button class="homepage-button" type="submit">Save New User</button>
</form> </form>
<button class="button" type="submit"><a href="/homepage">Back to Homepage</a></button> <button class="homepage-button" type="submit"><a href="/homepage">Back to Homepage</a></button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -19,10 +19,8 @@ ...@@ -19,10 +19,8 @@
<img src="{% static 'user3.jpeg' %}" class="homepage-image" alt="Bruno Mars"> <img src="{% static 'user3.jpeg' %}" class="homepage-image" alt="Bruno Mars">
{% endif %} {% endif %}
<ul> <p>ID: {{ widgetuser.id }}</p>
<p>ID: {{ widgetuser.id }}</p> <p>Email: {{ widgetuser.email }}</p>
<p>Email: {{ widgetuser.email }}</p> <p>Department Name: {{ widgetuser.department.dept_name }}</p>
<p>Department Name: {{ widgetuser.department.dept_name }}</p> <p>Home Unit: {{ widgetuser.department.home_unit }}</p>
<p>Home Unit: {{ widgetuser.department.home_unit }}</p>
</ul>
{% endblock %} {% endblock %}
...@@ -17,6 +17,12 @@ ...@@ -17,6 +17,12 @@
font-size: 24px; font-size: 24px;
} }
.announcement-image { .homepage-image {
width: 20%; width: 20%;
}
.homepage-button {
padding: 10px 16px;
display: inline-block;
text-decoration: none;
} }
\ 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