changed the gui to use twitter's bootstrap

This commit is contained in:
SJ
2013-03-29 18:05:58 +01:00
parent 8e4dda968a
commit 324ee0c4ce
38 changed files with 9970 additions and 445 deletions

View File

@ -20,16 +20,19 @@ class ControllerPolicyRetention extends Controller {
$this->document->title = $this->data['text_retention_rules'];
$this->data['rules'] = array();
$this->data['error'] = '';
if(Registry::get('admin_user') == 0) {
die("go away");
}
$lang = Registry::get('language');
if($_SERVER['REQUEST_METHOD'] == 'POST') {
if($this->validate() == true) {
$rc = $this->model_policy_retention->add_new_rule($this->request->post);
} else {
$this->data['error'] = $lang->data['text_invalid_data'];
$this->data['error'] = $lang->data['text_missing_data'];
}
}