Commit df41c31e authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[ui] Fix fields order on ArchiveTransfer and Content

Closes #14025762
parent 681b8f4e28ab
......@@ -64,8 +64,9 @@ for rtype, role in at_ordered_fields:
rec.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'),
{'rvid': vid, 'novalue_label': novalue_label})
affk.set_field_kwargs('SEDAArchiveTransfer', 'title', widget=fw.TextInput({'size': 80}))
affk.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'] + at_ordered_fields)
pvdc.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'] + at_ordered_fields)
class ArchiveTransferTabbedPrimaryView(tabs.TabbedPrimaryView):
......
......@@ -76,6 +76,11 @@ affk.tag_subject_of(('SEDALanguage', 'seda_language_to', '*'), {'widget': Relati
affk.tag_subject_of(('SEDADescriptionLanguage', 'seda_description_language_to', '*'),
{'widget': RelationFacetWidget})
affk.set_fields_order('SEDAContent',
['user_cardinality', 'user_annotation'] + content_ordered_fields)
pvdc.set_fields_order('SEDAContent',
['user_cardinality', 'user_annotation'] + content_ordered_fields)
class ContentTabbedPrimaryView(tabs.TabbedPrimaryView):
__select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDAContent')
......
......@@ -155,6 +155,19 @@ for key, rql_expr in RDEF_CONSTRAINTS.items():
{'widget': ContainedRelationFacetWidget(dialog_options={'width': 800})})
bdo_ordered_fields = [
('id', 'subject'),
('user_cardinality', 'subject'),
('user_annotation', 'subject'),
('filename', 'subject'),
('seda_compressed', 'object'),
('seda_data_object_version_from', 'object'),
('seda_algorithm', 'object'),
]
affk.set_fields_order('SEDABinaryDataObject', bdo_ordered_fields)
pvdc.set_fields_order('SEDABinaryDataObject', bdo_ordered_fields)
class BinaryDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
__select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDABinaryDataObject')
tabs = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment