def placeholdized(form):
for field in form.fields.values():
- field.widget.attrs['placeholder'] = field.label
+ field.widget.attrs['placeholder'] = field.label + ('*' if field.required else '')
return form
# override to customize form look
template = "ajaxable/form.html"
submit = _('Send')
+ action = ''
title = ''
success_message = ''
"honeypot": self.honeypot,
"placeholdize": self.placeholdize,
"submit": self.submit,
+ "action": self.action,
"response_data": response_data,
"ajax_template": self.template,
"view_args": args,