Resourcify admin cp controllers, routes, and views
This commit is contained in:
parent
03e52915bd
commit
17804eed27
40 changed files with 208 additions and 431 deletions
|
@ -6,8 +6,8 @@ New Place « Admin CP
|
|||
|
||||
@section('content')
|
||||
<h1>New Place</h1>
|
||||
<form action="/admin/places/new" method="post" accept-charset="utf-8">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<form action="/admin/places/" method="post" accept-charset="utf-8">
|
||||
{{ csrf_field() }}
|
||||
<label for="name">Name:</label> <input type="text" name="name" id="name" placeholder="Place Name"><br>
|
||||
<label for="description">Description:</label> <input type="text" name="description" id="description" placeholder="Description"><br>
|
||||
<label for="latitude">Latitude:</label> <input type="text" name="latitude" id="latitude" placeholder="Latitude"><br>
|
|
@ -6,8 +6,9 @@ Edit Place « Admin CP
|
|||
|
||||
@section('content')
|
||||
<h1>Edit Place</h1>
|
||||
<form action="/admin/places/edit/{{ $id }}" method="post" accept-charset="utf-8">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<form action="/admin/places/{{ $id }}" method="post" accept-charset="utf-8">
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('PUT') }}
|
||||
<input type="text" name="name" id="name" value="{{ $name }}"><br>
|
||||
<input type="text" name="description" id="description" value="{{ $description }}"><br>
|
||||
<input type="text" name="latitude" id="latitude" value="{{ $latitude }}"><br>
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Edit Place « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<p>Successfully edited the place information.</p>
|
||||
@stop
|
|
@ -8,8 +8,8 @@ List Places « Admin CP
|
|||
<h1>Places</h1>
|
||||
<ul>
|
||||
@foreach($places as $place)
|
||||
<li>{{ $place['name'] }} <a href="/admin/places/edit/{{ $place['id'] }}">edit?</a></li>
|
||||
<li>{{ $place['name'] }} <a href="/admin/places/{{ $place['id'] }}/edit">edit?</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<p>Createn a <a href="/admin/places/new">new entry</a>?</p>
|
||||
<p>Create a <a href="/admin/places/create">new entry</a>?</p>
|
||||
@stop
|
|
@ -1,9 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
New Place « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<p>Succesfully created new place info.</p>
|
||||
@stop
|
Loading…
Add table
Add a link
Reference in a new issue