classes code hidden during adding student manually

This commit is contained in:
s416422 2020-01-17 17:39:29 +01:00
parent 3f9880d313
commit e6a11127c8
3 changed files with 9 additions and 7 deletions

View File

@ -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')

View File

@ -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>

View File

@ -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 &raquo;</button></a>
</div>
@endsection