classes code hidden during adding student manually
This commit is contained in:
parent
3f9880d313
commit
e6a11127c8
@ -132,7 +132,7 @@ class UserClassesController extends Controller
|
||||
'student_surname' => $student_surname,
|
||||
'seat_number' => null
|
||||
]);
|
||||
return view('map.summary_map', ['student_name' => $student_name, 'student_surname' => $student_surname, 'seat_number' => null, 'student_id_number' => $student_id_number, 'classes_id' => $classes->id, 'mode' => 'quick']);
|
||||
return view('map.summary_map', ['student_name' => $student_name, 'student_surname' => $student_surname, 'seat_number' => null, 'student_id_number' => $student_id_number, 'classes_id' => $classes->id, 'mode' => $classes->mode]);
|
||||
|
||||
} else {
|
||||
$attendances = Attendance::where('classes_id', $classes->id)->get();
|
||||
@ -177,7 +177,7 @@ class UserClassesController extends Controller
|
||||
'student_surname' => $student_surname,
|
||||
'seat_number' => $seat_number
|
||||
]);
|
||||
return view('map.summary_map', ['student_name' => $student_name, 'student_surname' => $student_surname, 'seat_number' => $seat_number, 'student_id_number' => $student_id_number, 'classes_id' => $classes_id]);
|
||||
return view('map.summary_map', ['student_name' => $student_name, 'student_surname' => $student_surname, 'seat_number' => $seat_number, 'student_id_number' => $student_id_number, 'classes_id' => $classes_id, 'mode' => null]);
|
||||
}
|
||||
|
||||
public function preview_classes($classes_id, $orderBy='student_surname', $orderDirection='ASC')
|
||||
|
@ -17,8 +17,7 @@
|
||||
<div class="card-reader">
|
||||
<form method="POST" action="{{ route('user_start_classes_verified') }}" class="card-reader-form">
|
||||
<div>
|
||||
<label for="classes_code"> Kod: </label>
|
||||
<input type="text" name="classes_code" id="classes_code" value="" required>
|
||||
<input type="hidden" name="classes_code" id="classes_code" value="{{ $classes_code }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="student_id_number"> Nr indeksu: </label>
|
||||
@ -32,7 +31,7 @@
|
||||
<label for="student_surname"> Nazwisko: </label>
|
||||
<input type="text" name="student_surname" id="student_surname" required>
|
||||
</div>
|
||||
<button type="submit" id="submit" class="checkout-button"> Dodaj studenta</button>
|
||||
<button type="submit" id="submit" class="checkout-button"> Dodaj studenta </button>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
|
@ -10,10 +10,13 @@
|
||||
<div class="map-buttons">
|
||||
<a href="{{ route('user_classes') }}" class="checkout-button end-button"> Zakończ zapisy </a>
|
||||
</div>
|
||||
<h1> Zostałeś poprawnie zapisany.</h1>
|
||||
<h2> {{ $student_name }} {{ $student_surname }} </h2>
|
||||
<h3> {{ $student_id_number }} </h3>
|
||||
@if(!$mode == "quick")
|
||||
<h3> miejsce: </h3>
|
||||
<ul id="sel-seat"> {{ $seat_number }} </ul>
|
||||
@endif
|
||||
<a href="{{ route('user_start_classes', [$classes_id]) }}"><button type="button" class="checkout-button">Następny student »</button></a>
|
||||
</div>
|
||||
@endsection
|
||||
|
Loading…
Reference in New Issue
Block a user