## -*- coding: utf-8; -*-
<%inherit file="/batch/view.mako" />
<%def name="extra_styles()">
${parent.extra_styles()}
${h.stylesheet_link(request.static_url('tailbone:static/css/purchases.css'))}
%def>
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('{}.download_excel'.format(permission_prefix)):
${h.link_to("Download {} as Excel".format(model_title), url('{}.download_excel'.format(route_prefix), uuid=batch.uuid))}
% endif
%def>
<%def name="render_row_grid_tools()">
${parent.render_row_grid_tools()}
% if not batch.executed and not batch.complete and master.has_perm('edit_row'):
% endif
%def>
<%def name="render_this_page_template()">
${parent.render_this_page_template()}
% if not batch.executed and not batch.complete and master.has_perm('edit_row'):
% endif
%def>
<%def name="modify_this_page_vars()">
${parent.modify_this_page_vars()}
% if not batch.executed and not batch.complete and master.has_perm('edit_row'):
% endif
%def>
<%def name="make_this_page_component()">
${parent.make_this_page_component()}
% if not batch.executed and not batch.complete and master.has_perm('edit_row'):
% endif
%def>
${parent.body()}