revisione del popup modale per Categoria
This commit is contained in:
parent
62bf66f50e
commit
3a98fd7077
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,3 +17,5 @@ yarn-error.log
|
|||||||
*.sql
|
*.sql
|
||||||
/.idea
|
/.idea
|
||||||
/.vscode
|
/.vscode
|
||||||
|
resources/views/tmp/*
|
||||||
|
|
||||||
|
@ -63,10 +63,10 @@
|
|||||||
|
|
||||||
@section('script')
|
@section('script')
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#automobili').DataTable({
|
$('#automobili').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -5,96 +5,109 @@
|
|||||||
<h1 class="page-header">Lista categorie</h1>
|
<h1 class="page-header">Lista categorie</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Content here -->
|
<!-- Content here -->
|
||||||
<button class="btn btn-warning btn-detail open_modal_new" > Nuova Categoria </button>
|
<button class="btn btn-warning btn-detail open_modal_new">Nuova
|
||||||
<div class="row">
|
Categoria</button>
|
||||||
<div class="col-lg-12">
|
<div class="row">
|
||||||
<div class="panel panel-default">
|
<div class="col-lg-12">
|
||||||
<div class="panel-heading">
|
<div class="panel panel-default">
|
||||||
Lista delle categorie
|
<div class="panel-heading">Lista delle categorie</div>
|
||||||
</div>
|
<div class="panel-body">
|
||||||
<div class="panel-body">
|
<div class="table-responsive">
|
||||||
<div class="table-responsive">
|
<table class="table table-striped table-bordered table-hover"
|
||||||
<table class="table table-striped table-bordered table-hover" id="categorie">
|
id="categorie">
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Categoria</th>
|
<th>Categoria</th>
|
||||||
<th>Azione</th>
|
<th>Azione</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($categorie as $categoria)
|
@foreach($categorie as $categoria)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="movimenti/report/movimentibycat?cat={{ $categoria->id }}">{{ $categoria->cat_name; }}</a></td>
|
<td><a
|
||||||
<td>
|
href="movimenti/report/movimentibycat?cat={{ $categoria->id }}">{{
|
||||||
<button class="btn btn-warning btn-detail open_modal" value="{{$categoria->id}}">Edit</button>
|
$categoria->cat_name; }}</a></td>
|
||||||
<a class="btn btn-danger" href="/admin/catdelete?id={{ $categoria->id; }}"><i class="fa fa-trash-o fa-fw"></i></a>
|
<td>
|
||||||
</td>
|
<button class="btn btn-warning btn-detail open_modal"
|
||||||
</tr>
|
value="{{$categoria->id}}">Edit</button> <a
|
||||||
@endforeach
|
class="btn btn-danger"
|
||||||
</tbody>
|
href="/admin/catdelete?id={{ $categoria->id; }}"><i
|
||||||
|
class="fa fa-trash-o fa-fw"></i></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h1 class="page-header">Categorie</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">Modifica categorie</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<form action="catmodify" method="POST">
|
|
||||||
|
|
||||||
@csrf
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="H_cat_cat_name" class="form-label">Categoria</label> <input
|
|
||||||
type="text" class="form-control" id="H_cat_cat_name" size="50"
|
|
||||||
name="cat_name" value="">
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="id" id="H_cat_id" >
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
|
||||||
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal fade" id="myModal_new" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
<!-- MODAL MODIFICA -->
|
||||||
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
|
||||||
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<!-- FORM INSERIMENTO NUOVA CATEGORIA -->
|
<div class="modal-header">
|
||||||
<form action="" method="POST">
|
<h5 class="modal-title">Modifica Categoria</h5>
|
||||||
@csrf
|
</div>
|
||||||
<div class="mb-3">
|
<div class="modal-body">
|
||||||
<label for="categoria" class="form-label">Categoria</label>
|
<div class="row">
|
||||||
<input type="text" class="form-control" id="categoria" name="cat_name">
|
<div class="col-md-8">
|
||||||
|
<form action="catmodify" method="POST">
|
||||||
|
@csrf <label for="H_cat_cat_name" class="form-label">Categoria</label>
|
||||||
|
<input type="text" class="form-control" id="H_cat_cat_name"
|
||||||
|
size="50" name="cat_name" value="" size="50">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<input type="hidden" name="id" id="H_cat_id">
|
||||||
|
<button type="submit" class="btn btn-primary">Modifica</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- FINE MODAL MODIFICA -->
|
||||||
|
<!-- MODAL INSERIMENTO -->
|
||||||
|
<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">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title">Categoria</h5>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<!-- FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
|
<form action="" method="POST">
|
||||||
|
@csrf <label for="categoria" class="form-label">Categoria</label>
|
||||||
|
<input type="text" class="form-control" id="categoria"
|
||||||
|
name="cat_name" size="50">
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
<!-- FINE FORM INSERIMENTO NUOVA CATEGORIA -->
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
</div>
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
</div>
|
</form><!-- FINE FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
<!-- /.col-lg-12 -->
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- FINE MODAL INSERIMENTO -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- /.col-lg-12 -->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@ use App\Http\Controllers\ProgettiController;
|
|||||||
|
|
||||||
Route::get('/', [MovimentiController::class,'dashboard']);
|
Route::get('/', [MovimentiController::class,'dashboard']);
|
||||||
|
|
||||||
|
|
||||||
Route::get('logout', function(){ Auth::logout(); return redirect('login'); })->name('logout');
|
Route::get('logout', function(){ Auth::logout(); return redirect('login'); })->name('logout');
|
||||||
|
|
||||||
// MOVIMENTI
|
// MOVIMENTI
|
||||||
Route::get('movimentis', [MovimentiController::class,'newMovimenti'])->name('movimentis');
|
Route::get('movimentis', [MovimentiController::class,'newMovimenti'])->name('movimentis');
|
||||||
Route::post('movimentis',[MovimentiController::class,'insMovimentiSpesa']);
|
Route::post('movimentis',[MovimentiController::class,'insMovimentiSpesa']);
|
||||||
|
Loading…
Reference in New Issue
Block a user