add fslightbox
This commit is contained in:
parent
59b6b04f8a
commit
a2bff05fb6
3 changed files with 7 additions and 5 deletions
|
|
@ -1,16 +1,19 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "mix",
|
||||
"development": "mix",
|
||||
"watch": "mix watch",
|
||||
"watch-poll": "mix watch -- --watch-options-poll=1000",
|
||||
"hot": "mix watch --hot",
|
||||
"production": "mix --production"
|
||||
"production": "mix --production",
|
||||
"prod": "mix --production"
|
||||
},
|
||||
"devDependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"bootstrap": "^4.0.0",
|
||||
"cross-env": "^7.0",
|
||||
"fslightbox": "^3.2.3",
|
||||
"jquery": "^3.2",
|
||||
"laravel-mix": "^6.0.16",
|
||||
"lodash": "^4.17.19",
|
||||
|
|
|
|||
1
resources/js/bootstrap.js
vendored
1
resources/js/bootstrap.js
vendored
|
|
@ -11,6 +11,7 @@ try {
|
|||
window.$ = window.jQuery = require('jquery');
|
||||
|
||||
require('bootstrap');
|
||||
require('fslightbox');
|
||||
} catch (e) {}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -59,14 +59,12 @@
|
|||
</td>
|
||||
<td>
|
||||
@if ($ticket->file !== null)
|
||||
<a href="{{ asset($ticket->file) }}"
|
||||
class="btn btn-sm btn-outline-secondary" target="_blank">Fichier</a>
|
||||
<a data-fslightbox href="{{ asset($ticket->file) }}" class="btn btn-sm btn-outline-secondary" target="_blank">Fichier</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if ($ticket->file2 !== null)
|
||||
<a href="{{ asset($ticket->file2) }}"
|
||||
class="btn btn-sm btn-outline-secondary" target="_blank">Fichier 2</a>
|
||||
<a data-fslightbox href="{{ asset($ticket->file2) }}" class="btn btn-sm btn-outline-secondary" target="_blank">Fichier 2</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ Carbon\Carbon::parse($ticket->created_at)->format('d/m/Y à H:i') }}</td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue