def __init__(self, *args, **kwargs):
super(SubscriberSendSMSForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-SubscriberSendSMSForm'
self.helper.form_method = 'post'
params = {
'imsi': kwargs.get('initial').get('imsi')
}
self.helper.form_action = urlresolvers.reverse('subscriber-send-sms',
kwargs=params)
self.helper.form_class = 'col-xs-12 col-md-8 col-lg-6'
self.helper.layout = Layout(
'imsi',
FieldWithButtons('message',
StrictButton('Send', css_class='btn-default',
type='submit')))
dashboard_forms.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录