<span>
<div class="modal-header">
    <h3>Edit Schedule</h3>
</div>
<div class="modal-body">
    <onms-report-details ng-if="report" ng-model="report" options="options" on-invalid-change="onReportFormInvalidStateChange(invalidState)" on-global-error="setGlobalError(response)"></onms-report-details>
</div>
<div class="modal-footer">
    <button class="btn btn-danger" id="action.cancel.{{meta.triggerName}}" ng-click="$close()"><i class="fas fa-xmark"></i> Cancel</button>
    <button class="btn btn-primary" id="action.update.{{meta.triggerName}}" ng-click="update()" ng-disabled="reportForm.$invalid || !report.scheduleOptions.isValid() || (report.isGrafanaReport() && !report.isGrafanaEndpointSelected())"><i class="fas fa-floppy-disk"></i> Update</button>
</div>
</span>