Капелька стилей
This commit is contained in:
parent
56fd7012e1
commit
798e8793ac
@ -4,17 +4,17 @@
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Вход в приложение</h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<form method="post" class="form mx-auto d-block" style="width: 50%">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Логин:</div>
|
||||
<div class="col-8"><input type="text" name="login" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<div class="col-8"><input type="password" name="password" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4"><input type="submit" value="Вход" class="btn btnprimary" /></div>
|
||||
<div class="col-4"><input type="submit" value="Вход" class="btn btn-primary" /></div>
|
||||
</div>
|
||||
</form>
|
@ -7,43 +7,5 @@
|
||||
<h1 class="display-4">Поступления</h1>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
@{
|
||||
if (Model == null)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
<p>
|
||||
<a asp-action="Create">Создать поступление</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Номер</th>
|
||||
<th>Дата поступления</th>
|
||||
<th>Лекарство</th>
|
||||
<th>Количество</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Id)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Date)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MedicineName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Number)
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
|
||||
</div>
|
@ -6,18 +6,18 @@
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Личные данные</h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<form method="post" class="form">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Логин:</div>
|
||||
<div class="col-8"><input type="text" name="login"
|
||||
<div class="col-8"><input class="form-control" type="text" name="login"
|
||||
value="@Model.Login"/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<div class="col-8"><input type="password" name="password"
|
||||
<div class="col-8"><input class="form-control" type="password" name="password"
|
||||
value="@Model.Password"/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4"><input type="submit" value="Сохранить" class="btn
|
||||
btn-primary" /></div>
|
||||
|
@ -4,16 +4,16 @@ ViewData["Title"] = "Register";
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Регистрация</h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<form method="post" class="form">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Логин:</div>
|
||||
<div class="col-8"><input type="text" name="login" /></div>
|
||||
<div class="col-8"><input class="form-control" type="text" name="login" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<div class="col-8"><input type="password" name="password" /></div>
|
||||
<div class="col-8"><input class="form-control" type="password" name="password" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4"><input type="submit" value="Регистрация"
|
||||
class="btn btn-primary" /></div>
|
||||
|
@ -11,20 +11,20 @@
|
||||
<h2 class="display-4">Привязка процедуры</h2>
|
||||
</div>
|
||||
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<form method="post" class="form">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Процедура:</div>
|
||||
<div class="col-8">
|
||||
<select id="procedure" name="procedure" class="form-control" asp-items="@(new SelectList(@ViewBag.Procedures,"Id", "Name"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Лекарство:</div>
|
||||
<div class="col-8">
|
||||
<select id="medicine" name="medicine" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4">
|
||||
<input type="submit" value="Отправить" class="btn btn-primary" />
|
||||
|
@ -17,22 +17,22 @@
|
||||
<h2 class="display-4">Создание лекарства</h2>
|
||||
</div>
|
||||
}
|
||||
<form method="post">
|
||||
<form method="post" class="form">
|
||||
<input type="hidden" name="id" value="@Model?.Id" />
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Название:</div>
|
||||
<div class="col-8"><input type="text" id="name" value="@Model?.Name" name="name" required/></div>
|
||||
<div class="col-8"><input class="form-control" type="text" id="name" value="@Model?.Name" name="name" required/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Цена:</div>
|
||||
<div class="col-8"><input type="number" step="0.1" id="costString" value="@Model?.Cost.ToString(CultureInfo.InvariantCulture)" name="costString" required/></div>
|
||||
<div class="col-8"><input class="form-control" type="number" step="0.1" id="costString" value="@Model?.Cost.ToString(CultureInfo.InvariantCulture)" name="costString" required/></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Дозировка:</div>
|
||||
<div class="col-8"><input type="text" id="dose" value="@Model?.Dose" name="dose" required/></div>
|
||||
<div class="col-8"><input class="form-control" type="text" id="dose" value="@Model?.Dose" name="dose" required/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4">
|
||||
<input type="submit" value="Отправить" class="btn btn-primary" />
|
||||
|
@ -13,10 +13,10 @@
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
<p>
|
||||
<a asp-controller="Home" asp-action="Index">На главную</a>
|
||||
<a asp-controller="Medicine" asp-action="Create">Создать лекарство</a>
|
||||
<a asp-controller="Medicine" asp-action="AddProcedureMedicine">Привязать процедуру</a>
|
||||
<p class="button-links">
|
||||
<a class="button-link" asp-controller="Home" asp-action="Index">На главную</a>
|
||||
<a class="button-link" asp-controller="Medicine" asp-action="Create">Создать лекарство</a>
|
||||
<a class="button-link" asp-controller="Medicine" asp-action="AddProcedureMedicine">Привязать процедуру</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -16,16 +16,16 @@
|
||||
<h2 class="display-4">Создание поступления</h2>
|
||||
</div>
|
||||
}
|
||||
<form method="post">
|
||||
<form method="post" class="form" >
|
||||
<input type="hidden" name="id" value="@Model?.Id" />
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Лекарство:</div>
|
||||
<div class="col-8">
|
||||
@{
|
||||
if (Model != null)
|
||||
{
|
||||
<select id="medicine" name="medicine" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))" value="@Model?.MedicineId" disabled="disabled"></select>
|
||||
<select id="medicine" name="medicine" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))" value="@Model?.MedicineId" disabled="disabled" required></select>
|
||||
} else {
|
||||
<select id="medicine" name="medicine" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))"></select>
|
||||
}
|
||||
@ -33,11 +33,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Количество:</div>
|
||||
<div class="col-8"><input type="number" id="number" value="@Model?.Number" name="number"/></div>
|
||||
<div class="col-8"><input type="number" id="number" value="@Model?.Number" name="number" required/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4">
|
||||
<input type="submit" value="Отправить" class="btn btn-primary" />
|
||||
|
@ -17,28 +17,43 @@
|
||||
<h2 class="display-4">Создание рецепта</h2>
|
||||
</div>
|
||||
}
|
||||
<form id="recipe-form" method="post">
|
||||
<form id="recipe-form" class="form" method="post">
|
||||
<input type="hidden" name="id" value="@Model?.Id" />
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Название:</div>
|
||||
<div class="col-8"><input type="text" id="name" value="@Model?.Name" name="name" required/></div>
|
||||
<div class="col-8"><input class="form-control" type="text" id="name" value="@Model?.Name" name="name" required/></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">Добавление лекарств</div>
|
||||
<div class="col-8">
|
||||
<select id="medicines" name="medicines" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))"></select>
|
||||
<button type="button" onclick="addMedicine()">Добавить лекарство</button>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<select id="medicines" name="medicines" class="form-control" asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))"></select>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-success" onclick="addMedicine()">Добавить лекарство</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Добавление лекарств</div>
|
||||
<div class="col-8">
|
||||
<select id="treatments" name="treatments" class="form-control" asp-items="@(new SelectList(@ViewBag.Treatments,"Id", "Name"))"></select>
|
||||
<button type="button" onclick="addTreatment()">Добавить лечение</button>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<select id="treatments" name="treatments" class="form-control" asp-items="@(new SelectList(@ViewBag.Treatments,"Id", "Name"))"></select>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-success" onclick="addTreatment()">Добавить лечение</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table id="medicinesTable" class="table">
|
||||
<p class="text-center"><strong>Лекарства</strong></p>
|
||||
<table id="medicinesTable" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
@ -59,7 +74,8 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table id="treatmentsTable" class="table">
|
||||
<p class="text-center"><strong>Лечения</strong></p>
|
||||
<table id="treatmentsTable" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
|
@ -8,27 +8,27 @@
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">@ViewData["Title"]</h2>
|
||||
</div>
|
||||
<form id="reportForm" method="get" action="/reports/download">
|
||||
<form class="form" id="reportForm" method="get" action="/reports/download">
|
||||
<div class="row">
|
||||
<div class="col-4">Выбор лекарств</div>
|
||||
<div class="col-8">
|
||||
<select id="medicines" name="Medicines" class="form-control" multiple asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))"></select>
|
||||
<select id="medicines" name="Medicines" class="form-control" multiple asp-items="@(new SelectList(@ViewBag.Medicines,"Id", "Name"))" required></select>
|
||||
<small>Для выбора нескольких элементов удерживайте клавишу Ctrl.</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Название файла (без формата):</div>
|
||||
<div class="col-8"><input type="text" name="FileName" required /></div>
|
||||
<div class="col-8"><input type="text" name="FileName" class="form-control" required /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Формат файла:</div>
|
||||
<div class="col-8">
|
||||
<select name="Format" required>
|
||||
<option value="Word">Word</option>
|
||||
<option value="Excel">Excel</option>
|
||||
<select class="form-control" name="Format" required>
|
||||
<option value="Word">.docx</option>
|
||||
<option value="Excel">.xlsx</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button id="submitReport">Получить отчет</button>
|
||||
<button class="btn btn-primary" id="submitReport">Скачать отчет</button>
|
||||
</form>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<h2 class="display-4">@ViewData["Title"]</h2>
|
||||
</div>
|
||||
|
||||
<form method="get" class="form-inline" action="/report/getprescriptions">
|
||||
<form method="get" class="form form-inline" action="/report/getprescriptions">
|
||||
<div class="form-group mx-sm-3 mb-2">
|
||||
<label for="startDate" class="sr-only">Начальная дата:</label>
|
||||
<input type="date" class="form-control" id="startDate" name="startDate" required />
|
||||
@ -20,14 +20,12 @@
|
||||
</div>
|
||||
<div class="form-group mx-sm-3 mb-2">
|
||||
<button type="submit" class="btn btn-primary" name="type" value="form">Получить отчет</button>
|
||||
</div>
|
||||
<div class="form-group mx-sm-3 mb-2">
|
||||
<button type="submit" class="btn btn-secondary" name="type" value="email">Отправить pdf на почту</button>
|
||||
</div>
|
||||
</form>
|
||||
@if (Model != null && Model.Any())
|
||||
{
|
||||
<table class="table">
|
||||
<table class="table" style="width: 70%; margin: 0 auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Дата поступления</th>
|
||||
|
@ -7,6 +7,7 @@
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/HospitalWeb.styles.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/css/styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
24
Hospital/HospitalWeb/wwwroot/css/styles.css
Normal file
24
Hospital/HospitalWeb/wwwroot/css/styles.css
Normal file
@ -0,0 +1,24 @@
|
||||
.form {
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.form input,
|
||||
.form select {
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.form button {
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
}
|
Loading…
Reference in New Issue
Block a user