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,12 +6,12 @@ New Contact « Admin CP
|
|||
|
||||
@section('content')
|
||||
<h1>New Contact</h1>
|
||||
<form action="/admin/contacts/new" method="post" accept-charset="utf-8">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<form action="/admin/contacts/" method="post" accept-charset="utf-8">
|
||||
{{ csrf_field() }}
|
||||
<label for="name">Real Name:</label> <input type="text" name="name" id="name" placeholder="Real Name"><br>
|
||||
<label for="nick">Nick:</label> <input type="text" name="nick" id="nick" placeholder="local_nick"><br>
|
||||
<label for="homepage">Homepage:</label> <input type="text" name="homepage" id="homepage" placeholder="https://homepage.com"><br>
|
||||
<label for="twitter">Twitter Nick:</label> <input type="text" name="twitter" id="twitter" placeholder="Twitter handle"><br>
|
||||
<input type="submit" name="submit" value="Submit">
|
||||
</form>
|
||||
@stop
|
||||
@stop
|
|
@ -1,14 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Delete Contact? « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<form action="/admin/contacts/delete/{{ $id }}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<label for="delete">Are you sure you want to delete this contact? </label><input type="checkbox" name="delete" id="delete">
|
||||
<br>
|
||||
<input type="submit" id="submit" value="Submit">
|
||||
</form>
|
||||
@stop
|
|
@ -1,9 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Deleted Contact « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<p>Successfully deleted the contact information.</p>
|
||||
@stop
|
|
@ -6,8 +6,9 @@ Edit Contact « Admin CP
|
|||
|
||||
@section('content')
|
||||
<h1>Edit Contact</h1>
|
||||
<form action="/admin/contacts/edit/{{ $contact->id }}" method="post" enctype="multipart/form-data" accept-charset="utf-8">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<form action="/admin/contacts/{{ $contact->id }}" method="post" enctype="multipart/form-data" accept-charset="utf-8">
|
||||
{{ csrf_token() }}
|
||||
{{ method_field('PUT') }}
|
||||
<fieldset class="note-ui">
|
||||
<legend>Conctact</legend>
|
||||
<div>
|
||||
|
@ -37,6 +38,5 @@ Edit Contact « Admin CP
|
|||
<input type="submit" name="submit" value="Submit">
|
||||
</fieldset>
|
||||
</form>
|
||||
<p>Or do you want to <a href="/admin/contacts/delete/{{ $contact->id }}">delete</a> this contact?</p>
|
||||
<p>Instead of uploading an image, you can <a href="/admin/contacts/edit/{{ $contact->id }}/getavatar">grab from their homepage</a>?</p>
|
||||
@stop
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Edit Contact « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<p>Successfully edited the contact information.</p>
|
||||
@stop
|
|
@ -22,7 +22,7 @@ List Contacts « Admin CP
|
|||
<td>{{ $contact->homepage }}</td>
|
||||
<td>{{ $contact->twitter }}</td>
|
||||
<td>{{ $contact->facebook }}</td>
|
||||
<td><a href="/admin/contacts/edit/{{ $contact->id }}">edit</a></td>
|
||||
<td><a href="/admin/contacts/{{ $contact->id }}/edit">edit</a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
|
@ -1,9 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
New Contact « Admin CP
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<p>Succesfully created new contact entry.</p>
|
||||
@stop
|
Loading…
Add table
Add a link
Reference in a new issue