def __init__(self, *args, **kwargs):
super(FrontProfileForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_tag = False
self.helper.form_class = 'form-horizontal'
self.helper.label_class = 'col-lg-4'
self.helper.field_class = 'col-lg-8'
self.helper.layout = Layout(
# Div('picture', css_class='btn-file'),
Fieldset("Details",
'institution',
'country',
'phone',
'picture'),
Field('comment'),
Div(
Submit('delete_profile', 'Delete your account',
css_class='btn-danger btn btn-md',
type="submit",
data_placement="left",
data_toggle='confirmation'),
Submit('update', 'Update', css_class="btn btn-md btn-primary center"),
css_class='pull-right',
style='margin-top:1%; margin-right:1%'
)
)
评论列表
文章目录