Commit c8626beb authored by Ysabella Panghulan's avatar Ysabella Panghulan

Merge branch 'dashboardv2'

parents be4f0767 0956f154
body {
height: 100vh;
background-color: #E9E3FE;
display: flex;
align-items: center;
justify-content: center;
}
.dashboard-content {
margin-top: auto;
padding: 2rem;
border-radius: 0.5rem;
background-color: white
}
\ No newline at end of file
...@@ -2,9 +2,19 @@ ...@@ -2,9 +2,19 @@
{% load static %} {% load static %}
{% block stylesheets %}
<link rel = "stylesheet" type = "text/css" href = "{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %}Add Widget User{% endblock %} {% block title %}Add Widget User{% endblock %}
{% block content %} {% block header %}
<h2>Add a new Widget user:</h2>
{% endblock %}
{% block body %}
{% block content %}
{{ form.non_field_errors }} {{ form.non_field_errors }}
{% for field in form %} {% for field in form %}
...@@ -18,12 +28,14 @@ ...@@ -18,12 +28,14 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<h1>Add a new Widget user:</h1> <div class = "form">
<form method = "POST"> <form method = "POST">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type = "submit" value = "Add Widget User"> <input type = "submit" value = "Add Widget User">
</form> </form>
</div>
{% endblock %}
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,18 +2,31 @@ ...@@ -2,18 +2,31 @@
{% load static %} {% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'dashboard/dashboard.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% endblock %}
{% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %} {% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %}
{% block content %} {% block body %}
<div class = "dashboard-content">
{% block content %}
<div class = "details">
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1> <h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1>
<h2> {{ object.department }} </h2> <h2> {{ object.department }} </h2>
<h2> {{ object.department.home_unit }} </h2> <h2> {{ object.department.home_unit }} </h2>
<form action = "./edit"> </div>
<input type = "submit" value = "Edit Widget User">
</form> {% endblock %}
<a href="{{object.get_absolute_url}}../edit" class="edit-btn"><i class="fa fa-edit"></i>Edit Widget User</a>
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,9 +2,19 @@ ...@@ -2,9 +2,19 @@
{% load static %} {% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %}Edit Widget User{% endblock %} {% block title %}Edit Widget User{% endblock %}
{% block content %} {% block header %}
<h2>Edit Widget User:</h2>
{% endblock %}
{% block body %}
{% block content %}
{{ form.non_field_errors }} {{ form.non_field_errors }}
{% for field in form %} {% for field in form %}
...@@ -18,12 +28,14 @@ ...@@ -18,12 +28,14 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<h1>Edit Widget User:</h1> <div class = "form">
<form method = "POST"> <form method = "POST">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type = "submit" value = "Save Changes to Widget User"> <input type = "submit" value = "Save Changes to Widget User">
</form> </form>
</div>
{% endblock %}
{% endblock %} {% endblock %}
\ 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