mirror of
https://github.com/wassname/pyramid_formalchemy.git
synced 2026-06-27 16:10:40 +08:00
allow to access default action by attr
This commit is contained in:
@@ -390,11 +390,12 @@ delete = UIButton(
|
||||
cancel = UIButton(
|
||||
id='cancel',
|
||||
content=_('Cancel'),
|
||||
permission='view',
|
||||
icon='ui-icon-circle-arrow-w',
|
||||
attrs=dict(href="request.fa_url(request.model_name)"),
|
||||
)
|
||||
|
||||
defaults_actions = dict(
|
||||
defaults_actions = RequestActions(
|
||||
listing_buttons=Actions(new),
|
||||
new_buttons=Actions(save, save_and_add_another, cancel),
|
||||
show_buttons=Actions(edit, back),
|
||||
|
||||
Reference in New Issue
Block a user