Ich Ich, gros commit
This commit is contained in:
42
resources/views/relay/index.blade.php
Executable file
42
resources/views/relay/index.blade.php
Executable file
@ -0,0 +1,42 @@
|
||||
@extends('layouts.loggedform')
|
||||
@section('card')
|
||||
@component('components.card')
|
||||
@slot('title')
|
||||
@lang('YO les ptits loups - ') <a href="{{route("pilot.create")}}"><i class="far fa-plus-square"></i></a>
|
||||
@endslot
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var tableRelays = '';
|
||||
var pilots = '';
|
||||
var raceParams = '';
|
||||
|
||||
window.reloadData = function (id, name) {
|
||||
|
||||
document.cookie = "active_kartid=" + id;
|
||||
document.cookie = "active_kartname=" + name;
|
||||
|
||||
if (name != null)
|
||||
$('#btnChoiceKartTitle').html(name);
|
||||
|
||||
$.ajax({
|
||||
url: '/getpilotsBykart',
|
||||
data: {id: id},
|
||||
success: function (data) {
|
||||
pilots = data.data;
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
url: '/getRaceParams',
|
||||
success: function (data) {
|
||||
raceParams = data.data;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(() => {
|
||||
reloadData(getCookie('active_kartid'), getCookie('active_kartname'));
|
||||
})
|
||||
</script>
|
||||
@endsection
|
Reference in New Issue
Block a user