-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (77 loc) · 2.76 KB
/
index.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html ng-app="UserMnge">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>사용자 관리 DEMO APP</title>
<link rel="stylesheet" href="resources/css/bootstrap.min.css">
<link rel="stylesheet" href="resources/css/app.css">
<script type="text/javascript" src="libs/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="libs/bootstrap.min.js"></script>
<script type="text/javascript" src="libs/angular-1.0.4/angular.js"></script>
<script type="text/javascript" src="libs/angular-1.0.4/angular-resource.js"></script>
<script type="text/javascript" src="src/app.js"></script>
</head>
<body ng-controller="mainCtrl">
<div class="searchBox">
<div class="row-fluid borBox">
<div class='span12'>
<div class='form-horizontal centerOnPage' style="margin-left: -203px;">
<ul class="input-append">
<input type="text" placeholder="이름" size="16" ng-model="searchName">
<button class="btn btn-info box" type="button" ng-click="search(searchName)">
<i class='icon-white icon-search'></i>
</button>
</ul>
<button class="btn btn-info box" type="button" ng-click="insert()">
<i class='icon-white icon-plus'></i>
</button>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>이름</th>
<th>E-Mail</th>
<th>가입 날짜</th>
<th>수정</th>
<th>삭제</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in userList">
<td>{{$index}}</td>
<td><input type="text" ng-model="user.name" ng-disabled="!user.edit"></td>
<td><input type="email" ng-model="user.email" ng-disabled="!user.edit"></td>
<td><input type="date" ng-model="user.regDate" ng-disabled="!user.edit"></td>
<td class="center">
<button class="btn btn-danger" type="button" ng-show="!user.edit" ng-click="edit(user)">
<i class='icon-white icon-pencil'></i>
</button>
<button class="btn btn-info" ng-show="user.edit" type="button" ng-click="edit(user)">
<i class='icon-white icon-ok'></i>
</button>
</td>
<td class="center">
<button class="btn btn-danger" ng-click="del($index)" type="button">
<i class='icon-white icon-trash'></i>
</button>
</td>
</tr>
<tr ng-show="!userList.length">
<td colspan="6" style="text-align :center">
<span class="text-warning">데이터가 없습니다.</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>