Selaa lähdekoodia

courts - cambiato label in Campo/Sala

ferrari 3 viikkoa sitten
vanhempi
commit
bff2f280be

+ 1 - 1
app/Http/Livewire/Presence.php

@@ -77,7 +77,7 @@ class Presence extends Component
                     ->orWhereNull('is_deleted');
             })->orderBy('last_name')->orderBy('first_name')->get();
         $this->note = $this->calendar->note;
-        $this->courts = \App\Models\Court::select('*')->where('enabled', true)->get();
+        $this->courts = \App\Models\Court::select('*')->where('enabled', true)->orderBy('name', 'asc')->get();
         $this->instructors = \App\Models\User::select('*')->where('level', 2)->where('enabled', true)->orderBy('name', 'asc')->get();
         $this->motivations = \App\Models\Motivation::select('*')->where('enabled', true)->where('type', 'del')->get();
         $this->motivations_add = \App\Models\Motivation::select('*')->where('enabled', true)->where('type', 'add')->get();

+ 2 - 2
resources/views/livewire/presence.blade.php

@@ -83,7 +83,7 @@
                 <th scope="col">Cognome</th>
                 <th scope="col">Nome</th>
                 <th scope="col">Certificato</th>
-                <th scope="col">Campo</th>
+                <th scope="col">Campo/Sala</th>
                 <th scope="col">Istruttore</th>
                 <th scope="col">Presenza</th>
                 <th scope="col">Motivazione</th>
@@ -436,7 +436,7 @@
                 <div class="modal-body">
                     <div class="row">
                         <div class="col-md-12">
-                            <label for="save_court_id" class="form-label">Campo</label>
+                            <label for="save_court_id" class="form-label">Campo/Sala</label>
                             <select id="save_court_id" class="form-select form-select-lg me-1">
                                 <option value="0">
                                     @foreach($courts as $c)

+ 2 - 2
resources/views/livewire/presence_report.blade.php

@@ -76,7 +76,7 @@
             </div>
         @endif
         <div class="col-lg-2 col-md-12 d-flex gap-3 align-items-center mb-3">
-            <label class="form-label fw-medium text-uppercase mb-0" for="court_id">Campo</label>
+            <label class="form-label fw-medium text-uppercase mb-0" for="court_id">Campo/Sala</label>
             <select wire:model="court_id" id="court_id" class="form-select">
                 <option value=""></option>
                 @foreach($courts as $court)
@@ -117,7 +117,7 @@
                                 <td style="width: 15%">Livello</td>
                                 <td style="width: 15%">Cognome</td>
                                 <td style="width: 15%">Nome</td>
-                                <td style="width: 10%">Campo</td>
+                                <td style="width: 10%">Campo/Sala</td>
                                 <td style="width: 15%">Istruttore</td>
                                 <td style="width: 10%">Stato</td>
                                 <td style="width: 20%">Motivazione</td>