Added filter functionality and combined both base.html
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{% extends 'common/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Change Password</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Change Password</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends 'employee-base.html' %}
|
||||
{% extends 'common/base.html' %}
|
||||
{% block content %}
|
||||
|
||||
<form method="post">
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block filter %}
|
||||
<form id="filterForm" method="get" style="display: inline;">
|
||||
<input type="hidden" name="filter" id="filterInput" value="{{ request.GET.filter|default:'active' }}">
|
||||
<button type="button" class="btn btn-primary" id="activeBtn">Active</button>
|
||||
<button type="button" class="btn btn-primary" id="allBtn">All</button>
|
||||
</form>
|
||||
{% endblock filter %}
|
||||
|
||||
|
||||
{% block table_header %}
|
||||
<th>Username</th>
|
||||
<th>User Type</th>
|
||||
|
||||
Reference in New Issue
Block a user