Added Service Add, some internal consistency updates

This commit is contained in:
Deon George
2013-11-27 11:22:20 +11:00
parent c18d5a3881
commit 0ed5e5163d
29 changed files with 372 additions and 179 deletions

View File

@@ -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
*/