<div class="projectspace lt-module-page" ng-controller="CourseManagementInstanceAdministration as InstanceAdministration">

    <div class="lt-module-page__top lt-module-page-top">
        <div class="lt-module-page-top__title">
            <h1>Administration</h1>
        </div>
        <div class="lt-module-page-top__actions">
            
        </div>
    </div>
    
    <div ng-if="!InstanceAdministration.currentInstance"
            wizdom365-Business-Apps-Instance-List
            appname="CourseManagement"
            onselect="InstanceAdministration.instanceSelected"
            label-title="{{'Edit Event instances' | translate}}"></div>

    <div ng-if="!InstanceAdministration.sitetypePage">
        <div ng-if="InstanceAdministration.instancePage == 'instanceSettings'"
                wizdom365-Business-Apps-instance-settings
                hide-Repository-Settings="true"
                instance="InstanceAdministration.currentInstance"></div>
        <div ng-if="InstanceAdministration.instancePage == 'siteTypes'"
                wizdom365-Business-Apps-Sitetype-list
                instance="InstanceAdministration.currentInstance"
                onselect="InstanceAdministration.sitetypeSelected"
                hide-sitetype-settings="true"
                label-title="{{'Course types' | translate}}"
                label-create-button="{{'Create course type' | translate}}"
                label-dialog-create-title="{{'Create course type' | translate}}"></div>
        <div ng-if="InstanceAdministration.instancePage == 'metadata'"
                wizdom365-Business-Apps-Instance-Metadata
                instance="InstanceAdministration.currentInstance"></div>
        <div ng-if="InstanceAdministration.instancePage == 'configuration'"
                wizdom365-course-management-instance-configuration
                instance="InstanceAdministration.currentInstance">Implement this </div>
    </div>


    <div ng-if="InstanceAdministration.sitetypePage == 'sitetypeSettings'"
            wizdom365-course-management-sitetype-configuration
            instance="InstanceAdministration.currentInstance"
            sitetype="InstanceAdministration.currentSitetype"
            onsitetypeupdated="InstanceAdministration.sitetypeUpdated"
            onsitetypedeleted="InstanceAdministration.sitetypeDeleted"></div>
    <div ng-if="InstanceAdministration.sitetypePage == 'roles'"
            wizdom365-Business-Apps-Sitetype-Roles
            instance="InstanceAdministration.currentInstance"
            sitetype="InstanceAdministration.currentSitetype"></div>
    <div ng-if="InstanceAdministration.sitetypePage == 'metadata'"
            wizdom365-Business-Apps-Sitetype-Metadata
            instance="InstanceAdministration.currentInstance"
            sitetype="InstanceAdministration.currentSitetype"
            label-add-to-sitetype="{{'add to course type' | translate}}"></div>
    
</div>