## -*- coding: utf-8; -*-
<%inherit file="/master/index.mako" />
<%def name="grid_tools()">
${parent.grid_tools()}
% if master.has_perm('export'):
${h.form(url('{}.refresh_results'.format(route_prefix)), class_='control', ref='refreshResultsForm', **{'@submit': 'refreshingResults = true'})}
${h.csrf_token(request)}
{{ refreshingResults ? "Working, please wait..." : "Refresh Results" }}
${h.end_form()}
${h.form(url('{}.export'.format(route_prefix)), class_='control', **{'@submit': 'exportingInvoices = true'})}
${h.csrf_token(request)}
{{ exportingInvoices ? "Working, please wait..." : `Export ${'$'}{this.exportingInvoicesCount} Invoices` }}
${h.end_form()}
% endif
%def>
<%def name="modify_this_page_vars()">
${parent.modify_this_page_vars()}
% if master.has_perm('export'):
% endif
%def>
${parent.body()}