Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-blog
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
onestartup-blog
Commits
2155fd4e
Commit
2155fd4e
authored
Jul 03, 2018
by
Pancholin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ortografia
parent
c2eeb86b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
AdminBlogController.php
src/controllers/AdminBlogController.php
+2
-2
index.blade.php
src/views/category/index.blade.php
+1
-1
index.blade.php
src/views/tags/index.blade.php
+1
-1
No files found.
src/controllers/AdminBlogController.php
View file @
2155fd4e
...
...
@@ -152,7 +152,7 @@ class AdminBlogController extends Controller
"<p class='mb0'>Visitas: <b>"
.
$entry
->
views
.
"</b></p>"
;
})
->
addColumn
(
'form'
,
function
(
$entry
)
{
return
"<form method='POST' action='"
.
route
(
'delete.entry'
,
$entry
->
id
)
.
"'>"
.
return
"<
center><
form method='POST' action='"
.
route
(
'delete.entry'
,
$entry
->
id
)
.
"'>"
.
csrf_field
()
.
"<button class='btn btn-danger btn-xs button-mb' onclick='return confirm();' type='submit'>"
.
"<i class='fas fa-trash-alt icon-special-size'></i>Eliminar</button>"
.
...
...
@@ -160,7 +160,7 @@ class AdminBlogController extends Controller
"<a href='"
.
route
(
'show.blog'
,
$entry
->
slug
)
.
"' class='btn btn-xs info button-mb' target='new'>"
.
"<i class='fas fa-eye icon-special-size'></i>Ver</a>"
.
"<br><a href='"
.
route
(
'blog.admin.entry.edit'
,
$entry
->
id
)
.
"' class='btn btn-xs accent mb0'>"
.
"<i class='fas fa-edit icon-special-size'></i>Editar</a>"
;
"<i class='fas fa-edit icon-special-size'></i>Editar</a>
</center>
"
;
})
->
filterColumn
(
'preview'
,
function
(
$query
,
$keyword
)
{
$query
->
whereRaw
(
"title like ?"
,
[
"%
{
$keyword
}
%"
]);
...
...
src/views/category/index.blade.php
View file @
2155fd4e
...
...
@@ -72,7 +72,7 @@
</td>
<td>
{
{$category->description}
}
</td>
<td>
{
{$category->entries->count()}
}
</td>
<td>
<td
class="
text
-
center
"
>
{!! Form::open(['route'=> ['blog.admin.category.destroy',
$category->id
],'method'=>'DELETE'])!!}
<button class='btn btn-danger btn-xs button-mb' onclick="
return
confirm
(
'¿Estás seguro de eliminar este elemento?'
);
" type='submit'>
<i class='fas fa-trash-alt icon-special-size'></i>
...
...
src/views/tags/index.blade.php
View file @
2155fd4e
...
...
@@ -63,7 +63,7 @@
<tr>
<td>
{
{$tag->id}
}
</td>
<td>
{
{$tag->description}
}
</td>
<td>
<td
class="
text
-
center
"
>
{!! Form::open(['route'=> ['blog.admin.tag.destroy',
$tag->id
],'method'=>'DELETE'])!!}
<button class='btn btn-danger btn-xs button-mb' onclick="
return
confirm
(
'¿Estás seguro de eliminar este elemento?'
);
" type='submit'>
<i class='fas fa-trash-alt icon-special-size'></i>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment