diff --git a/multigranja/apps/core/templates/base.html b/multigranja/apps/core/templates/base.html index 7161b8b..a6d146c 100644 --- a/multigranja/apps/core/templates/base.html +++ b/multigranja/apps/core/templates/base.html @@ -25,5 +25,8 @@ {% block content %}{% endblock %} + + + \ No newline at end of file diff --git a/multigranja/apps/core/templates/base_modal.html b/multigranja/apps/core/templates/base_modal.html new file mode 100644 index 0000000..4464d8f --- /dev/null +++ b/multigranja/apps/core/templates/base_modal.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/multigranja/apps/core/templates/confirmation_popup.html b/multigranja/apps/core/templates/confirmation_popup.html new file mode 100644 index 0000000..11464b6 --- /dev/null +++ b/multigranja/apps/core/templates/confirmation_popup.html @@ -0,0 +1,16 @@ +{% extends "base_modal.html" %} +{% load static %} + +{% block content %} +
+

Deseja mesmo realizar essa ação?

+ {% if description %} +

{{ description }}

+ {% endif %} +
+ {% csrf_token %} + + Não +
+
+{% endblock content %} \ No newline at end of file diff --git a/multigranja/apps/core/urls.py b/multigranja/apps/core/urls.py new file mode 100644 index 0000000..255ec1d --- /dev/null +++ b/multigranja/apps/core/urls.py @@ -0,0 +1,8 @@ +from django.urls import include, path +from . import views + +app_name = "core" + +urlpatterns = [ + path("null/", views.null_response, name="null"), +] \ No newline at end of file diff --git a/multigranja/apps/core/views.py b/multigranja/apps/core/views.py index 91ea44a..6f4a3fe 100644 --- a/multigranja/apps/core/views.py +++ b/multigranja/apps/core/views.py @@ -1,3 +1,4 @@ -from django.shortcuts import render +from django.http import HttpResponse -# Create your views here. +def null_response(request): + return HttpResponse('
') \ No newline at end of file diff --git a/multigranja/multigranja/urls.py b/multigranja/multigranja/urls.py index 7453de5..f18bce4 100644 --- a/multigranja/multigranja/urls.py +++ b/multigranja/multigranja/urls.py @@ -10,4 +10,5 @@ urlpatterns = [ path('', home), path('', include('entities.urls')), path('report/', include('report.urls')), + path("core/", include("core.urls")), ] \ No newline at end of file diff --git a/multigranja/static/css/layout/global.css b/multigranja/static/css/layout/global.css index 505f479..bd76d43 100644 --- a/multigranja/static/css/layout/global.css +++ b/multigranja/static/css/layout/global.css @@ -18,7 +18,7 @@ body { padding: 0 var(--space-md); overflow-y: auto; overflow-x: hidden; - z-index: 1000; + z-index: 150; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); } @@ -98,7 +98,7 @@ body.sidebar-collapsed .main-content { justify-content: space-between; align-items: center; padding: 0 var(--space-md); - z-index: 900; + z-index: 149; } #sidebar-toggle { @@ -148,4 +148,22 @@ body.sidebar-collapsed .main-content { padding: var(--space-lg); width: calc(100% - 250px); overflow-y: auto; +} + +/* BASE MODAL */ +.modal-base { + position: fixed; + inset: 0; + z-index: 200; + display: flex; + align-items: center; + justify-content: center; + background-color: rgba(0, 0, 0, 0.6); +} + +.modal-content { + background-color: var(--color-bg-light); + padding: var(--space-lg); + border-radius: var(--space-sm); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } \ No newline at end of file