[sidebar] Showing basic information on side panel
[u/erikhf/frm.git] / src / components / sidebar / sidebar.html
1 <div>
2     <div *ng-if="activeOrgUnit">
3         <div class="form-group">
4             <label>Name</label>
5             <input class="form-control" type="text" [(ng-model)]="activeOrgUnit.name" [disabled]="!editmode">
6         </div>
7         <div class="form-group">
8             <label>Shortname</label>
9             <input class="form-control" type="text" [(ng-model)]="activeOrgUnit.shortName" [disabled]="!editmode">
10         </div>
11         <fieldset class="form-group">
12             <legend>Group(s)</legend>
13             <div *ng-for="#group of activeOrgUnit.organisationUnitGroups">
14                 <input class="form-control" type="text" [(ng-model)]="group.name" [disabled]="!editmode">
15             </div>
16         </fieldset>
17         <button class="btn btn-default" (click)="editmode = !editmode">Edit</button>
18     </div>
19 </div>