Poder editar la direccion de un proyecto

This commit is contained in:
Juan Pablo Vial
2025-02-24 18:15:16 -03:00
parent 894d09ea6f
commit c1528d667a
6 changed files with 252 additions and 3 deletions

View File

@ -15,7 +15,7 @@
<table class="ui striped table">
<tr>
<td>Dirección</td>
<td>{{$proyecto->direccion()}}</td>
<td>{{$proyecto->direccion()}} <a href="#" id="edit_direccion_button"><i class="small edit icon"></i></a></td>
</tr>
<tr>
<td>Inmobiliaria</td>
@ -137,6 +137,7 @@
</div>
@endsection
@include('proyectos.show.edit_direccion')
@include('layout.body.scripts.chartjs')
@push('page_scripts')
@ -485,6 +486,11 @@
ventas.setup({id_ventas: '#ventas', id_stock: '#stock', id_proyeccion: '#proyeccion',
id_chart_general: '#chart_venta_general', id_chart_tipologias: '#chart_venta_tipologia',
id_chart_velocidad: '#chart_venta_velocidad'})
document.getElementById('edit_direccion_button').addEventListener('click', event => {
event.preventDefault()
$('#edit_direccion_modal').modal('show')
})
})
</script>
@endpush