<md-dialog>
    <form>
        <md-toolbar>
            <div class="md-toolbar-tools">
                <h2 class="flex"><span translate>Export Election Event</span></h2>
                <md-button class="md-icon-button" ng-click="exportCancel()" aria-label="{{'Close dialog'|translate}}">
                    <md-icon md-svg-src="assets/icons/ic_close_24px.svg"></md-icon>
                </md-button>
            </div>
        </md-toolbar>
        <md-dialog-content class="md-dialog-content" role="document" tabindex="-1">
            <div class="md-dialog-content-body">
                <div ng-if="exportError" class="alert alert-error">
                <p translate>Please select at least one item to export.</p>
                </div>
                <div>
                <md-checkbox id="include_electoral_event"
                             aria-label="{{'Electoral Event' | translate}}"
                             ng-model="includeElectoralEvent"
                             class="md-datatable-theme md-primary">
                    <span translate>Electoral Event data (and its related Administration Board)</span>
                </md-checkbox>
                </div>
                <div>
                <md-checkbox id="include_voting_cards"
                             aria-label="{{'Voting Cards' | translate}}"
                             ng-model="includeVotingCards"
                             class="md-datatable-theme md-primary">
                    <span translate>Voting Cards</span>
                </md-checkbox>
                </div>
                <div>
                <md-checkbox id="include_customer_specific"
                             aria-label="{{'Customer specific data' | translate}}"
                             ng-model="includeCustomerSpecific"
                             class="md-datatable-theme md-primary">
                    <span translate>Customer specific data</span>
                </md-checkbox>
                </div>
            </div>
        </md-dialog-content>
        <md-dialog-actions>
            <md-button type="button" class="md-primary" ng-click="exportCancel()"><span translate>Cancel</span></md-button>
            <md-button type="button" class="md-primary md-raised" ng-click="exportDoExport()"><span translate>Export</span></md-button>
        </md-dialog-actions>
    </form>
</md-dialog>
