Aggiunto la possibilità nelle regole di importazione di poter aggiungere una nuova categoria

This commit is contained in:
2025-09-05 12:10:17 +02:00
parent 637763fafe
commit 750e56f0e9
3 changed files with 58 additions and 14 deletions

View File

@@ -26,7 +26,10 @@
@foreach($categorie as $category)
<option value="{{ $category->id }}">{{ $category->cat_name }}</option>
@endforeach
<option value="nuovo">Crea nuova categoria</option>
</select>
<input type="text" name="nuovo_valore" id="nuovo_valore" class="form-control mt-2" placeholder="Nome nuova categoria" style="display:none;">
<button type="button" class="btn btn-primary mt-2" id="nuovo_aggiungi" style="display:none;">Crea Categoria</button>
<div class="form-group">
<label for="description">Descrizione</label>
<textarea name="description" id="description" class="form-control" rows="3" required></textarea>
@@ -44,3 +47,7 @@
</div>
</div>
@endsection
@section('js')
<script src="/js/app/import_rules.js"></script>
@endsection')