Project

General

Profile

« Previous | Next » 

Revision cbdcd48a

Added by Andreas Kohlbecker over 7 years ago

fix #6290 Phycobank registration data as table

View differences:

modules/cdm_dataportal/cdm_dataportal.css
661 661
    font-weight: bold;
662 662
}
663 663

  
664
#block-phycobank-registration-data table {
665
    width: 100%;
666
}
667

  
664 668
/*
665 669
 * ======= footnotes and annotations =======
666 670
 */
modules/phycobank/phycobank.module
63 63

  
64 64
  if(isset($extensions->records[0])){
65 65
    $data = json_decode($extensions->records[0]->value);
66
    $groups = array();
67
    _description_list_group_add($groups, 'ID:', $data->regId);
68
    _description_list_group_add($groups, 'Date:', $data->date);
69
    _description_list_group_add($groups, 'Office:', $data->office);
70
    @_description_list_group_add($groups, 'Form number:', $data->formNumber);
66
    $rows = array(
67
      '#no_striping' => true
68
    );
69
    $rows[] = array('ID:', $data->regId);
70
    $rows[] = array('Date:', $data->date);
71
    $rows[] = array('Office:', $data->office);
72
    if(isset($data->formNumber)) {
73
      $rows[] = array('Form number', $data->formNumber);
74
    }
71 75

  
72 76
    $data_elements = array(
73
      '#theme' => 'description_list',
74
      '#groups' => $groups
77
      '#theme' => 'table',
78
      '#rows' => $rows,
75 79
    );
76 80
    return $data_elements;
77 81
  }

Also available in: Unified diff