Browse Source

chado node: fixed weights and removed rank from form theme

Lacey Sanderson 11 years ago
parent
commit
a32036d157

+ 1 - 1
tripal_core/api/tripal_core.chado_nodes.dbxrefs.api.inc

@@ -150,7 +150,7 @@ function chado_node_additional_dbxrefs_form(&$form, &$form_state, $details) {
       remove a database reference, click the remove button. ' . $details['additional_instructions']),
     '#prefix' => "<div id='addtl-dbxrefs-fieldset'>",
     '#suffix' => '</div>',
-    '#weight'      => 10
+    '#weight'      => 9
   );
 
   // this form element is a tree, so that we don't puke all of the values into then node variable

+ 3 - 3
tripal_core/api/tripal_core.chado_nodes.properties.api.inc

@@ -511,7 +511,7 @@ function chado_node_properties_form(&$form, &$form_state, $details) {
       To add additional properties to the drop down. ' . $details['additional_instructions']),
     '#prefix' => "<div id='properties-fieldset'>",
     '#suffix' => '</div>',
-    '#weight'      => 10
+    '#weight'      => 8
   );
 
   // this form element is a tree, so that we don't puke all of the values into then node variable
@@ -685,7 +685,8 @@ function chado_node_properties_form(&$form, &$form_state, $details) {
   );
 
   $form['properties']['property_table']['new']['value'] = array(
-    '#type' => 'textfield',
+    '#type' => 'textarea',
+    '#rows' => 1,
   );
 
   // add button
@@ -883,7 +884,6 @@ function theme_chado_node_properties_form_table($variables) {
   $header = array(
     'type' => t('Type'),
     'value' => t('Value'),
-    'rank' => t('Rank'),
     'property_action' => t('Actions'),
   );
 

+ 0 - 1
tripal_core/api/tripal_core.chado_nodes.relationships.api.inc

@@ -671,7 +671,6 @@ function theme_chado_node_relationships_form_table($variables) {
     'object_name' => t('Object ' . $details['base_name_field']),
     'type_name' => t('Type'),
     'subject_name' => t('Subject ' . $details['base_name_field']),
-    'rank' => t('Rank'),
     'rel_action' => t('Action')
   );