Edited: vehicle create route renamed from vehicle add
This commit is contained in:
parent
be6b465684
commit
e13edeccfc
@ -1,7 +1,7 @@
|
|||||||
<link rel="stylesheet" href="/css/vehicles.css">
|
<link rel="stylesheet" href="/css/vehicles.css">
|
||||||
<section class="vehicles">
|
<section class="vehicles">
|
||||||
<?php if (empty($this->get('vehicles'))): ?>
|
<?php if (empty($this->get('vehicles'))): ?>
|
||||||
<p>No vehicles yet. <a href="/vehicles/add">Add your first vehicle</a>.</p>
|
<p>No vehicles yet. <a href="/vehicles/create">Add your first vehicle</a>.</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="vehicle-wrapper">
|
<div class="vehicle-wrapper">
|
||||||
<?php foreach ($this->get('vehicles') as $vehicle): ?>
|
<?php foreach ($this->get('vehicles') as $vehicle): ?>
|
||||||
|
@ -44,7 +44,7 @@ $router->add('/dashboard', 'DashboardController@index', ['RequireAuth']);
|
|||||||
// habits routes
|
// habits routes
|
||||||
$router->group('/vehicles', ['RequireAuth'], function ($router) {
|
$router->group('/vehicles', ['RequireAuth'], function ($router) {
|
||||||
$router->add('', 'VehicleController@index');
|
$router->add('', 'VehicleController@index');
|
||||||
$router->add('/add', 'VehicleController@create');
|
$router->add('/create', 'VehicleController@create');
|
||||||
$router->add('/edit/{id}', 'VehicleController@edit');
|
$router->add('/edit/{id}', 'VehicleController@edit');
|
||||||
$router->add('/delete/{id}', 'VehicleController@delete');
|
$router->add('/delete/{id}', 'VehicleController@delete');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user