HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/klausurenweb/aaw/pages/input_type.py
from .base import BasePage
from ..globals import INPUT_TYPES, STRINGS
from ..callbacks import choose_input_type, go_home
import streamlit as st


__inputtypepage__ = BasePage(name='input_type')


def input_type():
    #########################
    # Set up page structure #
    #########################

    __inputtypepage__.sidebar()

    __inputtypepage__.extend(li=[
        st.markdown('''# {}'''.format(STRINGS["INPUT_TYPE_HEADER"])),
    ])

    input_radio = st.empty()

    col1, col2 = st.columns(2)

    with col1:
        btn_back = st.empty()
    with col2:
        btn = st.empty()

    #############################
    # Fill all empty containers #
    #############################

    input_radio.radio("input_type", INPUT_TYPES, key='tmp_input_type', label_visibility="collapsed")

    btn.button(label=STRINGS["INPUT_TYPE_BUTTON"], on_click=choose_input_type)
    btn_back.button(label=STRINGS["BUTTON_BACK"], on_click=go_home)