Flask WTForms Display Field Title In Button Only
I'm using the following WTForm class in my Flask app:
class CancelJob(Form):
cancel_button = SubmitField('Cancel It!')
jk_button = SubmitField('Just Kidding')
When rendered (using the render_field macro provided here) it looks like this:
What I can't figure out is how to make the text appear inside the button only (ie no title above the button).
链接地址: http://www.djcxy.com/p/61764.html上一篇: WTForms:动态创建名称和ID属性