Skip to content

Commit

Permalink
Added to main menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviaperugini committed Jun 26, 2018
1 parent 613200c commit 3b38695
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions class/UI/TopUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,16 @@ public static function plug()
$adminOptions['EDIT_STATES_LINK'] = \PHPWS_Text::secureLink('Edit States','intern',array('action' => 'edit_states'));
}


// Edit list of student levels
if(\Current_User::allow('intern', 'edit_level')){
$adminOptions['EDIT_STUDENT_LEVEL'] = \PHPWS_Text::secureLink('Edit Student Levels','intern',array('action' => 'edit_level'));

}

// Edit terms
if(\Current_User::allow('intern', 'edit_terms')){
$adminOptions['EDIT_TERMS_LINK'] = \PHPWS_Text::secureLink('Edit Terms','intern',array('action' => 'edit_terms'));
}

// Link to the Affiliation Agreements
Expand Down
3 changes: 3 additions & 0 deletions templates/top.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<!-- BEGIN level -->
<li>{EDIT_STUDENT_LEVEL}</li>
<!-- END level -->
<!-- BEGIN terms -->
<li>{EDIT_TERMS_LINK}</li>
<!-- END terms -->
<!-- BEGIN affiliation_agreement -->
<li>{AFFIL_AGREE_LINK}</li>
<!-- END affiliation_agreement -->
Expand Down

0 comments on commit 3b38695

Please sign in to comment.