Parcourir la source

toggle info upload

ouidade il y a 1 an
Parent
commit
f0cdeb16bc

+ 7 - 1
web/themes/custom/reha/css/reha.css

@@ -659,11 +659,17 @@ input {
     margin-top: 1rem; }
     #block-reha-contenudelapageprincipale #node-operation-form #edit-field-dossier-de-candidature-wrapper label {
       order: 1;
-      font-weight: 800; }
+      font-weight: 800;
+      display: flex; }
+    #block-reha-contenudelapageprincipale #node-operation-form #edit-field-dossier-de-candidature-wrapper #edit-field-dossier-de-candidature-0--label::after {
+      content: url(../images/noun-information-55404.svg);
+      padding-left: 1rem; }
     #block-reha-contenudelapageprincipale #node-operation-form #edit-field-dossier-de-candidature-wrapper .description {
       text-transform: lowercase;
       order: 2;
       font-style: italic; }
+    #block-reha-contenudelapageprincipale #node-operation-form #edit-field-dossier-de-candidature-wrapper #edit-field-dossier-de-candidature-0--description {
+      display: none; }
     #block-reha-contenudelapageprincipale #node-operation-form #edit-field-dossier-de-candidature-wrapper .form-managed-file {
       order: 3;
       margin-top: 1rem; }

+ 49 - 0
web/themes/custom/reha/images/noun-information-55404.svg

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   version="1.1"
+   x="0px"
+   y="0px"
+   viewBox="0 0 90.85366 90.592339"
+   enable-background="new 0 0 100 100"
+   xml:space="preserve"
+   id="svg14"
+   sodipodi:docname="noun-information-55404.svg"
+   inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
+   width="25"
+   height="25"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg"><defs
+     id="defs18" /><sodipodi:namedview
+     id="namedview16"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:showpageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:deskcolor="#d1d1d1"
+     showgrid="false"
+     inkscape:zoom="6.888"
+     inkscape:cx="60.75784"
+     inkscape:cy="71.573751"
+     inkscape:window-width="1920"
+     inkscape:window-height="1016"
+     inkscape:window-x="0"
+     inkscape:window-y="36"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg14" /><circle
+     style="fill:#ffffff;fill-rule:evenodd;stroke-width:3.36789;stroke-linejoin:bevel;stroke-dasharray:3.36789, 6.7358;paint-order:stroke fill markers;stop-color:#000000"
+     id="path372"
+     cx="45.205578"
+     cy="45.034843"
+     r="43.670155" /><g
+     id="g6"
+     transform="translate(-4.5005807,-4.7909408)"><path
+       d="m 49.898,34.052 c 1.785,0 3.231,-0.472 4.297,-1.402 1.109,-0.966 1.672,-2.273 1.672,-3.886 0,-1.611 -0.562,-2.919 -1.671,-3.885 -1.068,-0.932 -2.515,-1.403 -4.298,-1.403 -1.685,0 -3.102,0.467 -4.212,1.388 -1.166,0.967 -1.756,2.278 -1.756,3.9 0,1.623 0.591,2.936 1.756,3.9 1.108,0.921 2.526,1.388 4.212,1.388 z"
+       id="path2" /><polygon
+       points="45.426,44.193 45.426,71.121 40.39,71.121 40.39,76.524 59.61,76.524 59.61,71.121 54.573,71.121 54.573,38.79 40.39,38.79 40.39,44.193 "
+       id="polygon4" /></g><path
+     d="m 45.499419,5.2090592 c 22.056,0 40,17.9439998 40,39.9999998 0,22.056 -17.944,40 -40,40 -22.056,0 -39.9999997,-17.944 -39.9999997,-40 0,-22.056 17.9439997,-39.9999998 39.9999997,-39.9999998 m 0,-4.99999997 c -24.853,0 -44.99999972,20.14699977 -44.99999972,44.99999977 0,24.853 20.14699972,45 44.99999972,45 24.853,0 45,-20.147 45,-45 0,-24.853 -20.147,-44.99999977 -45,-44.99999977 z"
+     id="path8" /></svg>

+ 12 - 0
web/themes/custom/reha/js/reha.js

@@ -81,6 +81,18 @@ jQuery(document).ready(function($){
     });
   });
 
+  $(document).ready(function(){
+    $("#edit-field-dossier-de-candidature-0--label").click(function(event) {
+    
+      // Ouvrir .connexion-full
+        $("#edit-field-dossier-de-candidature-0--description ").slideToggle();
+      });
+
+
+
+  });
+
+
 });
 
 

+ 12 - 0
web/themes/custom/reha/scss/pages/_proposer-une-operation.scss

@@ -30,9 +30,16 @@
             padding: 0;
             margin-top: 1rem;
             // width: 40%;
+            
             label{
                 order: 1;
                 font-weight: 800;
+                display: flex;
+                // align-items: center;
+            }
+            #edit-field-dossier-de-candidature-0--label::after{
+                content: url(../images/noun-information-55404.svg);
+                padding-left: 1rem;
             }
     
             .description{
@@ -41,6 +48,11 @@
                 font-style: italic;
                 // font-weight: 800;
             }
+            #edit-field-dossier-de-candidature-0--description{
+                display: none;
+            }
+
+
             .form-managed-file{
                 // background-color: white;
                 @extend %buttonwithborder;

+ 1 - 1
web/themes/custom/reha/scss/reha.scss

@@ -24,5 +24,5 @@
 @import "pages/home";
 @import "pages/creer-un-compte";
 @import "pages/mes-operations";
-@import "pages/proposer-une-operation";
+@import "pages/proposer-une-operation.scss";
 @import "pages/user--edit.scss";