Luca Parisio il y a 1 an
Parent
commit
867f149dae
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 3 2
      app/Http/Livewire/Member.php
  2. 1 1
      resources/views/livewire/member.blade.php

+ 3 - 2
app/Http/Livewire/Member.php

@@ -1317,7 +1317,7 @@ class Member extends Component
     public function addCourse()
     public function addCourse()
     {
     {
         $this->resetCourseFields();
         $this->resetCourseFields();
-        if ($this->under18)
+        /*if ($this->under18)
         {
         {
             $this->course_months[] = array("m" => 9, "status" => "");
             $this->course_months[] = array("m" => 9, "status" => "");
             $this->course_months[] = array("m" => 10, "status" => "");
             $this->course_months[] = array("m" => 10, "status" => "");
@@ -1329,7 +1329,7 @@ class Member extends Component
             $this->course_months[] = array("m" => 4, "status" => "");
             $this->course_months[] = array("m" => 4, "status" => "");
             $this->course_months[] = array("m" => 5, "status" => "");
             $this->course_months[] = array("m" => 5, "status" => "");
             $this->course_months[] = array("m" => 6, "status" => "");
             $this->course_months[] = array("m" => 6, "status" => "");
-        }
+        }*/
         $this->addCourse = true;
         $this->addCourse = true;
         $this->updateCourse = false;
         $this->updateCourse = false;
         $this->emit('setEditCorso', true);
         $this->emit('setEditCorso', true);
@@ -1415,6 +1415,7 @@ class Member extends Component
                 }
                 }
                 $this->course_frequencies = \App\Models\CourseFrequency::select('*')->where('enabled', true)->whereIn('id', $frequencies_ids)->get();
                 $this->course_frequencies = \App\Models\CourseFrequency::select('*')->where('enabled', true)->whereIn('id', $frequencies_ids)->get();
 
 
+                $this->course_when = array();
                 $this->course_date_from = $memberCourse->date_from;
                 $this->course_date_from = $memberCourse->date_from;
                 $this->course_date_to = $memberCourse->date_to;
                 $this->course_date_to = $memberCourse->date_to;
                 foreach(json_decode($memberCourse->when) as $z)
                 foreach(json_decode($memberCourse->when) as $z)

+ 1 - 1
resources/views/livewire/member.blade.php

@@ -591,7 +591,7 @@
                                                 <div class="row g-3 mt-1">
                                                 <div class="row g-3 mt-1">
 
 
                                                     <div class="col-xl-6">
                                                     <div class="col-xl-6">
-                                                        <label for="fiscal_code" class="form-label">Codice fiscale (<a wire:click="getFiscalCode()" href="#" style="font-size:18px;color: #006099;font-weight: bold;">calcola</a>)</label>
+                                                        <label for="fiscal_code" class="form-label">Codice fiscale (<a wire:click="getFiscalCode()" style="cursor:pointer;font-size:18px;color: #006099;font-weight: bold;">calcola</a>)</label>
                                                         <input class="form-control  @error('fiscal_code') is-invalid @enderror" type="text" id="fiscal_code" placeholder="Codice fiscale" wire:model="fiscal_code"  maxlength="16">
                                                         <input class="form-control  @error('fiscal_code') is-invalid @enderror" type="text" id="fiscal_code" placeholder="Codice fiscale" wire:model="fiscal_code"  maxlength="16">
                                                         @if($this->error_fc)
                                                         @if($this->error_fc)
                                                             <span style="color:red;font-size:12px">Dati mancanti</span>
                                                             <span style="color:red;font-size:12px">Dati mancanti</span>