<div class="projectspace lt-module-page" ng-controller="HelpdeskInstanceAdministration 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"
         helpdesk-Instance-List
         appname="Helpdesk"
         onselect="InstanceAdministration.instanceSelected"
         label-title="{{'Edit Service Desk 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"
             label-site-creation-permission="{{'Ticket creation permissions' | translate}}"
             label-admins-radio="{{'Wizdom administrators and super supporters' | translate}}"
             label-specific-people-and-groups-radio-info="{{'(inclusive Wizdom administrators and super supporters)' | translate}}"
             label-administrators="{{'Super supporters (can see all tickets)' | translate}}"
             ></div>
        <div ng-if="InstanceAdministration.instancePage == 'instanceSettings'" 
             helpdesk-instance-configuration
             instance="InstanceAdministration.currentInstance">      
        </div>
        <!--<div ng-if="InstanceAdministration.instancePage == 'siteTypes'"
                 wizdom365-Business-Apps-Sitetype-list
                 instance="InstanceAdministration.currentInstance"
                 onselect="InstanceAdministration.sitetypeSelected"
                 label-title="{{'Categories' | translate}}"
                 label-create-button="{{'Create Category' | translate}}"
                 label-dialog-create-title="{{'Create Category' | translate}}"></div>-->
        <div ng-if="InstanceAdministration.instancePage == 'siteTypes'"
             wizdom365-Helpdesk-Sitetype-list
             onselect="InstanceAdministration.sitetypeSelected"
             instance="InstanceAdministration.currentInstance"></div>
        <div ng-if="InstanceAdministration.instancePage == 'metadata'"
             wizdom365-Business-Apps-Instance-Metadata
             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 == 'sitetypeSettings'"
         wizdom365-Helpdesk-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 category' | translate}}"></div>
</div>