feat(navigate) bases of idfm integration
This commit is contained in:
28
components/navigate/stop_list.php
Normal file
28
components/navigate/stop_list.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="row">
|
||||
<?php
|
||||
$stations = array_fill(1, 10, 'Station');
|
||||
$half = ceil(count($stations) / 2);
|
||||
$chunks = array_chunk($stations, ceil(count($stations) / 2), true);
|
||||
?>
|
||||
|
||||
<?php foreach ($chunks as $chunk): ?>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Station</th>
|
||||
<th class="text-end"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($chunk as $station): ?>
|
||||
<tr>
|
||||
<td><?php echo $station; ?></td>
|
||||
<td class="text-end"><div class="btn btn-success">Ajouter</div></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user