diff --git a/fields/ref.py b/fields/ref.py index 777daf8..28b69f0 100644 --- a/fields/ref.py +++ b/fields/ref.py @@ -231,80 +231,79 @@ class Ref(Field): # PX that displays referred objects as a list pxViewList = Px(''' -
- :collapse.px - :_(subLabel) - (:totalNumber) - :field.pxAdd - - :field.pxLink - - -
+
+
+ :collapse.px + :_(subLabel) + (:totalNumber) + :field.pxAdd + + :field.pxLink + + +
- - :tool.pxNavigate + + :tool.pxNavigate - -

:_('no_ref')

+ +

:_('no_ref')

- - - + +
+ - - - - - - - :obj.pxViewAsTied -
- - - :_(refField.labelId) - :field.pxSortIcons - :tool.pxShowDetails -
- - - :field.pxGlobalActions - - - :tool.pxNavigate - - - ''') + + + + + + + :_(refField.labelId) + :field.pxSortIcons + :tool.pxShowDetails + + + + :obj.pxViewAsTied + + + :field.pxGlobalActions + + :tool.pxNavigate + + +
''') # PX that displays the list of objects the user may select to insert into a # ref field with link="list". pxViewPickList = Px(''' :field.getCbJsInit(zobj) -
:field.pxViewPickList
+ :field.pxViewPickList -
:field.pxViewList
- :field.pxViewList -
+ var2="subLabel=linkList and \ + 'selected_objects' or None">:field.pxViewList
:getattr(field, 'pxView%s' % \ render.capitalize()) ''') diff --git a/gen/wrappers/__init__.py b/gen/wrappers/__init__.py index 670c8d9..ff5ac99 100644 --- a/gen/wrappers/__init__.py +++ b/gen/wrappers/__init__.py @@ -303,17 +303,17 @@ class AbstractWrapper(object): # This PX displays an object's history pxHistory = Px(''' - +
:tool.pxNavigate @@ -370,7 +370,7 @@ class AbstractWrapper(object): - ''') +
''') pxTransitions = Px('''
- -
- -
+ :obj.pxHistory