Skip to content

Commit

Permalink
Dev: Added Buttons in TopBar for send email invitations view
Browse files Browse the repository at this point in the history
  • Loading branch information
thedirtypanda committed Jul 14, 2021
1 parent 0a5714d commit c88b163
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -2777,10 +2777,14 @@ protected function showInviteOrReminderEmailForm($iSurveyId, $aSurveyLangs, $aDa
}
}

$aData['showCloseButton'] = true;
// Back Button
$aData['showBackButton'] = true;
$aData['returnUrl'] = Yii::app()->createUrl('admin/tokens/sa/index/surveyid/' . $iSurveyId);

if (Yii::app()->request->getParam('action') == "remind") {
$aData['showSendReminderButton'] = true;
} else {
// Send Invitation Button
$aData['showSendInvitationButton'] = true;
}
$aData['topBar']['name'] = 'tokensTopbar_view';
Expand Down
Expand Up @@ -42,6 +42,15 @@
</button>
<?php endif;?>

<!-- Return -->
<?php if (!empty($showBackButton)): ?>
<a class="btn btn-default" href="<?php echo $returnUrl; ?>" role="button">
<span class="fa fa-backward"></span>
&nbsp;&nbsp;
<?php eT('Back') ?>
</a>
<?php endif;?>

<!-- Close -->
<?php if(!empty($showCloseButton)): ?>
<a class="btn btn-danger" href="<?php echo $closeUrl; ?>" role="button">
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Send invitations buttons -->
<?php if(!empty($showSendInvitationButton)):?>
<a class="btn btn-default" href="#" role="button" id="send-invitation-button">
<a class="btn btn-success pull-right" style="margin-left: 5px;" href="#" role="button" id="send-invitation-button">
<span class="icon-invite" ></span>
<?php eT("Send invitations");?>
</a>
Expand Down

0 comments on commit c88b163

Please sign in to comment.