【发布时间】:2017-06-01 18:45:26
【问题描述】:
我有一个 Django 1.8 的注册表单。我要求用户选择“我已阅读并同意使用条款”复选框。问题出在标签和布尔字段复选框位于两行的形式上。例如“条款和条件”第一行、复选框和帮助提示 - 第二行。有什么办法可以将所有内容都集中在一行中:
条款和条件[BooleanField]复选框
forms.py
..... iAgree = forms.BooleanField(label=_("条款和条件"))
addm.html
...
<p>
{{userform.iAgree.label_tag}}
{{userform.iAgree}}
<a title="Please accept that you have read the Terms of Use" href="#" class="helpIcon tooltip"><span title="help"></span></a> </label>
</p>
【问题讨论】: