Explorar o código

Bootstrap 5 pour les forms

François Drouhard %!s(int64=3) %!d(string=hai) anos
pai
achega
c562332fc6
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      assets/js/addCollectionWidget.js
  2. 1 1
      templates/videotheque/form.html.twig

+ 1 - 1
assets/js/addCollectionWidget.js

@@ -25,7 +25,7 @@
 
         function addDeleteLink($prototype) {
             // Création du lien
-            let $deleteLink = $('<a href="#"><i class="fa fa-trash fa-lg" style="color:Tomato;"></i></a>');
+            let $deleteLink = $('<button type="button" class="btn btn-outline-secondary"><i class="fa fa-trash fa-lg" style="color:Tomato;"></i></button>');
     
             // Ajout du lien
             $prototype.find(":input").after($deleteLink);

+ 1 - 1
templates/videotheque/form.html.twig

@@ -8,7 +8,7 @@
                     {{ form_row(form.titre) }}
                     {{ form_row(form.annee) }}
                     {{ form_row(form.lien) }}
-                    {% form_theme form 'bootstrap_4_layout.html.twig' %}
+                    {% form_theme form 'bootstrap_5_layout.html.twig' %}
                     {{ form_row(form.information) }}
 
                     {{ form_label(form.mediaVideo, 'Bande annonce') }}