用于Lite的窗体生成器
lite-forms的Python项目详细描述
精简格式
一个易于使用的python库,用于构建gov.uk表单。
文档
生成窗体
Form(title='Register an organisation',
description='Part 1 of 3',
questions=[
TextInput(title='What\'s the organisation\'s name?',
name='name'),
TextInput(title='European Union registration and identification number (EORI)',
name='eori_number'),
TextInput(title='Standard Industrial Classification Number (SIC)',
description='Classifies industries by a four-digit code.',
name='sic_number'),
TextInput(title='UK VAT number',
description='9 digits long, with the first two letters indicating the'
' country code of the registered business.',
name='vat_number'),
TextInput(title='Company registration number (CRN)',
description='8 numbers, or 2 letters followed by 6 numbers.',
name='registration_number'),
],
buttons=[
Button('Save and continue', '')
],
),
安装
pipenv install lite-forms
要求
- gov.uk设计系统3.0>;