from iommi.debug import ( endpoint__debug_tree, iommi_debug_on, ) from iommi.style import Style from iommi.asset import Asset select2_assets = dict( select2_js=Asset.js( attrs__src= 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js', ), select2_css=Asset.css(attrs=dict( href= 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css', )), ) base = Style( internal=True, base_template='iommi/base.html', content_block='content', root=dict( endpoints__debug_tree=dict( include=lambda endpoint, **_: iommi_debug_on(), func=endpoint__debug_tree, ), assets=dict( jquery=Asset.js( attrs=dict( src='https://code.jquery.com/jquery-3.4.1.js',
from iommi.asset import Asset bootstrap_base = Style( base, assets=dict( css=Asset.css( attrs=dict( href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css', integrity='sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh', crossorigin='anonymous', ), ), popper_js=Asset.js( attrs=dict( src='https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js', integrity='sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo', crossorigin='anonymous', ) ), js=Asset.js( attrs=dict( src='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js', integrity='sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6', crossorigin='anonymous', ) ), ), Container=dict( tag='div', attrs__class={ 'container': True,
from iommi.style import Style from iommi.asset import Asset select2_assets = dict( select2_js=Asset.js( attrs__src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js', ), select2_css=Asset.css( attrs=dict( href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css', ) ), ) base = Style( base_template='iommi/base.html', content_block='content', assets=dict( jquery=Asset.js( attrs=dict( src='https://code.jquery.com/jquery-3.4.1.js', integrity='sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=', crossorigin='anonymous', ), after=-1, ), ), Form=dict( template='iommi/form/form.html', actions_template='iommi/form/actions.html', ),