Skip to content

Commit

Permalink
[Instrument List] Show Timepoint Project (#9039)
Browse files Browse the repository at this point in the history
Changed the behaviour of showcasing the Candidate Registration Project on a visit's page. If the Timepoint Project differs from the Candidate Registration Project then it displays them separately, if they are the same then it shows the project under "Project"

Resolves #8784
  • Loading branch information
skarya22 authored Feb 6, 2024
1 parent a5e69ee commit 144b1ed
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions modules/instrument_list/templates/menu_instrument_list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,21 @@
<th>
Biological Sex
</th>
{if $display.ProjectTitle != ""}
{if $display.ProjectTitle == $display.ProjectName && $display.ProjectName != ""}
<th>
Project
</th>
{else}
{if $display.ProjectTitle != ""}
<th>
Candidate Registration Project
</th>
{/if}
{if $display.ProjectName != ""}
<th>
Timepoint Project
</th>
{/if}
{/if}
{foreach from=$display.DisplayParameters item=value key=name}
<th>
Expand Down Expand Up @@ -68,10 +79,21 @@
<td>
{$display.Sex}
</td>
{if $display.ProjectTitle != ""}
{if $display.ProjectName != "" && $display.ProjectName == $display.ProjectTitle}
<td>
{$display.ProjectTitle}
{$display.ProjectName}
</td>
{else}
{if $display.ProjectTitle != ""}
<td>
{$display.ProjectTitle}
</td>
{/if}
{if $display.ProjectName != ""}
<td>
{$display.ProjectName}
</td>
{/if}
{/if}
{foreach from=$display.DisplayParameters item=value key=name}
<td>
Expand Down

0 comments on commit 144b1ed

Please sign in to comment.