WIP Integrazioni delle ultime modifiche. #4

Merged
fbarachino merged 50 commits from dev into main 2025-10-21 14:31:06 +00:00
Showing only changes of commit 5c23bf38cd - Show all commits

View File

@ -6,7 +6,7 @@
@section('content') @section('content')
<div class="container"> <div class="container">
<!-- Content here --> <!-- Content here -->
<div class="row"> <div class="row">
@ -16,13 +16,13 @@
<div class="mb-3"> <div class="mb-3">
<label for="descrizione" class="form-label">Descrizione</label> <label for="descrizione" class="form-label">Descrizione</label>
<input type="text" class="form-control" id="descrizione" name="descrizione"> <input type="text" class="form-control" id="descrizione" name="descrizione">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="file" class="form-label">File</label> <label for="file" class="form-label">File</label>
<input type="file" class="form-control" id="file" name="filename"> <input type="file" class="form-control" id="file" name="filename">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<!-- {issue #5} --> <!-- {issue #5} -->
<input type="hidden" name="entity" value="{{$entity}}"> <input type="hidden" name="entity" value="{{$entity}}">
<input type="hidden" name="entity_id" value="{{$id}}"> <input type="hidden" name="entity_id" value="{{$id}}">
@ -38,7 +38,7 @@
<div class="panel-heading"> <div class="panel-heading">
Lista dei documenti Lista dei documenti
</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" id="listadoc"> <table class="table table-striped table-bordered table-hover" id="listadoc">
<thead> <thead>
@ -50,9 +50,9 @@
<tbody> <tbody>
@foreach($documenti as $documento) @foreach($documenti as $documento)
<tr> <tr>
<td><a href="/storage/tenant{{tenant('id')}}/{{ $documento->filename }}"><i class="fas fa-fw fa-file"></i>&nbsp;{{ $documento->descrizione }}</a></td> <td><a href="/storage/{{ $documento->filename }}"><i class="fas fa-fw fa-file"></i>&nbsp;{{ $documento->descrizione }}</a></td>
<td> <td>
<a class="btn btn-primary" href="/admin/doc_update?id={{ $documento->id }}">Edit</a>&nbsp; <a class="btn btn-primary" href="/admin/doc_update?id={{ $documento->id }}">Edit</a>&nbsp;
<a class="btn btn-danger" href="/admin/doc_delete?id={{ $documento->id }}">Elimina</a>&nbsp; <a class="btn btn-danger" href="/admin/doc_delete?id={{ $documento->id }}">Elimina</a>&nbsp;