class AttachInstanceView(VolumeView): @property def is_displayed(self): expected_title = 'Attach Cloud Volume "{name}"'.format( name=self.context['object'].name) return (self.in_volume and self.entities.title.text == expected_title and self.entities.breadcrumb.active_location == expected_title) instance = BootstrapSelect('vm_id') mountpoint = Input(name='device_path') attach = Button('Attach') cancel = Button('Cancel') reset = Button('Reset') entities = View.nested(VolumeAttachInstanceEntities)
class DetachInstanceView(VolumeView): @property def is_displayed(self): expected_title = 'Detach Cloud Volume "{name}"'.format(name=self.context['object'].name) return ( self.in_volume and self.entities.title.text == expected_title and self.entities.breadcrumb.active_location == expected_title ) instance = BootstrapSelect(name='vm_id') detach = Button('Detach') cancel = Button('Cancel') entities = View.nested(VolumeDetachInstanceEntities)
class grid_tile_icons(View): # noqa infra_provider_quad = BootstrapSwitch( VersionPicker({ Version.lowest(): 'quadicons_ems', '5.10': 'quadicons_infra_manager' })) cloud_provider_quad = BootstrapSwitch( VersionPicker({ Version.lowest(): 'quadicons_ems_cloud', '5.10': 'quadicons_cloud_manager' })) containers_provider_quad = BootstrapSwitch( 'quadicons_container_manager') host_quad = BootstrapSwitch('quadicons_host') datastore_quad = BootstrapSwitch('quadicons_storage') vm_quad = BootstrapSwitch('quadicons_vm') template_quad = BootstrapSwitch('quadicons_miq_template') long_text = BootstrapSelect('quad_truncate')
class VolumeAddForm(View): volume_name = TextInput(name='name') size = TextInput(name='size') tenant = BootstrapSelect(id='cloud_tenant_id') add = Button('Add') cancel = Button('Cancel')
class KeyPairAddForm(View): name = TextInput(id='name') public_key = TextInput(id='public_key') provider = BootstrapSelect(id='ems_id') add = Button('Add') cancel = Button('Cancel')
class visualdisplay(View): # noqa chart_theme = BootstrapSelect("display_reporttheme") time_zone = BootstrapSelect("display_timezone")
class visualstartpage(View): # noqa show_at_login = BootstrapSelect("start_page")
class visualitem(View): # noqa grid_view = BootstrapSelect("perpage_grid") tile_view = BootstrapSelect("perpage_tile") list_view = BootstrapSelect("perpage_list") reports = BootstrapSelect("perpage_reports")
class display_settings(View): # noqa chart_theme = BootstrapSelect('display_reporttheme') time_zone = BootstrapSelect('display_timezone') locale = BootstrapSelect('display_locale')
class topology_default_items(View): # noqa containers = BootstrapSelect('topology_containers_max_items')
class default_items_per_page(View): # noqa grid_view = BootstrapSelect('perpage_grid') tile_view = BootstrapSelect('perpage_tile') list_view = BootstrapSelect('perpage_list') reports = BootstrapSelect('perpage_reports')
class start_page(View): # noqa show_at_login = BootstrapSelect('start_page')