From ab56c04f119508fb9d3cc67b36eaadbdc5df301b Mon Sep 17 00:00:00 2001 From: Olivier Legat Date: Wed, 21 Jul 2021 15:56:36 +0200 Subject: [PATCH] =?UTF-8?q?tooltip=20back=20office=20wide=20tip=20sur=20le?= =?UTF-8?q?=20param=C3=A8trage=20des=20modes=20d'inscription?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/b-o/js/app.js | 9 +++++++++ resources/js/app.js | 11 +++++++++++ resources/views/bo/settings.blade.php | 13 +++++++++++++ 3 files changed, 33 insertions(+) diff --git a/public/b-o/js/app.js b/public/b-o/js/app.js index 5d537b7..f5d4c63 100644 --- a/public/b-o/js/app.js +++ b/public/b-o/js/app.js @@ -68802,6 +68802,15 @@ Vue.component('creneaux-exceptions', __webpack_require__(/*! ./components/Crenea var app = new Vue({ el: '#app' }); +$(document).ready(function () { + var tippyInstances = tippy('[data-tippy-content]'); + var generictippy = createSingleton(tippyInstances, { + allowHTML: true, + delay: 500, + animation: 'scale', + moveTransition: 'transform 0.2s ease-out' + }); +}); /***/ }), diff --git a/resources/js/app.js b/resources/js/app.js index b056efb..0f10038 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -18,3 +18,14 @@ Vue.component('creneaux-exceptions', require('./components/CreneauxExceptions.vu const app = new Vue({ el: '#app', }); + +$(document).ready(function(){ + const tippyInstances = tippy('[data-tippy-content]'); + //just add a data-tippy-content attribute to any tag to show a tooltip + const generictippy = createSingleton(tippyInstances, { + allowHTML: true, + delay: 500, + animation: 'scale', + moveTransition: 'transform 0.2s ease-out', + }); +}); diff --git a/resources/views/bo/settings.blade.php b/resources/views/bo/settings.blade.php index 331a3b1..c1d4fb4 100644 --- a/resources/views/bo/settings.blade.php +++ b/resources/views/bo/settings.blade.php @@ -56,6 +56,10 @@
@@ -68,15 +72,23 @@
Mode d'inscription + + + @foreach(SettingRegisterMode::toArray() as $registermode) @if ($loop->first)
@endif + @if (in_array($registermode->value, config('theme.register_mode') ?? array())) + @endif @if($loop->last)
@else @@ -87,3 +99,4 @@
@endsection +