views.py 文件源码

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

项目:studentsdb 作者: PyDev777 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super(CustSetPswForm, self).__init__(*args, **kwargs)

        self.helper = FormHelper(self)
        self.helper.form_class = 'form-horizontal'
        self.helper.label_class = 'col-md-3'
        self.helper.field_class = 'col-md-9'
        self.helper.error_text_inline = False
        self.helper.layout = Layout(
            HTML(u"<p>%s</p>" % _(u"Enter your new password below to reset your password:")),
            Fieldset('', 'new_password1', 'new_password2'),
            ButtonHolder(Submit('submit_button', _(u'Confirm')),
                         Button('cancel_button', _(u'Cancel'), css_class='btn-default')))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号