summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/project/stacks/resource_types/tables.py')
-rw-r--r--openstack_dashboard/dashboards/project/stacks/resource_types/tables.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py b/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
deleted file mode 100644
index 66e7702..0000000
--- a/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
+++ /dev/null
@@ -1,36 +0,0 @@
1# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14from django.utils.translation import ugettext_lazy as _
15
16from horizon import tables
17
18
19class ResourceTypesFilterAction(tables.FilterAction):
20 filter_type = 'server'
21 filter_choices = (('name', _('Type ='), True, _("Case sensitive")),)
22
23
24class ResourceTypesTable(tables.DataTable):
25 name = tables.Column("resource_type",
26 verbose_name=_("Type"),
27 link="horizon:project:stacks.resource_types:details",)
28
29 def get_object_id(self, resource):
30 return resource.resource_type
31
32 class Meta(object):
33 name = "resource_types"
34 verbose_name = _("Resource Types")
35 table_actions = (ResourceTypesFilterAction,)
36 multi_select = False