Show plan updated confirmation on invoices page

This commit is contained in:
Albert Santoni 2014-07-09 14:06:51 -04:00
parent 0ab1eaa08c
commit 52b8f3af87
2 changed files with 15 additions and 2 deletions

View File

@ -100,9 +100,11 @@ class BillingController extends Zend_Controller_Action {
return;
}
//If there were no changes to the plan or billing cycle, we just redirect you to the
//invoices screen and show a message.
if (!$placeAnUpgradeOrder)
{
$this->_redirect('billing/invoices');
$this->_redirect('billing/invoices?planupdated');
return;
}

View File

@ -1,6 +1,17 @@
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong billing-panel">
<H2>Invoices</H2>
<p style="text-align: center;"><?=_("Tip: To pay an invoice, click \"View Invoice\"<br> and look for the \"Checkout\" button.")?></p>
<?php
if (array_key_exists("planupdated", $_GET))
{
$topText = _("<b>Thank you!</b> Your plan has been updated and you will be invoiced during your next billing cycle.");
$topTextClass = "status-good";
}
else {
$topText = _("Tip: To pay an invoice, click \"View Invoice\"<br> and look for the \"Checkout\" button.");
}
?>
<p style="text-align: center; padding-left: 20px;" class="<?=$topTextClass?>"><?=$topText?></p>
<table id="invoices_table">
<tr class="header">
<th>Date Issued</th>