Internal overhaul
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
</div> <!-- /row -->
|
||||
</fieldset>
|
||||
|
||||
<div id="plugin"></div> <!-- /row -->
|
||||
<div id="plugin"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="offset2">
|
||||
@@ -48,4 +48,4 @@
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /span -->
|
||||
|
@@ -1,54 +1,42 @@
|
||||
<div class="row">
|
||||
<div class="span9 offset1">
|
||||
<fieldset>
|
||||
<legend>Update Service</legend>
|
||||
<div class="span11">
|
||||
<fieldset>
|
||||
<legend>Update Service</legend>
|
||||
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?php echo StaticList_YesNo::form('status',$o->status,FALSE,array('label'=>'Active','class'=>'span1')); ?>
|
||||
</div>
|
||||
</div> <!-- /row -->
|
||||
<div class="row">
|
||||
<?php echo StaticList_YesNo::form('status',$o->status,FALSE,array('label'=>'Active','class'=>'span1')); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="span5">
|
||||
<?php echo StaticList_RecurSchedule::form('recur_schedule',$o->recur_schedule,FALSE,array('label'=>'Billing Period','required'));?>
|
||||
</div>
|
||||
</div> <!-- /row -->
|
||||
<div class="row">
|
||||
<?php echo StaticList_RecurSchedule::form('recur_schedule',$o->recur_schedule,FALSE,array('label'=>'Billing Period','required'));?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="span5 input-append date" id="date_next_invoice_label">
|
||||
<?php echo Form::input('date_next_invoice_label',$o->display('date_next_invoice'),array('class'=>'span2','label'=>'Date Next Invoice','add-on'=>'<i class="icon-calendar"></i>','disabled')); ?>
|
||||
</div>
|
||||
|
||||
<?php echo Form::hidden('date_next_invoice',$o->date_next_invoice); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?php echo StaticList_YesNo::form('taxable',$o->taxable,FALSE,array('label'=>'Taxable','class'=>'span1')); ?>
|
||||
</div>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?php echo StaticList_YesNo::form('suspend_billing',$o->suspend_billing,FALSE,array('label'=>'Suspend Billing','class'=>'span1')); ?>
|
||||
</div>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?php echo Form::input('price_override',$o->price_override,array('label'=>'Override Price','class'=>'span1')); ?>
|
||||
</div>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<?php if ($plugin_form) { echo $plugin_form; } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="offset2">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-append date" id="date_next_invoice_label">
|
||||
<?php echo Form::input('date_next_invoice_label',$o->display('date_next_invoice'),array('class'=>'span2','label'=>'Date Next Invoice','add-on'=>'<i class="icon-calendar"></i>','disabled')); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
</div> <!-- /row -->
|
||||
|
||||
<?php echo Form::hidden('date_next_invoice',$o->date_next_invoice); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo StaticList_YesNo::form('taxable',$o->taxable,FALSE,array('label'=>'Taxable','class'=>'span1')); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo StaticList_YesNo::form('suspend_billing',$o->suspend_billing,FALSE,array('label'=>'Suspend Billing','class'=>'span1')); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo Form::input('price_override',$o->price_override,array('label'=>'Override Price','class'=>'span1')); ?>
|
||||
</div> <!-- /row -->
|
||||
</fieldset>
|
||||
|
||||
<?php if ($plugin_form) { echo $plugin_form; } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="offset2">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /span -->
|
||||
|
@@ -1,40 +1,50 @@
|
||||
<?php if ($so->pending_change()) {?>
|
||||
Pending change to: <?php echo $so->service_change->list_details(); ?>
|
||||
<?php } ?>
|
||||
<br/>
|
||||
<!-- @todo NEEDS TO BE TRANSLATED -->
|
||||
<table class="list-box-left">
|
||||
<tr class="list-head">
|
||||
<th>ID</th>
|
||||
<th>Invoice</th>
|
||||
<th>Product</th>
|
||||
<th>IT</th>
|
||||
<th>RS</th>
|
||||
<th>Start</th>
|
||||
<th>Stop</th>
|
||||
<th>Desc</th>
|
||||
<th>Quantity</th>
|
||||
<th>Charge</th>
|
||||
</tr>
|
||||
<?php $lp=NULL; foreach ($so->transactions()->find_all() as $iio) { ?>
|
||||
<?php if (! is_null($iio->product_id) AND $lp != $iio->product_id) {
|
||||
$lp = $iio->product_id; ?>
|
||||
<tr class="list-sub-head">
|
||||
<th class="id"><?php echo $iio->product_id; ?></th>
|
||||
<th colspan="9"><?php echo $iio->product->title(); ?></th>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="list-data">
|
||||
<td class="id"><?php echo $iio->id; ?></td>
|
||||
<td><?php echo HTML::anchor(URL::link('user','invoice/view/'.$iio->invoice_id),$iio->invoice_id); ?></td>
|
||||
<td><?php echo $iio->display('product_id'); ?></td>
|
||||
<td><?php echo $iio->display('item_type'); ?></td>
|
||||
<td><?php echo $iio->display('recurring_schedule'); ?></td>
|
||||
<td><?php echo $iio->display('date_start'); ?></td>
|
||||
<td><?php echo $iio->display('date_stop'); ?></td>
|
||||
<td><?php echo $iio->display('product_name'); ?></td>
|
||||
<td><?php echo $iio->display('quantity'); ?></td>
|
||||
<td class="right"><?php echo $iio->display('price_base'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php if ($o->pending_change()) : ?>
|
||||
<div class="span5">
|
||||
Pending change to: <?php echo $o->service_change->list_details(); ?>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
<div class="span6">
|
||||
<fieldset>
|
||||
<legend>Service Transaction Details</legend>
|
||||
|
||||
<table class="table table-striped table-condensed table-hover" id="list-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Invoice</th>
|
||||
<th>IT</th>
|
||||
<th>RS</th>
|
||||
<th class="text-right">Start</th>
|
||||
<th class="text-right">Stop</th>
|
||||
<th class="text-right">Quantity</th>
|
||||
<th class="text-right">Charge</th>
|
||||
<th>Desc</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php $lp=NULL; foreach ($o->transactions()->find_all() as $iio) : ?>
|
||||
<?php if (! is_null($iio->product_id) AND $lp != $iio->product_id) : $lp = $iio->product_id; ?>
|
||||
<tr>
|
||||
<th><?php echo $iio->product_id; ?></th>
|
||||
<th colspan="9"><?php echo $iio->product->title(); ?></th>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $iio->id; ?></td>
|
||||
<td><?php echo HTML::anchor(URL::link('user','invoice/view/'.$iio->invoice_id),$iio->invoice_id); ?></td>
|
||||
<td><?php echo $iio->display('item_type'); ?></td>
|
||||
<td><?php echo $iio->display('recurring_schedule'); ?></td>
|
||||
<td class="text-right"><?php echo $iio->display('date_start'); ?></td>
|
||||
<td class="text-right"><?php echo $iio->display('date_stop'); ?></td>
|
||||
<td class="text-right"><?php echo $iio->display('quantity'); ?></td>
|
||||
<td class="text-right"><?php echo $iio->display('price_base'); ?></td>
|
||||
<td><?php echo $iio->display('product_name'); ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
|
@@ -1,9 +1,8 @@
|
||||
<div class="row">
|
||||
<fieldset class="span5">
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Service Information</legend>
|
||||
|
||||
<div class="dl-horizontal">
|
||||
|
||||
<dt>Account</dt>
|
||||
<dd><?php printf('%s (%s)',$o->account->name(),$o->account->accnum()); ?></dd>
|
||||
|
||||
@@ -16,7 +15,8 @@
|
||||
<dt>Cost</dt>
|
||||
<dd><?php echo (! is_null($o->price_override) ? sprintf('<strike>%s</strike> ',$o->price(TRUE,TRUE,TRUE)) : ''). $o->price(TRUE,TRUE); if ($o->pending_change()) echo ' *'; ?></dd>
|
||||
|
||||
<?php if (is_null($o->price) OR ($o->price<=$o->product->price($o->price_group,$o->recur_schedule,'price_base'))) : ?>
|
||||
<!-- @todo -->
|
||||
<?php if (is_null($o->price) OR ($o->price<=$o->product->price($o->price_group,$o->recur_schedule,'base'))) : ?>
|
||||
<dt>Service</dt>
|
||||
<dd><?php echo HTML::anchor('product/view/'.$o->product_id,$o->product->title()); ?></dd>
|
||||
<?php endif ?>
|
||||
@@ -32,103 +32,109 @@
|
||||
|
||||
<dt>Current Invoices Due</dt>
|
||||
<dd><?php echo $o->due(TRUE); ?></dd>
|
||||
|
||||
</div> <!-- /dl-horizontal -->
|
||||
</fieldset>
|
||||
|
||||
<?php if ($o->product->feature_summary()) :
|
||||
echo $o->product->feature_summary();
|
||||
endif ?>
|
||||
<?php echo $o->product->feature_summary(); ?>
|
||||
</div> <!-- /span -->
|
||||
|
||||
</div> <!-- /row -->
|
||||
<div class="span5">
|
||||
<?php echo $o->service_view(); ?>
|
||||
</div> <!-- /span -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo $o->details('service_view'); ?>
|
||||
</div> <!-- /row -->
|
||||
<?php if ($o->service_billing->loaded()) : ?>
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Automatic Payment Details</legend>
|
||||
|
||||
<div class="row">
|
||||
<?php if ($o->service_billing->loaded()) : ?>
|
||||
<fieldset class="span5">
|
||||
<legend>Automatic Payment Details</legend>
|
||||
<div class="dl-horizontal">
|
||||
<dt>Direct Payment</dt>
|
||||
<dd><?php echo $o->service_billing->checkout->display('name'); ?></dd>
|
||||
</div> <!-- /dl-horizontal -->
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
<dt><?php echo $o->service_billing->checkout->display('name'); ?></dt>
|
||||
<dd> </dd>
|
||||
<?php if ($o->charges()) : ?>
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Service Charges to Bill: <?php echo $o->charges(TRUE,TRUE); ?></legend>
|
||||
|
||||
</fieldset>
|
||||
<?php endif ?>
|
||||
<?php echo Table::factory()
|
||||
->data($o->charge_list(TRUE))
|
||||
->columns(array(
|
||||
'date_orig'=>'Date',
|
||||
'description'=>'Description',
|
||||
'total(TRUE)'=>'Amount',
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($o->charges()) : ?>
|
||||
<fieldset class="span5">
|
||||
<legend>Service Charges to Bill: <?php echo $o->charges(TRUE,TRUE); ?></legend>
|
||||
<?php if ($o->status) : ?>
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Next Invoice Charges</legend>
|
||||
|
||||
<?php echo Table::factory()
|
||||
->data($o->charge_list(TRUE))
|
||||
->columns(array(
|
||||
'date_orig'=>'Date',
|
||||
'description'=>'Description',
|
||||
'total(TRUE)'=>'Amount',
|
||||
)); ?>
|
||||
<?php echo Invoice::instance()->add_service($o)->render('html','body',array('noid'=>TRUE)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
</fieldset>
|
||||
<?php endif ?>
|
||||
|
||||
<fieldset class="span5">
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Invoices for this Service</legend>
|
||||
|
||||
<?php echo Table::factory()
|
||||
->data($o->invoice_list())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'due_date'=>'Due',
|
||||
'total(TRUE)'=>'Amount',
|
||||
'total(TRUE)'=>'Amount',
|
||||
'due(TRUE)'=>'Due',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','invoice/view/')),
|
||||
)); ?>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($o->status) : ?>
|
||||
<fieldset class="span5">
|
||||
<legend>Next Invoice Charges</legend>
|
||||
<?php echo Invoice::instance()->add_service($o)->render('html','body',array('noid'=>TRUE)); ?>
|
||||
</fieldset>
|
||||
<?php endif ?>
|
||||
</div> <!-- /row -->
|
||||
</div> <!-- /span -->
|
||||
|
||||
<?php $x=$o->service_memo->find_all(); if ($x->count()) : ?>
|
||||
<div class="row">
|
||||
<fieldset class="span5">
|
||||
<legend>Service Memos</legend>
|
||||
<?php echo Table::factory()
|
||||
->data($x)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'account->name()'=>'Account',
|
||||
'memo'=>'Memo',
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /row -->
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Service Memos</legend>
|
||||
|
||||
<?php echo Table::factory()
|
||||
->data($x)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'account->name()'=>'Account',
|
||||
'memo'=>'Memo',
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
||||
<?php $x=$o->email()->find_all(); if ($x->count()) : ?>
|
||||
<div class="row">
|
||||
<fieldset class="span5">
|
||||
<legend>Emails about this service</legend>
|
||||
<?php echo Table::factory()
|
||||
->data($x)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'resolve("subject")'=>'Subject',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','email/view/')),
|
||||
))
|
||||
->postproc(array(
|
||||
'resolve("subject")'=>array('trim'=>45),
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /row -->
|
||||
<div class="span5">
|
||||
<fieldset>
|
||||
<legend>Emails about this service</legend>
|
||||
|
||||
<?php echo Table::factory()
|
||||
->data($x)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'resolve("subject")'=>'Subject',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','email/view/')),
|
||||
))
|
||||
->postproc(array(
|
||||
'resolve("subject")'=>array('trim'=>45),
|
||||
)); ?>
|
||||
</fieldset>
|
||||
</div> <!-- /span -->
|
||||
<?php endif ?>
|
||||
|
Reference in New Issue
Block a user