diff --git a/application/hrm_mgnt/templates/emp_list_2.html b/application/hrm_mgnt/templates/emp_list_2.html new file mode 100644 index 0000000..30bbf15 --- /dev/null +++ b/application/hrm_mgnt/templates/emp_list_2.html @@ -0,0 +1,5 @@ +{% extends 'items_list.html' %} + +{% block item_list_custom_content %} + +{% endblock %} \ No newline at end of file diff --git a/application/hrm_mgnt/views.py b/application/hrm_mgnt/views.py index b50fbd7..7b6bcdf 100644 --- a/application/hrm_mgnt/views.py +++ b/application/hrm_mgnt/views.py @@ -145,9 +145,10 @@ def emp_list_view(request): "add_url": reverse("emp_list_add"), # 删除对象提交链接 "delete_url": reverse("emp_list_delete"), + "add_button": True, } - return render(request, 'emp_list.html', context) + return render(request, 'emp_list_2.html', context) @login_required diff --git a/templates/items_list.html b/templates/items_list.html index 2674d31..eeb8e09 100644 --- a/templates/items_list.html +++ b/templates/items_list.html @@ -198,6 +198,9 @@ {% include 'modify_record_modal.html' with modify_records_url=modify_records_url %} + {% block item_list_custom_content %} + {% endblock %} +