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,28 +2,40 @@ ...@@ -2,28 +2,40 @@
{% 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>
{{ form.non_field_errors }} {% endblock %}
{% for field in form %}
{% if field.errors %} {% block body %}
<p>{{ field.label }} has the following errors:</p>
<ul> {% block content %}
{% for error in field.errors %}
<li>{{ error }}</li> {{ form.non_field_errors }}
{% endfor %} {% for field in form %}
</ul> {% if field.errors %}
{% endif %} <p>{{ field.label }} has the following errors:</p>
{% endfor %} <ul>
{% for error in field.errors %}
<h1>Add a new Widget user:</h1> <li>{{ error }}</li>
{% endfor %}
<form method = "POST"> </ul>
{% csrf_token %} {% endif %}
{{ form.as_p }} {% endfor %}
<input type = "submit" value = "Add Widget User">
</form> <div class = "form">
<form method = "POST">
{% csrf_token %}
{{ form.as_p }}
<input type = "submit" value = "Add Widget User">
</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>
<h2> {{ object.department }} </h2>
<h2> {{ object.department.home_unit }} </h2>
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1> </div>
<h2> {{ object.department }} </h2> {% endblock %}
<h2> {{ object.department.home_unit }} </h2> <a href="{{object.get_absolute_url}}../edit" class="edit-btn"><i class="fa fa-edit"></i>Edit Widget User</a>
<form action = "./edit"> </div>
<input type = "submit" value = "Edit Widget User">
</form>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,28 +2,41 @@ ...@@ -2,28 +2,41 @@
{% 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 %}
{{ form.non_field_errors }} {% endblock %}
{% for field in form %} <h2>Edit Widget User:</h2>
{% if field.errors %}
<p>{{ field.label }} has the following errors:</p> {% block body %}
<ul>
{% for error in field.errors %} {% block content %}
<li>{{ error }}</li>
{% endfor %} {{ form.non_field_errors }}
</ul> {% for field in form %}
{% endif %} {% if field.errors %}
{% endfor %} <p>{{ field.label }} has the following errors:</p>
<ul>
<h1>Edit Widget User:</h1> {% for error in field.errors %}
<li>{{ error }}</li>
<form method = "POST"> {% endfor %}
{% csrf_token %} </ul>
{{ form.as_p }} {% endif %}
<input type = "submit" value = "Save Changes to Widget User"> {% endfor %}
</form>
<div class = "form">
<form method = "POST">
{% csrf_token %}
{{ form.as_p }}
<input type = "submit" value = "Save Changes to Widget User">
</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