Poder editar la direccion de un proyecto
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user