haciendo css manual
This commit is contained in:
@@ -5,17 +5,22 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('admin.post.save') }}" method="post">
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.save') }}" method="post">
|
||||
@csrf
|
||||
<div>
|
||||
<label for="title">Titulo</label>
|
||||
<input type="text" class="form-input" id="title" name="title" required/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="md">Contenido</label>
|
||||
<textarea id="md" class="form-input" name="md"></textarea>
|
||||
</div>
|
||||
<input type="submit" class="form-submit" value="Crear"/>
|
||||
<fieldset>
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1">
|
||||
<label for="title">Titulo</label>
|
||||
<input type="text" class="pure-u-23-24" id="title" name="title" required/>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<label for="md">Contenido</label>
|
||||
<textarea id="md" class="pure-u-23-24" name="md"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<button class="pure-button" type="submit" class="form-submit">Crear</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -5,16 +5,19 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('admin.post.update', ['post' => $post->id]) }}" method="post">
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.update', ['post' => $post->id]) }}" method="post">
|
||||
@csrf
|
||||
<div>
|
||||
<label for="title">Titulo</label>
|
||||
<input type="text" class="form-input" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
|
||||
<fieldset>
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1">
|
||||
<label for="title">Titulo</label>
|
||||
<input type="text" class="pure-u-23-24" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
|
||||
</div>
|
||||
<div class="pure-u-1">
|
||||
<label for="md">Contenido</label>
|
||||
<textarea class="pure-u-23-24" id="md" name="md">{{ old('md', $post->md) }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label for="md">Contenido</label>
|
||||
<textarea class="form-input" id="md" name="md">{{ old('md', $post->md) }}</textarea>
|
||||
</div>
|
||||
<input type="submit" class="form-submit" value="Actualizar"/>
|
||||
<button type="submit" class="pure-button">Actualizar</button>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@@ -1,17 +1,23 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('title')
|
||||
<h1>Posts</h1>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<table class="table">
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-5">
|
||||
<h1>Posts</h1>
|
||||
</div>
|
||||
<div class="pure-u-4-5">
|
||||
<a class="pure-button u-align-right" href="{{ route('admin.post.create') }}">Create</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Titulo</th>
|
||||
<th>Fecha</th>
|
||||
<th class="controls"><a href="{{ route('admin.post.create') }}">create</a></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -20,17 +26,17 @@
|
||||
<td>{{$post->id}}</td>
|
||||
<td>{{$post->title}}</td>
|
||||
<td>{{$post->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.post.edit', ['post' => $post->id]) }}">edit</a>
|
||||
<td>
|
||||
<a class="pure-button" href="{{ route('admin.post.edit', ['post' => $post->id]) }}">Edit</a>
|
||||
</td>
|
||||
<td>
|
||||
<form action={{ route('admin.post.delete', ['post' => $post->id]) }} method="post">
|
||||
@csrf
|
||||
<input type="submit" value="delete"/>
|
||||
<button type="submit" class="pure-button">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user