Skip to content

Commit

Permalink
[timepoint_list][bugfix] 'View Candidate Info' button wasn't redirect…
Browse files Browse the repository at this point in the history
…ing (#5233)

Harmonize the "View/Edit Candidate Info" buttons on the timepoint list which went to the same URL and replace with a uniform "Candidate Info".
  • Loading branch information
jesscall authored and driusan committed Sep 26, 2019
1 parent d417b00 commit 718524f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ Class TimePoint_List_ControlPanel extends \Candidate
$this->tpl_data['isDataEntryPerson']
= $user->hasCenterPermission("data_entry", $cand_CenterID);

$this->tpl_data['candidate_parameters_view']
= $user->hasCenterPermission('candidate_parameter_view', $cand_CenterID);
$this->tpl_data['candidate_parameters_edit']
= $user->hasCenterPermission('candidate_parameter_edit', $cand_CenterID);

//set the baseurl of the tpl_data
$factory = \NDB_Factory::singleton();
$settings = $factory->settings();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@

{if $isDataEntryPerson}
<a class="btn btn-default" role="button" href="{$baseurl}/create_timepoint/?candID={$candID}&identifier={$candID}">Create time point</a>
<a class="btn btn-default" role="button" href="{$baseurl}/candidate_parameters/?candID={$candID}&identifier={$candID}">Candidate Info</a>
{/if}
{if $isDataEntryPerson}
{if $candidate_parameters_edit}
<a class="btn btn-default" role="button" href="{$baseurl}/candidate_parameters/?candID={$candID}&identifier={$candID}">Edit Candidate Info</a>
{elseif $candidate_parameters_view}
<button class="btn btn-default" role="button" href="{$baseurl}/candidate_parameters/?candID={$candID}&identifier={$candID}">View Candidate Info</button>
{/if}
{/if}

0 comments on commit 718524f

Please sign in to comment.