diff --git a/fields/action.py b/fields/action.py index ecdf479..c1db238 100644 --- a/fields/action.py +++ b/fields/action.py @@ -28,20 +28,20 @@ class Action(Field): # PX for viewing the Action button. pxView = pxCell = Px('''
''') # It is not possible to edit an action, not to search it. diff --git a/fields/ref.py b/fields/ref.py index 9d877b5..bb46894 100644 --- a/fields/ref.py +++ b/fields/ref.py @@ -56,23 +56,26 @@ class Ref(Field): # objects (delete many, unlink many,...) pxGlobalActions = Px(''' - + style=":'%s; %s' % (url('linkMany', bg=True), \ + ztool.getButtonWidth(label))"/> + style=":'%s; %s' % (url(imgName, bg=True), \ + ztool.getButtonWidth(label))"/> + style=":'%s; %s' % (url('deleteMany', bg=True), \ + ztool.getButtonWidth(label))"/> ''') # This PX displays icons for triggering actions on a given referenced object @@ -152,9 +155,10 @@ class Ref(Field): '%d,%s' % (startNumber, q('CreateWithoutForm'))); noFormCall=not field.addConfirm and noFormCall or \ 'askConfirm(%s, %s, %s)' % (q('script'), q(noFormCall), \ - q(addConfirmMsg))" - style=":url('buttonAdd', bg=True)" value=":_('add_ref')" - onclick=":field.noForm and noFormCall or formCall"/>''') + q(addConfirmMsg)); + label=_('add_ref')" + style=":'%s; %s' % (url('add', bg=True), ztool.getButtonWidth(label))" + value=":label" onclick=":field.noForm and noFormCall or formCall"/>''') # This PX displays, in a cell header from a ref table, icons for sorting the # ref field according to the field that corresponds to this column. @@ -215,7 +219,9 @@ class Ref(Field):
-
+