Added Service Add, some internal consistency updates
This commit is contained in:
@@ -82,6 +82,16 @@ class Controller_Admin_Payment extends Controller_Payment {
|
||||
$this->response->body(json_encode(array_values($result)));
|
||||
}
|
||||
|
||||
public function action_edit() {
|
||||
list($id,$output) = Table::page(__METHOD__);
|
||||
|
||||
Block::factory()
|
||||
->type('form-horizontal')
|
||||
->title(sprintf('%s: %s',_('View Payments Received'),$id))
|
||||
->title_icon('icon-wrench')
|
||||
->body($this->add_edit($id,$output));
|
||||
}
|
||||
|
||||
private function add_edit($id=NULL,$output='') {
|
||||
$po = ORM::factory('Payment',$id);
|
||||
|
||||
@@ -146,13 +156,12 @@ $(document).ready(function() {
|
||||
alert("Failed to submit");
|
||||
},
|
||||
success: function(data) {
|
||||
$("div[id=items]").replaceWith(data);
|
||||
$("div[id=items]").empty().append(data);
|
||||
}
|
||||
});
|
||||
|
||||
return item;
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
');
|
||||
@@ -170,16 +179,6 @@ $(document).ready(function() {
|
||||
->set('o',$po);
|
||||
}
|
||||
|
||||
public function action_edit() {
|
||||
list($id,$output) = Table::page(__METHOD__);
|
||||
|
||||
Block::factory()
|
||||
->type('form-horizontal')
|
||||
->title(sprintf('%s: %s',_('View Payments Received'),$id))
|
||||
->title_icon('icon-wrench')
|
||||
->body($this->add_edit($id,$output));
|
||||
}
|
||||
|
||||
/**
|
||||
* List our availale Buik Payment Methods
|
||||
*/
|
||||
|
@@ -1,4 +1,3 @@
|
||||
<div id="items">
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -30,4 +29,3 @@
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div> <!-- /items -->
|
||||
|
Reference in New Issue
Block a user