DOCTYPE html html ng-app decisionItsmApp lang ru head meta charset utf

  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
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html ng-app="decisionItsmApp" lang="ru">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>fortest app</title>
<!-- Bootstrap -->
<link href="styles/vendor/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<!--<link href="../../bower_components/angular-bootstrap/ui-bootstrap-csp.css" rel="stylesheet">-->
<link rel="stylesheet" href="styles/css/bootstrap.overload.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Font -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- Favicons -->
<link rel="icon" href="favicon.ico">
<!-- Latest compiled and minified JavaScript -->
<script src="scripts/vendor/jquery/dist/jquery.js"></script>
<script src="styles/vendor/bootstrap/dist/js/bootstrap.js"></script>
<script src="scripts/vendor/angular/angular.js"></script>
<script src="scripts/vendor/angular-bootstrap/ui-bootstrap.js"></script>
<script src="scripts/vendor/jquery.serializeJSON/jquery.serializejson.js"></script>
<script src="scripts/vendor/jquery-maskedinput/dist/jquery.maskedinput.js"></script>
<script src="scripts/app/app.js"></script>
<script src="scripts/app/controllers/controller.js"></script>
<script src="scripts/app/show-modal.js"></script>
<script src="scripts/app/send-modal.js"></script>
</head>
<body>
<!-- begin navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand">Decision</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li id="fat-menu" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Иванов Иван
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li role="presentation">
<a href="" role="menuitem" tabindex="-1"><span class="fa fa-user"></span> Мой профиль</a>
</li>
<li role="presentation">
<a href="" role="menuitem" tabindex="-1"><span class="fa fa-question-circle"></span> Справка</a>
</li>
<li role="presentation" class="divider"></li>
<li role="presentation">
<a href="" role="menuitem" tabindex="-1"><span class="fa fa-sign-out"></span> Выход</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- end navbar -->
<!-- begin container -->
<div class="container-fluid" ng-controller="LoadDataCtrl as ld">
<div class="row">
<div class="col-sm-12 mgb-20">
<button class="btn btn-danger btn-lg" ng-click="removeCheckedItem($event)">Delete</button>
<button class="btn btn-success btn-lg" ng-click="createItem($event)">Create</button>
</div>
</div>
<!-- begin row -->
<div class="row">
<!-- sm-12 container contains table -->
<div class="col-sm-12" >
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr class="active">
<th>#</th>
<th>Код</th>
<th>Ссылка</th>
<th>Версия данных</th>
<th>Пометка удаления</th>
<th>Владелец</th>
<th>Наименование</th>
<th>Значение по умолчанию</th>
<th>Обязательное</th>
<th>Предопределенный</th>
<th>Имя предопределенных данных</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in items">
<td><input type="checkbox" id="isChecked" data-link="{{ item.link }}" ng-click="checkedItem(item)"></td>
<td>{{ item.code }}</td>
<td><a href="" data-link="{{ item.link }}" data-type="{{ item.type }}" ng-click="updateItem($event, item)">{{ item.link }}</a></td>
<td>{{ item.version }}</td>
<td>{{ item.del }}</td>
<td>{{ item.owner }}</td>
<td>{{ item.title }}</td>
<td>{{ item.by_default }}</td>
<!-- <td><a href="#" data-relation="" data-id="{{ item.responsible }}" ng-click="updateItem($event)">{{ item.responsible }}</a></td> -->
<td>{{ item.compulsory }}</td>
<td>{{ item.pre_define }}</td>
<td>{{ item.name_pre_define }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /.sm-12 container -->
</div>
<!-- /.row -->
<!-- edit modal -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<!-- modal dialog -->
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="edit-modal-title">Тип</h4>
</div>
<div class="modal-body">
<form id="editForm"></form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="save">Save</button>
</div>
</div>
</div>
<!-- /.modal dialog -->
</div>
<!-- /edit modal -->
<!-- create modal -->
<div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<!-- modal dialog -->
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="create-modal-title">Тип</h4>
</div>
<div class="modal-body">
<form id="createForm">
<div class="form-group">
<label class="control-label">Код</label>
<input type="number" value="42" name="Код" id="code" class="form-control"/>
</div>
<div class="form-group has-warning">
<label class="control-label">Ссылка</label>
<input type="text" value="00000000-0000-0000-0000-000000000000" name="Ссылка" id="link" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">ВерсияДанных</label>
<input type="text" value="AAAAPQAAAAA=" name="ВерсияДанных" id="version" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">ПометкаУдаления</label>
<input type="text" value="Нет" name="ПометкаУдаления" id="del" class="form-control"/>
</div>
<div class="form-group has-warning">
<label class="control-label">Владелец</label>
<input type="text" value="98673a07-fbc4-11e4-adf4-f46d04c11a04" name="Владелец" id="owner" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">Наименование</label>
<input type="text" value="ПустоеНаименование" name="Наименование" id="title" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">ЗначениеПоУмолчанию</label>
<input type="text" value="" name="ЗначениеПоУмолчанию" id="by_default" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">Обязательное</label>
<input type="text" value="Нет" name="Обязательное" id="compulsory" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">Предопределенный</label>
<input type="text" value="Нет" name="Предопределенный" id="pre_define" class="form-control"/>
</div>
<div class="form-group">
<label class="control-label">ИмяПредопределенныхДанных</label>
<input type="text" value="Нет" name="ИмяПредопределенныхДанных" id="name_pre_define" class="form-control"/>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" id="createItem">Create</button>
</div>
</div>
</div>
<!-- /.modal dialog -->
</div>
<!-- /create modal -->
</div>
<!-- /.container -->
</body>
</html>