From 4fd8454b363f42498bcfeaa919c91d3d62c378bf Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Mar 2014 21:24:02 -0400 Subject: [PATCH] Create stub files for the new admin fields interface. --- admin/fields.php | 44 +++++++++++++++++++++++++++ admin/index.php | 1 + admin/templates/admin_fields_list.tpl | 3 ++ admin/templates/admin_header.tpl | 6 ++-- 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 admin/fields.php create mode 100644 admin/templates/admin_fields_list.tpl diff --git a/admin/fields.php b/admin/fields.php new file mode 100644 index 0000000..39361bc --- /dev/null +++ b/admin/fields.php @@ -0,0 +1,44 @@ +data['fields'] = array(); + $response->context['template'] = 'admin_fields_list'; + } + + protected function _GetActionMethod(http\Request $request) + { + $method = parent::_GetActionMethod($request); + if ($method === NULL) + return 'ActionList'; + return $method; + } +} diff --git a/admin/index.php b/admin/index.php index 906cecc..3aef8bb 100644 --- a/admin/index.php +++ b/admin/index.php @@ -112,6 +112,7 @@ $controller->set_url_map($url_map); $url_map->set_map(array( '' => 'home', + 'fields/{action}' => 'fields', 'settings' => 'settings', )); diff --git a/admin/templates/admin_fields_list.tpl b/admin/templates/admin_fields_list.tpl new file mode 100644 index 0000000..a135b46 --- /dev/null +++ b/admin/templates/admin_fields_list.tpl @@ -0,0 +1,3 @@ +{%#import 'admin_header'%} + +{%#import 'admin_footer'%} diff --git a/admin/templates/admin_header.tpl b/admin/templates/admin_header.tpl index 791a2ee..d159b02 100644 --- a/admin/templates/admin_header.tpl +++ b/admin/templates/admin_header.tpl @@ -3,10 +3,10 @@ Bugdar2 {%=T('Administration')%} - {%= $title %} - - + + - +