-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathusers.aspx
85 lines (82 loc) · 4.67 KB
/
users.aspx
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<%@ Page Title="Users" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeFile="users.aspx.cs" Inherits="Users" %>
<%@ Register Src="~/controls/UsrControl.ascx" TagName="usr" TagPrefix="uc" %>
<asp:Content ID="HeadContentData" ContentPlaceHolderID="HeaddContent" runat="server">
<%=System.Web.Optimization.Styles.Render("~/bundles/users_css")%>
<%=System.Web.Optimization.Scripts.Render("~/bundles/users_js")%>
<script src="<%=Settings.CurrentSettings.ANGULARCDN.ToString()%>angular.min.js"></script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server" EnableViewState="false">
<div ng-app="mpsapplication" ng-controller="mpscontroller">
<div class="alert alert-danger savebutton btn-group-vertical" ng-cloak ng-show="changed">
<button type="button" class="btn btn-lg btn-info" ng-click="save()">Save</button>
<button type="button" class="btn btn-lg btn-danger" ng-click="discard()">Discard</button>
</div>
<div class="table-responsive table-sm">
<table class="table table-hover table-bordered">
<thead class="thead-dark">
<tr class="info">
<th>IM</th>
<th>Name</th>
<th>Birthday</th>
<th>Address</th>
<th>Login</th>
<th>Password</th>
<th>Email</th>
<th>Phone</th>
<th>Admin</th>
<th>WORKFLOW</th>
<th>RETIRED</th>
<th>CLIENT</th>
<th>OFFICE</th>
<th>ESTIMATION ALARM</th>
<th>TEST FILTER</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="u in users" class="{{(u.changed?'data-changed':'')+(u.RETIRED ? 'table-secondary':'')}}">
<td>
<button ng-click="changeImg(u.ID)" type="button" class="btn btn-info p-0">
<uc:usr size="30" runat="server" userid="u.TTUSERID" style="float: left" />
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.PERSON_NAME" ng-change="itemchanged(u)"></td>
<td align="center">
<input class="form-control form-control-sm border-0" ng-disabled="readonly" type="date" ng-model="u.BIRTHDAY" ng-change="itemchanged(u)"></td>
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.ADDRESS" ng-change="itemchanged(u)"></td>
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.LOGIN" ng-change="itemchanged(u)"></td>
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="password" ng-model="u.PASSWORD" ng-change="itemchanged(u)" placeholder="********"></td>
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.EMAIL" ng-change="itemchanged(u)"></td>
<td>
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.PHONE" ng-change="itemchanged(u)"></td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.ISADMIN" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.INWORK" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.RETIRED" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.ISCLIENT" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.ISOFFICE" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-check-input" ng-disabled="readonly" type="checkbox" ng-model="u.ESTIMALARM" ng-change="itemchanged(u)">
</td>
<td align="center">
<input class="form-control form-control-sm border-0" ng-disabled="readonly" class="intable-data-input" type="text" ng-model="u.TESTFILTER" ng-change="itemchanged(u)"></td>
</td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn btn-outline-secondary btn-sm" ng-show="!readonly" ng-click="newUser()">Add New User</button>
<button type="button" class="btn btn btn-outline-secondary btn-sm" ng-show="!readonly" ng-click="filter = !filter">Toggle Active Users</button>
</div>
</div>
</asp:Content>