Skip to content

Commit

Permalink
fix: Fixing route name
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Jan 18, 2025
1 parent 0b8b443 commit 788db9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Controller/ClientesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @author Rogerio Lino <[email protected]>
*/
#[Route("/clientes", name: "mangati_scheduling_clientes_")]
#[Route("/clientes", name: "novosga_scheduling_clientes_")]
class ClientesController extends AbstractController
{
#[Route("/autocomplete", name: "autocomplete", methods: ["GET"])]
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/views/default/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
<div id="clienteFormModal" class="modal modal-lg fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<form id="clienteForm" action="{{ path('mangati_scheduling_clientes_form') }}" method="post">
<form id="clienteForm" action="{{ path('novosga_scheduling_clientes_form') }}" method="post">
<div class="modal-header">
<h5 class="modal-title">Novo cliente</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
{{ render(path('mangati_scheduling_clientes_form')) }}
{{ render(path('novosga_scheduling_clientes_form')) }}
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">
Expand Down Expand Up @@ -115,7 +115,7 @@
labelField: 'value',
searchField: 'value',
load: function(query, callback) {
var url = '{{ path("mangati_scheduling_clientes_autocomplete") }}?q=' + encodeURIComponent(query);
var url = '{{ path("novosga_scheduling_clientes_autocomplete") }}?q=' + encodeURIComponent(query);
fetch(url)
.then(response => response.json())
.then(json => {
Expand Down

0 comments on commit 788db9e

Please sign in to comment.