#NEWLINE# def submit_row( context ) : #NEWLINE# #INDENT# '\n    Displays the row of buttons for delete and save.\n    ' #NEWLINE# opts = context [ 'opts' ] #NEWLINE# change = context [ 'change' ] #NEWLINE# is_popup = context [ 'is_popup' ] #NEWLINE# save_as = context [ 'save_as' ] #NEWLINE# return { #NEWLINE# #INDENT# 'onclick_attrib' : ( ( opts . get_ordered_objects ( ) and change and 'onclick="submitOrderForm();"' ) or '' ) , #NEWLINE# 'show_delete_link' : ( ( not is_popup ) and context [ 'has_delete_permission' ] and ( change or context [ 'show_delete' ] ) ) , #NEWLINE# 'show_save_as_new' : ( ( not is_popup ) and change and save_as ) , #NEWLINE# 'show_save_and_add_another' : ( context [ 'has_add_permission' ] and ( not is_popup ) and ( ( not save_as ) or context [ 'add' ] ) ) , #NEWLINE# 'show_save_and_continue' : ( ( not context ) and context [ 'has_change_permission' ] ) , #NEWLINE# 'is_popup' : is_popup , #NEWLINE# 'show_save' : True , #NEWLINE# #UNINDENT# }