Ahora todos los elementos tienen la opcion de publicarlos mas tarde

This commit is contained in:
Daniel Cortés
2019-10-17 08:38:37 -03:00
parent e67473b3c5
commit 0ccf88d85e
13 changed files with 110 additions and 26 deletions

View File

@@ -18,6 +18,11 @@
<label for="md">Description</label>
<textarea class="form-input" id="md" name="md">{{ old('md', $project->md) }}</textarea>
<label for="published">
<input type="checkbox" id="published" name="published" {{ old('published', $project->is_published) ? 'checked' : '' }}/>
Published
</label>
<div class="control">
<button class="pure-button button-black-white" name="action" id="preview" type="submit" value="preview">Preview</button>
<button class="pure-button button-black-white" name="action" id="main" type="submit" value="update">Update</button>

View File

@@ -14,6 +14,7 @@
<tr>
<th>Id</th>
<th>Title</th>
<th>Published</th>
<th>Date</th>
<th></th>
</tr>
@@ -23,6 +24,7 @@
<tr>
<td>{{$project->id}}</td>
<td>{{ Str::limit($project->title, 30, "...") }}</td>
<td>{{$project->is_published ? "Yes" : "No"}}</td>
<td>{{$project->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a href="{{ route('admin.project.edit', ['project' => $project->id]) }}" class="pure-button button-black-white">Edit</a>