Actualización de moelo user y relación many con asistencias, creación del modelo de asistencia y control por middleware y autenticación
This commit is contained in:
@@ -32,6 +32,15 @@
|
||||
|
||||
<form method="POST" action="{{ route('register') }}" class="user">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label for="plantels">Seleccionar Campus</label>
|
||||
<select class="form-control" name="plantels" id="plantels" >
|
||||
<option value="0" >Selecciona un plantel</option>
|
||||
@foreach($plantels as $plantel)
|
||||
<option value="{{ $plantel->id }}">{{ $plantel->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Nombre</label>
|
||||
@@ -45,7 +54,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label>Teléfono</label>
|
||||
<input type="number" class="form-control form-control-user" name="telefono" autocomplete="off" required autofocus autocomplete="telefono">
|
||||
<input type="text" class="form-control form-control-user" name="telefono" maxlength="10" onkeypress="return event.charCode >= 48 && event.charCode <= 57" inputmode="numeric" autocomplete="off" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -55,7 +64,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label>Confirmar contraseña</label>
|
||||
<input type="password" class="form-control form-control-user" id="password" name="password" placeholder="Confirmar contraseña" required autocomplete="current-password">
|
||||
<input type="password" class="form-control form-control-user" id="password_confirmation" name="password_confirmation" placeholder="Confirmar contraseña" required autocomplete="current-password">
|
||||
</div>
|
||||
|
||||
|
||||
@@ -84,6 +93,15 @@
|
||||
@include('layouts._partials.scripts')
|
||||
@livewireScripts
|
||||
@yield('scripts')
|
||||
@if ($errors->any())
|
||||
<script>
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Error',
|
||||
text: '{{ $errors->first() }}'
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user