Commit f45179fa authored by Gabriel G. Garrero's avatar Gabriel G. Garrero

updated widgetuser-details, widget-user add, and widgetuser-edit in preparation for css

parent 5e1d1369
......@@ -2,9 +2,19 @@
{% load static %}
{% block stylesheets %}
<link rel = "stylesheet" type = "text/css" href = "{% static 'stylesheets/forms.css' %}">
{% 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 }}
{% for field in form %}
......@@ -18,12 +28,14 @@
{% endif %}
{% endfor %}
<h1>Add a new Widget user:</h1>
<div class = "form">
<form method = "POST">
{% csrf_token %}
{{ form.as_p }}
<input type = "submit" value = "Add Widget User">
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
......@@ -2,18 +2,31 @@
{% 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 content %}
{% block body %}
<div class = "dashboard-content">
{% block content %}
<div class = "details">
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1>
<h2> {{ object.department }} </h2>
<h2> {{ object.department.home_unit }} </h2>
<form action = "./edit">
<input type = "submit" value = "Edit Widget User">
</form>
</div>
{% endblock %}
<a href="{{object.get_absolute_url}}../edit" class="edit-btn"><i class="fa fa-edit"></i>Edit Widget User</a>
</div>
{% endblock %}
\ No newline at end of file
......@@ -2,9 +2,20 @@
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %}Edit Widget User{% endblock %}
{% block content %}
{% block header %}
{% endblock %}
<h2>Edit Widget User:</h2>
{% block body %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
......@@ -18,12 +29,14 @@
{% endif %}
{% endfor %}
<h1>Edit Widget User:</h1>
<div class = "form">
<form method = "POST">
{% csrf_token %}
{{ form.as_p }}
<input type = "submit" value = "Save Changes to Widget User">
</form>
</div>
{% 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