forms.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:SaBoT 作者: froscon 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super(SponsorContactForm, self).__init__(*args, **kwargs)
        self.helper = FormHelper()
        self.helper.layout = Layout(
            Field("responded"),
            Field("companyName"),
            Field("contactEMail"),
            HTML("<p class=\"text-info\">Please ensure the correctness of the address. It will later be used in the billing process.</p>"),
            Field("street"),
            Field("zipcode"),
            Field("city"),
            Field("country"),
            Field("contactPersonFirstname"),
            Field("contactPersonSurname"),
            Field("contactPersonGender"),
            Field("contactPersonEmail"),
            Field("contactPersonLanguage"),
            Field("template"),
            Field("comment")
        )
        self.helper.add_input(Submit("Save", "Save"))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号