Skip to content

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
purwandi authored Aug 25, 2017
2 parents cd4c574 + 5bc12fb commit 94ddf0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion views/backend/page/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@section('content')
<div class="container-fluid">
<form action="/backend/cms/elements/pages/" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
<form action="/backend/cms/elements/pages" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
{{ csrf_field() }}

<!-- Nav tabs -->
Expand Down
2 changes: 1 addition & 1 deletion views/backend/post/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@section('content')
<div class="container-fluid">
<form action="/backend/cms/elements/post/" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
<form action="/backend/cms/elements/post" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
{{ csrf_field() }}

<!-- Nav tabs -->
Expand Down
8 changes: 5 additions & 3 deletions views/backend/post/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
<tr>
<th>Title</th>
<th>Category</th>
<th>Author</th>
<th>Date</th>
@foreach (config()->get('translatable.locales') as $locale)
<th>{{ $locale }}</th>
@endforeach
<th>Action</th>
<th>Status</th>
<th>Active</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
@foreach ($posts as $post)
<tr>
<td>{{ $post->title }}</td>
<td>{{ $post->category ? $post->category->name : '' }}</td>
<td>{{ $post->user->name }}</td>
<td>{{ $post->created_at }}</td>
@foreach (config()->get('translatable.locales') as $locale)
<td>
Expand All @@ -39,6 +39,8 @@
</a>
</td>
@endforeach
<td>{{ ucfirst(strtolower($post->status)) }}</td>
<td>{{ $post->active == 0 ? 'No' : 'Yes' }}</td>
<td>
<form action="/backend/cms/elements/post/{{ $post->id }}" method="POST">
{{ csrf_field() }}
Expand Down

0 comments on commit 94ddf0b

Please sign in to comment.