<div class="projectspace lt-module-page" ng-controller="ProjectManagementInstanceAdministration 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="Project space" 
         onselect="InstanceAdministration.instanceSelected"
         label-title="{{'Edit workspace instances' | translate}}"
         ></div>
    
    <div ng-if="!InstanceAdministration.sitetypePage">
        <div ng-if="InstanceAdministration.instancePage == 'instanceSettings'" 
             wizdom365-Business-Apps-instance-settings 
             instance="InstanceAdministration.currentInstance"></div>
        <div ng-if="InstanceAdministration.instancePage == 'siteTypes'" 
             wizdom365-Business-Apps-Sitetype-list 
             instance="InstanceAdministration.currentInstance" 
             onselect="InstanceAdministration.sitetypeSelected"
             label-title="{{'Workspace types' | translate}}"
             label-create-button="{{'Create workspace type' | translate}}"
             label-dialog-create-title="{{'Create workspace type' | translate}}"
             ></div>
        <div ng-if="InstanceAdministration.instancePage == 'metadata'" 
             wizdom365-Business-Apps-Instance-Metadata 
             instance="InstanceAdministration.currentInstance"></div>
        <div ng-if="InstanceAdministration.instancePage == 'roleReplace'"
             wizdom365-Business-Apps-Instance-rolereplace
             instance="InstanceAdministration.currentInstance"></div>
    </div>
    

    <div ng-if="InstanceAdministration.sitetypePage == 'sitetypeSettings'" 
         wizdom365-Business-Apps-Sitetype-Settings 
         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 sitetype' | translate}}"
         ></div>
</div>