Ahora todos los elementos tienen la opcion de publicarlos mas tarde
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md"></textarea>
|
||||
|
||||
<label for="published">
|
||||
<input type="checkbox" id="published" name="published">
|
||||
Published
|
||||
</label>
|
||||
|
||||
<div class="control">
|
||||
<button class="pure-button button-black-white" name="action" id="preview" type="submit" value="preview">Preview</button>
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md">{{ old('md', $now->md) }}</textarea>
|
||||
|
||||
<label for="published">
|
||||
<input type="checkbox" id="published" name="published" {{ old('published', $now->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>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Published</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -17,9 +18,10 @@
|
||||
@foreach($nows as $now)
|
||||
<tr>
|
||||
<td>{{$now->id}}</td>
|
||||
<td>{{$now->is_published ? "Yes" : "No"}}</td>
|
||||
<td>{{$now->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.now.edit', ['now' => $now->id]) }}">Edit</a>
|
||||
<a href="{{ route('admin.now.edit', ['now' => $now->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.now.delete', ['now' => $now->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
|
||||
Reference in New Issue
Block a user