FEATURE: add links from history detail back to edit form

This commit is contained in:
Michal Kváček
2016-03-11 15:48:15 +01:00
parent 9f5bd46ca3
commit d0601c4fdd
3 changed files with 13 additions and 4 deletions
+1
View File
@@ -13,5 +13,6 @@ return [
'diff' => 'Difference',
'diffPageName' => 'Difference of :column',
'backToOverview' => 'Back to history overview',
'backToEdit' => 'Back to editation form'
];
@@ -17,5 +17,9 @@
<a href="{{route('content.history', ['id' => $change->content_id])}}" class="button success">
@lang('admin/history.backToOverview')
</a>
<a href="{{route('content.edit', ['id' => $change->content_id])}}" class="button success">
@lang('admin/history.backToEdit')
</a>
</div>
@stop
@@ -20,12 +20,16 @@
</a>
@foreach($changes as $change)
<div class="accordion-content" data-tab-content>
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
</div>
@endforeach
<div class="accordion-content" data-tab-content>
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
</div>
@endforeach
</li>
@endforeach
</ul>
</div>
<a href="{{route('content.edit', ['id' => $page->id])}}" class="button success">
@lang('admin/history.backToEdit')
</a>
@stop