130 lines
7.2 KiB
HTML
130 lines
7.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en"
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
layout:decorator="default" xmlns:th="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
|
|
<head>
|
|
<link rel="stylesheet" href="../css/grant.css"/>
|
|
<script src="js/users.js"></script>
|
|
<script src="js/core.js"></script>
|
|
<script src="https://www.google.com/jsapi"></script>
|
|
<script>
|
|
google.load('visualization', '1.0', {'packages':['corechart']});
|
|
google.setOnLoadCallback(drawChart);
|
|
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div class="container" layout:fragment="content">
|
|
<section id="ewrq">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center">
|
|
<h2 class="section-heading text-uppercase">Личный кабинет</h2>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<nav>
|
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
|
<a class="nav-item nav-link active" id="nav-main-tab" data-toggle="tab"
|
|
href="#nav-main" role="tab" aria-controls="nav-main" aria-selected="true">Статья</a>
|
|
<a class="nav-item nav-link" id="nav-latex-tab" data-toggle="tab"
|
|
href="#nav-workload" role="tab" aria-controls="nav-workload" aria-selected="false">Загруженность</a>
|
|
</div>
|
|
</nav>
|
|
<div class="tab-content" id="nav-tabContent">
|
|
<div class="tab-pane fade show active" id="nav-main" role="tabpanel"
|
|
aria-labelledby="nav-main-tab">
|
|
<form id="profile-form" method="post" th:action="@{'/users/profile'}"
|
|
th:object="${userDto}">
|
|
<input type="hidden" name="id" th:field="*{id}"/>
|
|
<div class="form-group">
|
|
<label for="firstName">Имя:</label>
|
|
<input class="form-control" id="firstName" type="text"
|
|
placeholder="Имя"
|
|
th:field="*{firstName}"/>
|
|
<p th:if="${#fields.hasErrors('firstName')}" th:errors="*{firstName}"
|
|
class="alert alert-danger">Incorrect firstName</p>
|
|
<p class="help-block text-danger"></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="lastName">Фамилия:</label>
|
|
<input class="form-control" id="lastName" type="text"
|
|
placeholder="lastName"
|
|
th:field="*{lastName}"/>
|
|
<p th:if="${#fields.hasErrors('lastName')}" th:errors="*{lastName}"
|
|
class="alert alert-danger">Incorrect lastName</p>
|
|
<p class="help-block text-danger"></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="email">Email:</label>
|
|
<input class="form-control" id="email" type="text"
|
|
placeholder="Email"
|
|
th:field="*{email}"/>
|
|
<p th:if="${#fields.hasErrors('email')}" th:errors="*{email}"
|
|
class="alert alert-danger">Incorrect email</p>
|
|
<p class="help-block text-danger"></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="login">Логин:</label>
|
|
<input class="form-control" id="login" type="text"
|
|
placeholder="Login"
|
|
th:field="*{login}"/>
|
|
<p th:if="${#fields.hasErrors('login')}" th:errors="*{login}"
|
|
class="alert alert-danger">Incorrect email</p>
|
|
<p class="help-block text-danger"></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<button id="sendMessageButton" name="save"
|
|
class="btn btn-success text-uppercase"
|
|
type="submit">
|
|
Сохранить
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="tab-pane fade" id="nav-workload" role="tabpanel"
|
|
aria-labelledby="nav-profile-tab">
|
|
<div class="form-group">
|
|
<label for="hours">Часы:</label>
|
|
<input class="form-control" id="hours" type="text"
|
|
placeholder="Количество часов"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="dateFrom">Дата начала недели:</label>
|
|
<input class="form-control" id="dateFrom" type="date"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="dateTo">Дата окончания недели:</label>
|
|
<input class="form-control" id="dateTo" type="date"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<button id="sendWorkload" name="save"
|
|
class="btn btn-success text-uppercase"
|
|
type="button" onclick="setUserWorkload()">
|
|
Сохранить часы
|
|
</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<button id="drawChartBtn" name="save"
|
|
class="btn btn-success text-uppercase"
|
|
type="button" onclick="drawChart()">
|
|
Показать график
|
|
</button>
|
|
</div>
|
|
<div id="oil" style="width: 500px; height: 400px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|