|
1 | | -<div class="row"> |
2 | | - <div class="col-md-8" id="containment"> |
3 | | - <img id="resize" src="{{ $img->url . '?timestamp=' . $img->time }}" height="{{ $height }}" width="{{ $width }}"> |
4 | | - </div> |
5 | | - <div class="col-md-4"> |
6 | | - |
7 | | - <table class="table table-compact table-striped"> |
8 | | - <thead></thead> |
9 | | - <tbody> |
10 | | - @if ($scaled) |
11 | | - <tr> |
12 | | - <td>{{ trans('laravel-filemanager::lfm.resize-ratio') }}</td> |
13 | | - <td>{{ number_format($ratio, 2) }}</td> |
14 | | - </tr> |
15 | | - <tr> |
16 | | - <td>{{ trans('laravel-filemanager::lfm.resize-scaled') }}</td> |
17 | | - <td> |
18 | | - {{ trans('laravel-filemanager::lfm.resize-true') }} |
19 | | - </td> |
20 | | - </tr> |
21 | | - @endif |
22 | | - <tr> |
23 | | - <td>{{ trans('laravel-filemanager::lfm.resize-old-height') }}</td> |
24 | | - <td>{{ $original_height }}px</td> |
25 | | - </tr> |
26 | | - <tr> |
27 | | - <td>{{ trans('laravel-filemanager::lfm.resize-old-width') }}</td> |
28 | | - <td>{{ $original_width }}px</td> |
29 | | - </tr> |
30 | | - <tr> |
31 | | - <td>{{ trans('laravel-filemanager::lfm.resize-new-height') }}</td> |
32 | | - <td><span id="height_display"></span></td> |
33 | | - </tr> |
34 | | - <tr> |
35 | | - <td>{{ trans('laravel-filemanager::lfm.resize-new-width') }}</td> |
36 | | - <td><span id="width_display"></span></td> |
37 | | - </tr> |
38 | | - </tbody> |
| 1 | +<div class="row pt-5"> |
| 2 | + <div class="col-md-8" id="containment"> |
| 3 | + <img id="resize" src="{{ $img->url . '?timestamp=' . $img->time }}" height="{{ $height }}" width="{{ $width }}"> |
| 4 | + </div> |
| 5 | + <div class="col-md-4"> |
| 6 | + <table class="table table-compact table-striped"> |
| 7 | + <thead></thead> |
| 8 | + <tbody> |
| 9 | + @if ($scaled) |
| 10 | + <tr> |
| 11 | + <td>{{ trans('laravel-filemanager::lfm.resize-ratio') }}</td> |
| 12 | + <td>{{ number_format($ratio, 2) }}</td> |
| 13 | + </tr> |
| 14 | + <tr> |
| 15 | + <td>{{ trans('laravel-filemanager::lfm.resize-scaled') }}</td> |
| 16 | + <td> |
| 17 | + {{ trans('laravel-filemanager::lfm.resize-true') }} |
| 18 | + </td> |
| 19 | + </tr> |
| 20 | + @endif |
| 21 | + <tr> |
| 22 | + <td>{{ trans('laravel-filemanager::lfm.resize-old-height') }}</td> |
| 23 | + <td>{{ $original_height }}px</td> |
| 24 | + </tr> |
| 25 | + <tr> |
| 26 | + <td>{{ trans('laravel-filemanager::lfm.resize-old-width') }}</td> |
| 27 | + <td>{{ $original_width }}px</td> |
| 28 | + </tr> |
| 29 | + <tr> |
| 30 | + <td>{{ trans('laravel-filemanager::lfm.resize-new-height') }}</td> |
| 31 | + <td><span id="height_display"></span></td> |
| 32 | + </tr> |
| 33 | + <tr> |
| 34 | + <td>{{ trans('laravel-filemanager::lfm.resize-new-width') }}</td> |
| 35 | + <td><span id="width_display"></span></td> |
| 36 | + </tr> |
| 37 | + </tbody> |
39 | 38 | </table> |
40 | | - |
41 | 39 | <button class="btn btn-primary" onclick="doResize()">{{ trans('laravel-filemanager::lfm.btn-resize') }}</button> |
42 | 40 | <button class="btn btn-info" onclick="loadItems()">{{ trans('laravel-filemanager::lfm.btn-cancel') }}</button> |
43 | | - |
44 | 41 | <input type="hidden" id="img" name="img" value="{{ $img->name }}"> |
45 | 42 | <input type="hidden" name="ratio" value="{{ $ratio }}"><br> |
46 | 43 | <input type="hidden" name="scaled" value="{{ $scaled }}"><br> |
47 | 44 | <input type="hidden" id="original_height" name="original_height" value="{{ $original_height }}"><br> |
48 | 45 | <input type="hidden" id="original_width" name="original_width" value="{{ $original_width }}"><br> |
49 | 46 | <input type="hidden" id="height" name="height" value="{{ $height }}"><br> |
50 | 47 | <input type="hidden" id="width" name="width" value="{{ $width }}"> |
51 | | - |
52 | | - </div> |
| 48 | +</div> |
53 | 49 | </div> |
54 | 50 |
|
55 | 51 | <script> |
|
0 commit comments