<div class="panel panel-default projectspace" ng-controller="Wizdom365ProjectspaceAdministrationSitetype">
	<div class="panel-heading">
		<h3 class="panel-title">
			{{selectedProjectType.name}}
		</h3>
	</div>
	<div class="panel-body">

        <form class="form" role="form" name="form" ng-show="settingsField.type !== ''">
            <div class="form-group">
                <label>{{'Name' | translate}}</label>
                <input type="text" class="form-control" ng-model="selectedProjectType.name">
            </div>
            <div class="form-group">
                <label>{{'Template' | translate}}</label>
                <select class="form-control" ng-model="selectedTemplate" ng-options="template.displayName group by template.group for template in templates"></select>
            </div>
            <div class="form-group">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" ng-model="selectedProjectType.addDefaultAssociatedGroups" />
                        {{'Add default associated groups' | translate}}
                    </label>
                </div>
                <div ng-show="selectedProjectType.addDefaultAssociatedGroups">
                    <div class="radio">
                        <label>
                            <input type="radio" ng-model="selectedProjectType.createDefaultAssociatedGroups" ng-value="true" /> {{'Create new groups' | translate}}
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" ng-model="selectedProjectType.createDefaultAssociatedGroups" ng-value="false" /> {{'Use existing groups' | translate}}
                        </label>
                    </div>
                </div>
            </div>

        </form>

		<button class="btn btn-secondary"
				ng-disabled="saving"
				ng-click="deleteProjectType()"
				ng-confirm-click="Are you sure to delete this?">
			{{saving ? 'Saving' : 'Delete' | translate}}
		</button>
		<button class="btn btn-success"
				ng-disabled="saving"
				ng-click="saveProjectType(selectedTemplate)">
			{{saving ? 'Saving' : 'Save configuration' | translate}}
		</button>

	</div>
</div>