Skip to content

Commit c2c3c4d

Browse files
committed
Use bs_field_class callback for field.class property when registering array macro.
1 parent e185e04 commit c2c3c4d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

HISTORY.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
History
33
=======
44

5-
1.4 (unreleased)
6-
----------------
5+
1.3.1 (unreleased)
6+
------------------
77

8-
- No changes yet.
8+
- Use ``bs_field_class`` callback for ``field.class`` property when registering
9+
``array`` macro.
10+
[rnix]
911

1012
1.3 (2017-03-01)
1113
----------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44

55

6-
version = '1.4.dev0'
6+
version = '1.3.1.dev0'
77
shortdesc = 'Bootstrap Styles for YAFOWIL'
88
longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
99
longdesc += open(os.path.join(os.path.dirname(__file__), 'HISTORY.rst')).read()

src/yafowil/bootstrap/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def register_macros():
9090
# yafowil.widget.array
9191
factory.register_macro('array', 'field:label:help:error:array', {
9292
'array.label': ' ',
93-
'field.class': 'form-group',
93+
'field.class': bs_field_class,
9494
'label.class_add': 'col-sm-2',
9595
'array.class_add': 'col-sm-10',
9696
'help.class_add': 'col-sm-offset-2 col-sm-10',

0 commit comments

Comments
 (0)