Fix Client Admin CP issues

This commit is contained in:
Jonny Barnes 2017-03-03 11:58:21 +00:00
parent b9a80a7c00
commit 03e52915bd
4 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@
namespace App\Http\Controllers\Admin; namespace App\Http\Controllers\Admin;
use App\MicropubClient; use App\MicropubClient;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
class ClientsController extends Controller class ClientsController extends Controller

View file

@ -7,7 +7,7 @@ New Client « Admin CP
@section('content') @section('content')
<h1>New Client</h1> <h1>New Client</h1>
<form action="/admin/clients/new" method="post" accept-charset="utf-8"> <form action="/admin/clients/new" method="post" accept-charset="utf-8">
<input type="hidden" name="_token" value="{{ csrftoken() }}"> {{ csrf_field() }}
<input type="text" name="client_url" id="client_url" placeholder="client_url"><br> <input type="text" name="client_url" id="client_url" placeholder="client_url"><br>
<input type="text" name="client_name" id="client_name" placeholder="client_name"><br> <input type="text" name="client_name" id="client_name" placeholder="client_name"><br>
<input type="submit" name="submit" value="Submit"> <input type="submit" name="submit" value="Submit">

View file

@ -14,7 +14,7 @@ Admin CP
<p>You can either <a href="/admin/notes/new">create</a> new notes, or <a href="/admin/notes/edit">edit</a> them.<p> <p>You can either <a href="/admin/notes/new">create</a> new notes, or <a href="/admin/notes/edit">edit</a> them.<p>
<h2>Clients</h2> <h2>Clients</h2>
<p>You can either <a href="/admin/clients/new">create</a> new contacts, or <a href="/admin/contacts/edit">edit</a> them.</p> <p>You can either <a href="/admin/clients/new">create</a> new contacts, or <a href="/admin/clients/edit">edit</a> them.</p>
<h2>Contacts</h2> <h2>Contacts</h2>
<p>You can either <a href="/admin/contacts/new">create</a> new contacts, or <a href="/admin/contacts/edit">edit</a> them.</p> <p>You can either <a href="/admin/contacts/new">create</a> new contacts, or <a href="/admin/contacts/edit">edit</a> them.</p>

View file

@ -64,7 +64,7 @@ Route::group(['domain' => config('url.longurl')], function () {
//Micropub Clients //Micropub Clients
Route::group(['prefix' => 'clients'], function () { Route::group(['prefix' => 'clients'], function () {
Route::get('/', 'ClientsController@index'); Route::get('/edit', 'ClientsController@index');
Route::get('/new', 'ClientsController@create'); Route::get('/new', 'ClientsController@create');
Route::get('/edit/{id}', 'ClientsController@edit'); Route::get('/edit/{id}', 'ClientsController@edit');
Route::post('/new', 'ClientsController@store'); Route::post('/new', 'ClientsController@store');