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