uff muchas cosas, agrege projecto y setup

This commit is contained in:
Daniel Cortés
2019-10-14 22:59:22 -03:00
parent 45a441bb2c
commit a7929c0097
36 changed files with 334 additions and 147 deletions

View File

@@ -8,17 +8,17 @@
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.save') }}" method="post">
@csrf
<fieldset>
<h1>Create post</h1>
<a class="pure-button button-black-white" href="{{ route('admin.post.index') }}">Volver</a>
<h1>Create Post</h1>
<a class="pure-button button-black-white" href="{{ route('admin.post.index') }}">Back</a>
<label for="title">Titulo</label>
<label for="title">Title</label>
<input type="text" id="title" name="title" required/>
<label for="md">Contenido</label>
<label for="md">Content</label>
<textarea id="md" name="md"></textarea>
<div class="control">
<button class="pure-button button-black-white" type="submit">Crear</button>
<button class="pure-button button-black-white" type="submit">Create</button>
</div>
</fieldset>
</form>

View File

@@ -9,16 +9,16 @@
@csrf
<fieldset>
<h1>Editar Post</h1>
<a href="{{ route('admin.post.index') }}" class="pure-button button-black-white">Volver</a>
<a href="{{ route('admin.post.index') }}" class="pure-button button-black-white">Back</a>
<label for="title">Titulo</label>
<label for="title">Title</label>
<input type="text" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
<label for="md">Contenido</label>
<label for="md">Content</label>
<textarea id="md" name="md">{{ old('md', $post->md) }}</textarea>
<div class="control">
<button type="submit" class="pure-button button-black-white">Actualizar</button>
<button type="submit" class="pure-button button-black-white">Update</button>
</div>
</fieldset>
</form>

View File

@@ -11,8 +11,8 @@
<thead>
<tr>
<th>Id</th>
<th>Titulo</th>
<th>Fecha</th>
<th>Title</th>
<th>Date</th>
<th></th>
</tr>
</thead>