Browse Source

fixed user profile form display

Bachir Soussi Chiadmi 8 years ago
parent
commit
ade4a41f76

+ 4 - 0
sites/all/modules/gui/materiobasemod/materio_user.module

@@ -222,6 +222,10 @@ function materio_user_form_alter(&$form, &$form_state, $form_id) {
     }
     $form['newsletters']['#options'] = $options;
   }
+
+  // if ( $form_id == "user_profile_form"){
+  //   dsm($form);
+  // }
 }
 
 // function materio_user_user_register_form_submit($form, &$form_state){

File diff suppressed because it is too large
+ 202 - 103
sites/all/themes/gui/materiobasetheme/css/styles.css


+ 19 - 11
sites/all/themes/gui/materiobasetheme/scss/styles.scss

@@ -1953,11 +1953,12 @@ body.print-node-materiau{
   &.role-6 #tasks .tabs.primary{display:none;}
   &.role-6 #tasks .tabs.secondary{@include tabs-primary();}
 
-  #content .inner-content >*{
+  #center >*{
     width:800px; margin:0 auto; padding-top:1em; @include fs14;
 
     fieldset{
       margin-bottom:1em;
+      border:none;
     }
 
     legend{
@@ -1970,9 +1971,9 @@ body.print-node-materiau{
       label, input.form-text{
         @include inlineblock(); vertical-align:middle;
       }
-      label{margin-right:1em; min-width:6em;}
+      label{margin-right:1em;}
       input.form-text{
-        padding:2px 4px;
+        padding:2px 4px; width:20em;
       }
     }
     .form-wrapper{
@@ -2012,7 +2013,9 @@ body.print-node-materiau{
 
     // input#edit-submit{@include btn; @include btn-success;} //change this btn foundation
 
-    /* #user-profile-form */
+    &#user-profile-form{
+      label{min-width:10em; }
+    }
     #edit-profile-adherent-field-first-name, #edit-profile-adherent-field-name,
     #edit-profile-adherent-field-private-quality, #edit-profile-adherent-field-service, #edit-profile-adherent-field-employee,
     #edit-profile-adherent-field-naf, #edit-profile-adherent-field-siret{
@@ -2021,26 +2024,29 @@ body.print-node-materiau{
       // label{margin: 0 0.5em 0 0;}
     }
 
-    #edit-profile-adherent-field-name, #edit-profile-adherent-field-service,
-    #edit-profile-adherent-field-naf, #edit-profile-adherent-field-siret, .form-item-profile-adherent-field-adresse-und-0-locality{
-      label{min-width:auto;}
-    }
+    // #edit-profile-adherent-field-name, #edit-profile-adherent-field-service,
+    // #edit-profile-adherent-field-naf, #edit-profile-adherent-field-siret, .form-item-profile-adherent-field-adresse-und-0-locality{
+    //   label{min-width:auto;}
+    // }
 
-    #edit-profile-adherent-field-siret{input{width:8em;}}
+    #edit-profile-adherent-field-siret{label{width:auto;}input{width:8em;}}
     #edit-profile-adherent-field-naf{input{width:13em;}}
 
-    #edit-profile-adherent-field-organization{ margin: 2em 0 0 0; input{width:35em;} }
+    #edit-profile-adherent-field-organization{ margin: 2em 0 0 0; }
     #edit-profile-adherent-field-employee{
+      label{width:auto;}
       input{width:4em;}
     }
 
     #edit-profile-adherent-field-private-phone{
       .form-phone-number{
         @include inlineblock(); vertical-align:middle;
+        #edit-profile-adherent-field-private-phone-und-0-number{width:10em;}
       }
     }
 
-    #edit-profile-adherent-field-adresse{
+    #edit-profile-adherent-field-adresse-und-0{
+      padding:0;
       .street-block{
         input{ width:35em;}
       }
@@ -2059,6 +2065,8 @@ body.print-node-materiau{
       h3{border:0 solid transparent;}
       .field-label{display:inline;}
     }
+
+    #edit-mimemail, #edit-locale, #edit-timezone{padding:0;}
   }
 } // user
 

Some files were not shown because too many files changed in this diff