Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
    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')
Esempio n. 4
0
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')
Esempio n. 6
0
 class visualdisplay(View):  # noqa
     chart_theme = BootstrapSelect("display_reporttheme")
     time_zone = BootstrapSelect("display_timezone")
Esempio n. 7
0
 class visualstartpage(View):  # noqa
     show_at_login = BootstrapSelect("start_page")
Esempio n. 8
0
 class visualitem(View):  # noqa
     grid_view = BootstrapSelect("perpage_grid")
     tile_view = BootstrapSelect("perpage_tile")
     list_view = BootstrapSelect("perpage_list")
     reports = BootstrapSelect("perpage_reports")
Esempio n. 9
0
 class display_settings(View):   # noqa
     chart_theme = BootstrapSelect('display_reporttheme')
     time_zone = BootstrapSelect('display_timezone')
     locale = BootstrapSelect('display_locale')
Esempio n. 10
0
 class topology_default_items(View):     # noqa
     containers = BootstrapSelect('topology_containers_max_items')
Esempio n. 11
0
 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')
Esempio n. 12
0
 class start_page(View):    # noqa
     show_at_login = BootstrapSelect('start_page')