forms.py 文件源码

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

项目:MetaCI 作者: SalesforceFoundation 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super(DeleteNotificationForm, self).__init__(*args, **kwargs)
        self.helper = FormHelper()
        self.helper.form_class = 'form-vertical'
        self.helper.form_id = 'delete-notification-form'
        self.helper.form_method = 'post'
        self.helper.layout = Layout(
            FormActions(
                Submit(
                    'action',
                    'Cancel',
                    css_class='slds-button slds-button--neutral',
                ),
                Submit(
                    'action',
                    'Delete',
                    css_class='slds-button slds-button--destructive',
                ),
            ),
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号