Popup modale per inserimento nuova categoria
This commit is contained in:
parent
7d068838ea
commit
d120e5eadc
@ -7,17 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Content here -->
|
<!-- Content here -->
|
||||||
<form action="" method="POST">
|
<button class="btn btn-warning btn-detail open_modal_new" > Nuova Categoria </button>
|
||||||
@csrf
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="categoria" class="form-label">Categoria</label>
|
|
||||||
<input type="text" class="form-control" id="categoria" name="cat_name">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
@ -86,6 +76,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal fade" id="myModal_new" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<!-- FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
|
<form action="" method="POST">
|
||||||
|
@csrf
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="categoria" class="form-label">Categoria</label>
|
||||||
|
<input type="text" class="form-control" id="categoria" name="cat_name">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
</form>
|
||||||
|
<!-- FINE FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- /.col-lg-12 -->
|
<!-- /.col-lg-12 -->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
@ -109,6 +117,10 @@
|
|||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$(document).on('click','.open_modal_new',function(){
|
||||||
|
$('#myModal_new').modal('show');
|
||||||
|
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
Loading…
Reference in New Issue
Block a user