Ahora todos los elementos tienen la opcion de publicarlos mas tarde
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user