Stephen Ficklin 7 rokov pred
rodič
commit
28199a9825
1 zmenil súbory, kde vykonal 11 pridanie a 8 odobranie
  1. 11 8
      tripal/includes/TripalBundleUIController.inc

+ 11 - 8
tripal/includes/TripalBundleUIController.inc

@@ -90,7 +90,6 @@ function tripal_tripal_bundle_form($form, &$form_state, $entityDataType) {
   $form['#attached']['css'] = array(
     array(
       'data' => '
-        .form-item select, .form-item input { width:40%; }
         th.side-header { width: 220px; }',
       'type' => 'inline',
     ),
@@ -172,20 +171,24 @@ function tripal_tripal_bundle_form($form, &$form_state, $entityDataType) {
     $form['description']['#default_value'] = tripal_get_bundle_variable('description', $bundle->id, '');
   }
 
-  $form['additional_settings'] = array(
-    '#type' => 'vertical_tabs',
-    '#weight' => 99,
-  );
-
   // TODO: (Shawna) Add in form elements to allow the site admin
   // to set if fields should be shown by defulat if empty.
   // Tripal default should always be to hide fields if there are no values.
   $form['hide_empty'] = array(
-    '#type' => 'checkbox',
-    '#title' => t('Hide Empty Fields'),
+    '#type' => 'checkboxes',
+    '#title' => t('Field Display'),
+    '#options' => array(
+      1 => t('Hide empty fields'),
+    ),
     '#description' => t('Check this box if you would like all empty fields hidden.'),
     '#default_value' => 1,
   );
+
+  $form['additional_settings'] = array(
+    '#type' => 'vertical_tabs',
+    '#weight' => 99,
+  );
+
   // Set Title Format.
   //-------------------------
   $title_format = tripal_get_title_format($bundle);