class ButtonGroupFormCommon(AutomateCustomizationView): text = Input(name='name') display = Checkbox(name='display') hover = Input(name='description') image = FonticonPicker('button_icon') icon_color = ColourInput(id="button_color") cancel_button = Button('Cancel')
class TestForm(View): h3 = Text(".//h3") input1 = TextInput(name="input1") input2 = Checkbox(id="input2") input3 = ColourInput(id="colourinput") input4 = Checkbox(name="input1_disabled") input5 = Checkbox(id="input2_disabled") fileinput = FileInput(id="fileinput")
class TestForm(View): h3 = Text('.//h3') input1 = TextInput(name='input1') input2 = Checkbox(id='input2') input3 = ColourInput(id='colourinput') input4 = Checkbox(name='input1_disabled') input5 = Checkbox(id='input2_disabled') fileinput = FileInput(id='fileinput')
class ButtonGroupForm(ServicesCatalogView): title = Text("#explorer_title_text") text = Input(name="name") display = Checkbox(name="display") hover = Input(name="description") icon = FonticonPicker("button_icon") icon_color = ColourInput(id="button_color")
class ButtonGroupFormCommon(AutomateCustomizationView): text = Input(name="name") display = Checkbox(name="display") hover = Input(name="description") image = FonticonPicker("button_icon") icon_color = ColourInput(id="button_color") assign_buttons = MultiBoxOrderedSelect( available_items="available_fields", chosen_items="selected_fields", move_into="Move selected fields right", move_from="Move selected fields left", move_up="Move selected fields up", move_down="Move selected fields down", ) cancel_button = Button("Cancel")
class options(PotentiallyInvisibleTab): # noqa form = ConditionalSwitchableView(reference="type") type = BootstrapSelect("button_type") @form.register("Default") class ButtonFormDefaultView(View): # noqa dialog = BootstrapSelect("dialog_id") @form.register("Ansible Playbook") class ButtonFormAnsibleView(View): # noqa playbook_cat_item = BootstrapSelect("service_template_id") inventory = AutomateRadioGroup(locator=".//input[@name='inventory']/..") hosts = Input(name="hosts") text = Input(name="name") display = Checkbox(name="display") hover = Input(name="description") image = FonticonPicker("button_icon") icon_color = ColourInput(id="button_color") open_url = Checkbox("open_url") display_for = Select(id="display_for") submit = Select(id="submit_how")