Skip to content

Commit

Permalink
Fixed formatting for required columns in input file
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncaron committed Oct 6, 2023
1 parent b86f3b3 commit 2a5e8a4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ public function describeUploadFileFormat() {
'Synonyms' => 'Any synonyms of the accession. (e.g. Redberry)',
];

$required_col = ['Germplasm Name', 'Accession Number', 'Germplasm Species'];
$required_col = ['Germplasm Name', 'External Database', 'Accession Number', 'Germplasm Species'];
// @TODO: Make this red, but Drupal makes it difficult :)
$required_markup = '*';

$output .= '<ol>';
foreach ($columns as $title => $definition) {
if (in_array($title, $required_col)) {
$output .= '<li><b>' . $title . '<font color=red">*</font></b>: ' . $definition . '</li>';
$output .= '<li><b>' . $title . $required_markup . '</b>: ' . $definition . '</li>';
}
else {
$output .= '<li><b>' . $title . '</b>: ' . $definition . '</li>';
Expand Down

0 comments on commit 2a5e8a4

Please sign in to comment.