Made the invoices view nice!
This commit is contained in:
parent
d92e5197e1
commit
fce6116d60
|
@ -174,6 +174,10 @@ class BillingController extends Zend_Controller_Action {
|
|||
|
||||
public function clientAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_BillingClient();
|
||||
BillingController::ensureClientIdIsValid();
|
||||
|
@ -220,6 +224,10 @@ class BillingController extends Zend_Controller_Action {
|
|||
|
||||
public function invoicesAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
BillingController::ensureClientIdIsValid();
|
||||
$credentials = self::getAPICredentials();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong">
|
||||
<H2>Account Details</H2>
|
||||
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong billing-panel">
|
||||
<H2>Billing Account Details</H2>
|
||||
<?php if (isset($this->errorMessage)) {?>
|
||||
<div class="errors"><?php echo $this->errorMessage ?></div>
|
||||
<?php } else if (isset($this->successMessage)) {?>
|
||||
|
|
|
@ -1,9 +1,22 @@
|
|||
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong">
|
||||
<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>
|
||||
<table id="invoices_table">
|
||||
<tr class="header">
|
||||
<th>Date Issued</th>
|
||||
<th>Due Date</th>
|
||||
<th>Link</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->invoices as $invoice) {?>
|
||||
<div>
|
||||
<a href="invoice?invoiceid=<?php echo $invoice["id"]?>">View Invoice</a>
|
||||
</div>
|
||||
<tr>
|
||||
<td><?php echo $invoice["date"]?></td>
|
||||
<td><?php echo $invoice["duedate"]?></td>
|
||||
<td><a href="invoice?invoiceid=<?php echo $invoice["id"]?>">View Invoice</a></td>
|
||||
<td class="<?=$invoice["status"]==="Unpaid" ? "unpaid" : "";?>"><?php echo $invoice["status"]?></td>
|
||||
</tr>
|
||||
|
||||
<?php }?>
|
||||
<?php };?>
|
||||
</table>
|
||||
</div>
|
|
@ -135,4 +135,37 @@
|
|||
#upgrade-downgrade input[type=submit]
|
||||
{
|
||||
float: right;
|
||||
}
|
||||
|
||||
#invoices_table
|
||||
{
|
||||
margin: 0 auto;
|
||||
border-spacing: 0px;
|
||||
border-collapse: separate;
|
||||
border: 1px solid #777;
|
||||
/*background-color: #555;*/
|
||||
table-layout: fixed;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 35px;
|
||||
background: #ccc;
|
||||
}
|
||||
|
||||
#invoices_table tbody tr th
|
||||
{
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
#invoices_table .header
|
||||
{
|
||||
box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
#invoices_table tr
|
||||
{
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
#invoices_table .unpaid
|
||||
{
|
||||
color: #ff0000;
|
||||
}
|
Loading…
Reference in New Issue