Luca Parisio hai 5 meses
pai
achega
c27fc4b2de
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      resources/views/livewire/presence.blade.php

+ 6 - 1
resources/views/livewire/presence.blade.php

@@ -214,8 +214,11 @@
                     <br>
                     <h3 class="text-primary">Inserimento nuovo utente</h3>
                     <small>Se hai selezionato un utente già registrato inserira solamente quello</small>
-                    <br>
+                    <br>                    
                     <span style="color:red;display:none" class="error">Tutti i campi sono obbligatori</span>
+                    @if($newMemberFiscalCodeExist)
+                        <span style="color:red;" class="error">Il codice fiscale esiste</span>
+                    @endif
                     <div class="row">
                         <div class="col-md-6">
                             <label for="newMemberFirstName" class="form-label">Nome</label>
@@ -495,6 +498,7 @@
 
         function annulla()
         {
+            isSaving = false;
             $('#userModal').modal('hide');
             $('#deleteModal').modal('hide');
             $('#instructorModal').modal('hide');
@@ -502,6 +506,7 @@
 
         function showHideDelete()
         {
+            isSaving = true;
             $(".showDelete").show();
             $(".btSave").hide();
         }