-
Notifications
You must be signed in to change notification settings - Fork 7
/
ViewIdentitySwitcher.ascx
32 lines (32 loc) · 1.83 KB
/
ViewIdentitySwitcher.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<%@ Control Language="C#" Inherits="DNN.Modules.IdentitySwitcher.ViewIdentitySwitcher"
AutoEventWireup="true" Explicit="True" CodeBehind="ViewIdentitySwitcher.ascx.cs" %>
<div ng-app="dnn.identityswitcher" class="ng-cloak" ng-controller="IdentitySwitcherController as vm" runat="server" id="divBaseDiv">
<div class="is_SearchRow" ng-show="!vm.moduleInstance.value.SwitchUserInOneClick">
<div class="is_SearchLabel">
<span class="SubHead">{{vm.moduleInstance.value.FilterText}}</span>
</div>
<div class="is_SearchTask">
<input type="text" class="NormalTextBox_is_SearchText" ng-model="vm.selectedSearchText">
<span class="is_SearchSeparator"></span>
<select class="NormalTextBox_is_SearchMenu" ng-model="vm.selectedItem">
<option ng-repeat="option in vm.searchItems" value="{{option}}">{{option}}</option>
</select>
<button class="CommandButton" type="button" ng-click="vm.search()">
<img src="/images/icon_search_16px.gif" title="Filter" alt="Filter" />
</button>
</div>
</div>
<div class="is_Clear"></div>
<div class="is_SwitchRow">
<div class="is_SwitchLabel">
<span class="SubHead">{{vm.moduleInstance.value.SwitchToText}}</span>
</div>
<div class="is_SwitchTask">
<select class="NormalTextBox_is_SearchMenu" ng-model="vm.selectedUser" ng-options="user as user.userAndDisplayName for user in vm.foundUsers" ng-change="vm.userSelected()">
</select>
<button class="CommandButton" type="button" ng-click="vm.switchUser()" ng-show="!vm.moduleInstance.value.SwitchUserInOneClick">
<img src="/images/action_refresh.gif" title="Switch identity" alt="Switch identity" />
</button>
</div>
</div>
</div>