Skip to content

Commit 6243b36

Browse files
authored
Merge pull request #53 from flaiming/form-help-text
Form help text
2 parents a17d095 + c24c234 commit 6243b36

File tree

1 file changed

+4
-1
lines changed
  • crudbuilder/templates/crudbuilder/widgets

1 file changed

+4
-1
lines changed

crudbuilder/templates/crudbuilder/widgets/form.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
{{ field|label_with_class:"col-sm-2 control-label" }}
88
<div class="col-xs-4">
99
{{ field|input_with_class:"form-control" }}
10+
{% if field.help_text %}
11+
<p class="help-block">{{ field.help_text|safe }}</p>
12+
{% endif %}
1013
{{ field.errors }}
1114
</div>
1215
</fieldset>
@@ -16,4 +19,4 @@
1619
<input type="submit" value="Save" class="btn btn-success" />
1720
</div>
1821
</div>
19-
</form>
22+
</form>

0 commit comments

Comments
 (0)