跳转到主要内容

为wtform小部件提供模板

项目描述

介绍

此软件包旨在使使用wtforms更容易。

此软件包当前允许您渲染整个表单。

当前支持使用bootstrap和foundation渲染wtform小部件。

示例

class MyForm(Form):
    # special property we use to specify order fields should
    # be shown
    _order = ['age']
    age = IntegerField(u'Age')

form = MyForm(req.POST)
from wtforms_extras import render_form
render_form(form, style='bootstrap')

# or just a field
from wtforms_extras import render_field
render_field(form, 'age', style='bootstrap')

变更日志

1.1.3 - 2014-11-25

  • 移除默认字段的错误星号

1.1.2 - 2014-11-25

  • 意外的pdb

1.1.1 - 2014-11-24

  • 正确省略fieldset

1.1.0 - 2014-11-24

  • 能够使用fieldset

  • 修复始终允许HTML渲染

1.0.1 - 2014-11-13

  • 文档修复

1.0 - 2014-11-13

  • 初始发布

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

wtforms_extras-1.1.4.zip (12.0 kB 查看哈希值)

上传时间:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面