<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="C:\Users\milsh\Desktop\фишинг\bootstrap.css" rel="stylesheet">
<title>Система мотивації та оплати праці</title>
<![if gt IE 8]>
<script src="/static/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/static/bower_components/angular/angular.min.js" type="text/javascript"></script>
<script src="/static/bower_components/angular-bootstrap/ui-bootstrap-tpls.js" type="text/javascript"></script>
<![endif]>
</head>
<body ng-app="kpi.login" ng-controller="LoginCtrl">
<!--[if lt IE 9]>
<p class="browsehappy" style="margin: 200px; text-align: center; font-size: 2em;">
Пожалуйста, воспользуйтесь Google Chrome.<br><span style="color:red">для корректной работы</span><br>автоматизированной системы СМОТ<br>
<a class="btn btn-primary" href="http://servicedesk.ukrtelecom.net:8080/WorkOrder.do?reqTemplate=17701&requestServiceId=7">Оформить заявку на установку Google Chrome</a>
</p>
<![endif]-->
<![if gt IE 8]>
<div class="container">
<div class="row">
<div class=" col-md-6 col-md-offset-3">
<div class="panel panel-default" style="margin-top: 100px;">
<div class="panel-heading">
<h3 class="panel-title">Система мотивації та оплати праці
<button ng-click="is_search_on = !is_search_on" type="button" class="btn btn-default btn-xs pull-right"><span class="glyphicon glyphicon-search"></span></button>
</h3>
</div>
<div class="panel-body">
<form method="post" action="/accounts/login/" class="form">
<input type='hidden' name='csrfmiddlewaretoken' value='2wOjVeZGF5ROGJbvkieK66LS1dqxLYcN' />
<table style="width: 100%">
<tr>
<td><label for="id_username">Логін:</label></td>
<td><input type="text" id="id_username" class="form-control" name="username" value=""></td>
</tr>
<tr>
<td><label for="id_password">Пароль:</label></td>
<td><input type="password" id="id_password" class="form-control" name="password" value=""</td>
</tr>
</table>
<input type="submit" class="btn btn-primary" value="Увійти" />
<input type="hidden" name="next" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script type="text/ng-template" id="browseperson.tmpl">
<a>
<p style="font-weight: bold">{{ [match.model.last_name, match.model.first_name, match.model.second_name].join(" ") }}
<span ng-if="match.label.username">({{match.label.username}})</span>
<span ng-if="!match.label.username">(имя пользователя не определено)</span>
</p>
<p>{{ match.model.position_name }}, уровень: {{match.model.level.name}}</p>
<p>{{ [match.model.department.main.name, match.model.department.name].join(", ") }}</p>
<!--pre>{{ match.model | json }}</pre-->
</a>
</script>
<script type="text/javascript">
var app = angular.module("kpi.login", ["ui.bootstrap"]);
app.controller("LoginCtrl", function($scope, $http, $log) {
$scope.is_search_on = false;
$scope.getProfiles = function(val) {
var va = val.split(" ")
var p = {
last_name__istartswith: va[0]
}
if (va.length > 1) {
p.first_name__istartswith = va[1]
}
if (va.length > 2) {
p.second_name__istartswith = va[2]
}
return $http.get("/api/v1/browseprofiles/", {
params: p
}).then(
function(response) {
$scope.noResults = !response.data.objects.length;
return response.data.objects;
}
)
}
$scope.profile_input_formatter = function(profile) {
if (profile) {
return [profile.last_name, profile.first_name, profile.second_name].join(" ")
}
}
});
</script>
<![endif]>
</body>
</html>