[ui] Nicer fields order for typed reference alternatives.
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Jul 2016 14:47:16 +0200
changeset 1415 82a0bb69d528
parent 1414 9ee425bbaedc
child 1416 915e2adf4bc0
[ui] Nicer fields order for typed reference alternatives.
views/content.py
--- a/views/content.py	Tue Jul 12 14:37:13 2016 +0200
+++ b/views/content.py	Tue Jul 12 14:47:16 2016 +0200
@@ -372,3 +372,13 @@
 dor_afs.__module__ = __name__
 dor_afs.__select__ = is_instance('SEDADataObjectReference') & is_typed_reference()
 dor_afs.tag_attribute(('SEDADataObjectReference', 'user_cardinality'), 'main', 'hidden')
+
+for etype in ('SEDAAltIsPartOfArchiveUnitRefId',
+              'SEDAAltIsVersionOfArchiveUnitRefId',
+              'SEDAAltReferencesArchiveUnitRefId',
+              'SEDAAltReplacesArchiveUnitRefId',
+              'SEDAAltRequiresArchiveUnitRefId'):
+    affk.set_fields_order(etype, [('seda_data_object_reference', 'object'),
+                                  ('seda_repository_object_pid', 'object'),
+                                  ('seda_archive_unit_ref_id_from', 'object'),
+                                  ('seda_repository_archive_unit_pid', 'object')])