Django形式的语义或语义用户界面
django2-semanticui-form的Python项目详细描述
在======================= Django语义UI窗体
。。图片::https://badge.fury.io/py/django-semanticui-form.png :alt:PyPI版本 :目标:https://pypi.python.org/pypi/django-semanticui-form
。。图片::https://travis-ci.org/gokujo/django-semanticui-form.png?branch=master :目标:https://travis-ci.org/gokujo/django-semanticui-form
。。图片::https://coveralls.io/repos/gokujo/django-semanticui-form/badge.png?branch=master :目标:https://coveralls.io/r/gokujo/django-semanticui-form?branch=master
Django表单的语义(Fomantic)UI。在
一个简单的Django模板标记来使用Semantic UI <http://semantic-ui.com/>
\
这个项目是
django-bootstrap-form <https://github.com/peterbe/django-semanticui-form>
\
peterbe <https://github.com/peterbe>
\。在
我做了些修正
使用
将semanticuiform
添加到INSTALLED_APPS
中。在
在模板顶部加载我们的模板标记:
{% load semanticui %}
然后渲染表单:
^{pr2}$要使表单具有inline元素,请更改|semanticui
模板
标记到|semanticui_inline
。::
<form class="ui form">
<legend>Form Title</legend>
{% csrf_token %}
{{ form|semanticui_inline }}
<button class="ui button" type="submit">Submit</button>
</form>
演示
还没有。在
- 项目
标签: