From b747915003e2d15fce8c2ff91b22e31865f57eda Mon Sep 17 00:00:00 2001 From: viniciusdandrade Date: Thu, 6 Jun 2024 19:35:56 -0300 Subject: [PATCH 1/3] fixing models spelling --- app_client/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_client/models.py b/app_client/models.py index 5a03e36..5d4ea0d 100644 --- a/app_client/models.py +++ b/app_client/models.py @@ -7,7 +7,7 @@ class OrderRequest(models.Model): STATUS_CHOICES = [ ('EM_ANALISE', 'EM ANÁLISE'), ('AGENDADO', 'AGENDADO'), - ('AGUARDANDO_ORCAMENTO', 'ORÇAMENTO PENDENTE'), + ('AGUARDANDO_ORCAMENTO', 'AGUARDANDO ORÇAMENTO'), ('AGUARDANDO_CONFIRMACAO', 'AGUARDANDO CONFIRMAÇÃO'), ('ACEITO', 'ACEITO'), ('RECUSADO', 'RECUSADO'), From 12d1d5be5741388d5109dfe13e3911e1c378da06 Mon Sep 17 00:00:00 2001 From: Ana Date: Thu, 6 Jun 2024 20:15:22 -0300 Subject: [PATCH 2/3] changing client view and delete buttons style --- app_client/models.py | 2 +- .../static/css/app_client/delete-order.css | 6 +- .../static/css/app_client/reopen-order.css | 6 +- app_client/static/css/app_client/styles.css | 20 ++++ .../RequestOrder/delete-service.html | 13 +- app_client/templates/RequestOrder/orders.html | 8 +- .../RequestOrder/reopen-service.html | 3 +- .../templates/RequestOrder/vieworder.html | 1 - cypress/e2e/ConvertOrderRequest.cy.js | 6 +- cypress/e2e/ManagingMyServices.cy.js | 2 +- cypress/e2e/ManagingOrder.cy.js | 6 +- cypress/e2e/ReopeningService.cy.js | 112 +++++++++--------- cypress/e2e/StatusMonitoring.cy.js | 4 +- cypress/e2e/solicitationManagement.cy.js | 2 +- 14 files changed, 115 insertions(+), 76 deletions(-) diff --git a/app_client/models.py b/app_client/models.py index 5d4ea0d..154275a 100644 --- a/app_client/models.py +++ b/app_client/models.py @@ -39,7 +39,7 @@ class OrderRequest(models.Model): def reopen_time(self): actual_time = datetime.now().date() - days_difference = (actual_time - self.closedAt.date()).days + days_difference = (actual_time - self.closedAt).days if days_difference > 30: self.isReopen = True diff --git a/app_client/static/css/app_client/delete-order.css b/app_client/static/css/app_client/delete-order.css index 9cfa2e9..e8cd1ab 100644 --- a/app_client/static/css/app_client/delete-order.css +++ b/app_client/static/css/app_client/delete-order.css @@ -123,4 +123,8 @@ .deleteContent .actions button:first-child{ background-color: var(--gray-600); -} \ No newline at end of file +} + +a { + color: inherit; +} diff --git a/app_client/static/css/app_client/reopen-order.css b/app_client/static/css/app_client/reopen-order.css index 3966ab9..5224ad2 100644 --- a/app_client/static/css/app_client/reopen-order.css +++ b/app_client/static/css/app_client/reopen-order.css @@ -123,4 +123,8 @@ .reopenContent .actions button:first-child{ background-color: var(--gray-600); -} \ No newline at end of file +} + +a { + color: inherit; +} diff --git a/app_client/static/css/app_client/styles.css b/app_client/static/css/app_client/styles.css index adc26db..46f6229 100644 --- a/app_client/static/css/app_client/styles.css +++ b/app_client/static/css/app_client/styles.css @@ -179,4 +179,24 @@ tbody td:first-child div { margin-top: 10px; padding: 3px; border-radius: 4px; +} + +.view button, .delete button { + padding: 8px 16px; + border: none; + background-color: var(--blue-500); + color: var(--white); + font-weight: 600; + border-radius: 4px; + float: right; + margin-top: 32px; + transition: all .3s; +} + +.view, .delete button:hover { + filter: brightness(0.9); +} + +.delete button { + background-color: var(--red-600); } \ No newline at end of file diff --git a/app_client/templates/RequestOrder/delete-service.html b/app_client/templates/RequestOrder/delete-service.html index 6a302e7..3e5ee49 100644 --- a/app_client/templates/RequestOrder/delete-service.html +++ b/app_client/templates/RequestOrder/delete-service.html @@ -25,7 +25,18 @@

Solicitação N {{order.id}}°


{% csrf_token %}
- Cancelar + + + + +
diff --git a/app_client/templates/RequestOrder/orders.html b/app_client/templates/RequestOrder/orders.html index 5c39e5d..6fdd236 100644 --- a/app_client/templates/RequestOrder/orders.html +++ b/app_client/templates/RequestOrder/orders.html @@ -85,8 +85,8 @@

Suas solicitações

- {% endif %} - - + + @@ -102,8 +102,8 @@

Suas solicitações

{% if order.closedAt or order.status == 'CANELADO'%} - - + + {% endif %} diff --git a/app_client/templates/RequestOrder/reopen-service.html b/app_client/templates/RequestOrder/reopen-service.html index a13c9d6..bbb3c80 100644 --- a/app_client/templates/RequestOrder/reopen-service.html +++ b/app_client/templates/RequestOrder/reopen-service.html @@ -57,10 +57,11 @@

Reabrir Solicitação N {{order.id}}°


{% csrf_token %}
- {% comment %} Cancelar {% endcomment %} + +