|
15 | 15 | <h3 class="timeline-header">{{ $history->userResponsible()->name }} {{ trans('backpack::crud.created_this') }} {{ $crud->entity_name }}</h3> |
16 | 16 | @else |
17 | 17 | <h3 class="timeline-header">{{ $history->userResponsible()->name }} {{ trans('backpack::crud.changed_the') }} {{ $history->fieldName() }}</h3> |
18 | | - <div class="timeline-body"> |
19 | | - {{ ucfirst(trans('backpack::crud.from')) }}: <b>{{ $history->oldValue() }}</b> |
20 | | - <br> |
21 | | - {{ ucfirst(trans('backpack::crud.to')) }}: {{ $history->newValue() }} |
| 18 | + <div class="timeline-body p-b-0"> |
| 19 | + <div class="row"> |
| 20 | + <div class="col-md-6">{{ ucfirst(trans('backpack::crud.from')) }}:</div> |
| 21 | + <div class="col-md-6">{{ ucfirst(trans('backpack::crud.to')) }}:</div> |
| 22 | + </div> |
| 23 | + <div class="row"> |
| 24 | + <div class="col-md-6"><div class="well well-sm" style="overflow: hidden;">{{ $history->oldValue() }}</div></div> |
| 25 | + <div class="col-md-6"><div class="well well-sm" style="overflow: hidden;">{{ $history->newValue() }}</div></div> |
| 26 | + </div> |
22 | 27 | </div> |
23 | | - <div class="timeline-footer"> |
| 28 | + <div class="timeline-footer p-t-0"> |
24 | 29 | {!! Form::open(array('url' => \Request::url().'/'.$history->id.'/restore', 'method' => 'post')) !!} |
25 | | - <button type="submit" class="btn btn-primary btn-xs restore-btn" data-entry-id="{{ $entry->id }}" data-revision-id="{{ $history->id }}" onclick="onRestoreClick(event)"> |
26 | | - <i class="fa fa-history"></i> {{ trans('backpack::crud.restore_this_value') }}</button> |
| 30 | + <button type="submit" class="btn btn-primary btn-sm restore-btn" data-entry-id="{{ $entry->id }}" data-revision-id="{{ $history->id }}" onclick="onRestoreClick(event)"> |
| 31 | + <i class="fa fa-undo"></i> {{ trans('backpack::crud.undo') }}</button> |
27 | 32 | {!! Form::close() !!} |
28 | 33 | </div> |
29 | 34 | @endif |
@@ -58,7 +63,7 @@ function onRestoreClick(e) { |
58 | 63 | // Animate the new revision in (by sliding) |
59 | 64 | $('.timeline-item-wrap').first().addClass('fadein'); |
60 | 65 | new PNotify({ |
61 | | - title: '{{ trans('backpack::crud.revision_restored') }}', |
| 66 | + text: '{{ trans('backpack::crud.revision_restored') }}', |
62 | 67 | type: 'success' |
63 | 68 | }); |
64 | 69 | } |
|
0 commit comments