Added Service Add, some internal consistency updates
This commit is contained in:
@@ -68,9 +68,6 @@ class Model_Product_Plugin_Adsl extends Model_Product_Plugin {
|
||||
);
|
||||
|
||||
// Our required abstract methods
|
||||
public function admin_update() {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function cost($annual=FALSE) {
|
||||
$x = $this->supplier_plan->display('base_cost');
|
||||
@@ -83,6 +80,15 @@ class Model_Product_Plugin_Adsl extends Model_Product_Plugin {
|
||||
->set('o',$this);
|
||||
}
|
||||
|
||||
// @todo Select the ADSL Plan for this product.
|
||||
public function render_edit() {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function render_order() {
|
||||
return View::factory(sprintf('product/plugin/%s/order',$this->plugin()));
|
||||
}
|
||||
|
||||
public function supplier() {
|
||||
return $this->supplier_plan->supplier_id;
|
||||
}
|
||||
|
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
class Model_Service_Plugin_Adsl extends Model_Service_Plugin {
|
||||
protected $_table_name = 'service__adsl';
|
||||
protected $_created_column = FALSE;
|
||||
protected $_updated_column = FALSE;
|
||||
|
||||
// Relationships
|
||||
|
11
modules/adsl/views/product/plugin/adsl/order.php
Normal file
11
modules/adsl/views/product/plugin/adsl/order.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<fieldset>
|
||||
<legend>ADSL Service Details</legend>
|
||||
|
||||
<div class="row">
|
||||
<?php echo Form::input('plugin[service_number]',NULL,array('class'=>'span2','label'=>'Service Number','placeholder'=>'Service Number','required')); ?>
|
||||
</div> <!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<?php echo Form::input('plugin[service_address]',NULL,array('class'=>'span6','label'=>'Service Address','placeholder'=>'Service Address','required')); ?>
|
||||
</div> <!-- /row -->
|
||||
</fieldset>
|
Reference in New Issue
Block a user