<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="close()" aria-hidden="true">&times;</button>
    <h1 class="modal-title">{{"Metadata" | translate}}</h1>
</div>
<div class="modal-body">
    <formly-form ng-show="currentPage == 'Metadata'" fields="metadataSchema" result="metadataValues" options="metadataFormOptions" name="metaForm">
    </formly-form>
    <div ng-show="currentPage == 'Mail'">
        {{'Metadata has been changed, do you wish to inform the participants?' | translate}}
        <br />
        <br />
        <div class="form-group">
            <label>{{'Subject' | translate}}</label>
            <input type="text" class="form-control" ng-model="subject" />
        </div>
        <div class="form-group">
            <label>{{'Message' | translate}}</label>
            <textarea class="form-control" rows="10" toolbar-configuration="CourseManagement" ui-tinymce="tinyMceOptions" style="resize: vertical" ng-model="body"></textarea>
        </div>
        <div class="checkbox">
            <label>
                <input type="checkbox" ng-model="alsoSendToWaitingList"> {{'Also send to people on the waitinglist' | translate}}
            </label>
        </div>
    </div>
</div>
<div class="modal-footer" ng-show="currentPage == 'Metadata'">
    <button ng-disabled="working" ng-click="saveMetadata()" class="btn btn-primary wiz-btn-padding">{{'Save' | translate}}</button>
    <button ng-disabled="working" ng-click="close()" class="btn btn-default wiz-btn-padding">{{'Close' | translate}}</button>
</div>
<div class="modal-footer" ng-show="currentPage == 'Mail'">
    <button ng-disabled="working" ng-click="sendEmail()" class="btn btn-primary wiz-btn-padding">{{'Send' | translate}}</button>
    <button ng-disabled="working" ng-click="close()" class="btn btn-default wiz-btn-padding">{{'Close' | translate}}</button>
</div>
