changeset 12519 | aff5d3498f68 |
12518:12e8b65146d9 | 12519:aff5d3498f68 |
---|---|
1 from cubicweb.web import formwidgets as wdgs |
|
2 from cubicweb.web.views import uicfg |
|
3 |
|
4 # fields required in the schema but automatically set by hooks. Tell about that |
|
5 # to the ui |
|
6 _pvdc = uicfg.autoform_field_kwargs |
|
7 _pvdc.tag_attribute(('File', 'data_name'), { |
|
8 'required': False, 'widget': wdgs.TextInput({'size': 45})}) |
|
9 _pvdc.tag_attribute(('File', 'data_format'), {'required': False}) |