перекрасил кнопки

This commit is contained in:
russell 2024-05-30 02:33:02 +04:00
parent 18c56ffab0
commit 502cd404ed
5 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ namespace TravelAgencyBusinessLogic.BusinessLogics
{ {
throw new ArgumentNullException("Нет номера телефона пользователя", nameof(model.PhoneNumber)); throw new ArgumentNullException("Нет номера телефона пользователя", nameof(model.PhoneNumber));
} }
if (string.IsNullOrEmpty(model.Password)) if (string.IsNullOrEmpty(model.Password) || model.Password.Length < 8 || model.Password.Length > 50)
{ {
throw new ArgumentNullException("Нет пароля пользователя", nameof(model.Password)); throw new ArgumentNullException("Нет пароля пользователя", nameof(model.Password));
} }

View File

@ -67,7 +67,7 @@
<button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateExcursion", "/Excursion", new { id = excursion.Id })'">Изменить</button> <button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateExcursion", "/Excursion", new { id = excursion.Id })'">Изменить</button>
</td> </td>
<td> <td>
<button type="button" class="btn btn-primary" onclick="$.post('@Url.Action("DeleteExcursion", "/Excursion", new { id = excursion.Id })', function () {window.location.reload();})">Удалить</button> <button type="button" class="btn btn-danger" onclick="$.post('@Url.Action("DeleteExcursion", "/Excursion", new { id = excursion.Id })', function () {window.location.reload();})">Удалить</button>
</td> </td>
</tr> </tr>
} }

View File

@ -61,7 +61,7 @@
<button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateExcursionGroup", "/ExcursionGroup", new { id = excursionGroup.Id })'">Изменить</button> <button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateExcursionGroup", "/ExcursionGroup", new { id = excursionGroup.Id })'">Изменить</button>
</td> </td>
<td> <td>
<button type="button" class="btn btn-primary" onclick="$.post('@Url.Action("DeleteExcursionGroup", "/ExcursionGroup", new { id = excursionGroup.Id })', function () {window.location.reload();})">Удалить</button> <button type="button" class="btn btn-danger" onclick="$.post('@Url.Action("DeleteExcursionGroup", "/ExcursionGroup", new { id = excursionGroup.Id })', function () {window.location.reload();})">Удалить</button>
</td> </td>
</tr> </tr>
} }

View File

@ -6,7 +6,7 @@
<div class="text-center"> <div class="text-center">
<h2 class="display-4">Диаграммы</h2> <h2 class="display-4">Диаграммы</h2>
<h2 class="display-5 text-start">Прибыль</h2> <h2 class="display-5 text-start">Прибыль за текущий год</h2>
<canvas id="revenueChart"></canvas> <canvas id="revenueChart"></canvas>
<h2 class="display-5 text-start">Популярность туров</h2> <h2 class="display-5 text-start">Популярность туров</h2>
<canvas id="popularityChart"></canvas> <canvas id="popularityChart"></canvas>

View File

@ -67,7 +67,7 @@
<button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateTour", "/Tour", new { id = tour.Id })'">Изменить</button> <button type="button" class="btn btn-primary" onclick="location.href='@Url.Action("UpdateTour", "/Tour", new { id = tour.Id })'">Изменить</button>
</td> </td>
<td> <td>
<button type="button" class="btn btn-primary" onclick="$.post('@Url.Action("DeleteTour", "/Tour", new { id = tour.Id })', function () {window.location.reload();})"> <button type="button" class="btn btn-danger" onclick="$.post('@Url.Action("DeleteTour", "/Tour", new { id = tour.Id })', function () {window.location.reload();})">
Удалить Удалить
</button> </button>
</td> </td>