| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="utf-8"/>
- <title>Ресторан</title>
- <style>
- body { font-family: Arial, sans-serif; margin: 0; background: #fff; }
- nav { background: #333; padding: 10px 20px; display: flex; gap: 15px; align-items: center; }
- nav a { color: #fff; text-decoration: none; padding: 5px 10px; border-radius: 3px; }
- nav a:hover { background: #555; }
- nav .logout { margin-left: auto; background: #c0392b; padding: 5px 10px; border-radius: 3px; color: white; text-decoration: none; }
- .wrap { padding: 30px; max-width: 1000px; margin: 0 auto; }
- h1 { margin-bottom: 20px; }
- table { width: 100%; border-collapse: collapse; margin-top: 10px; }
- th, td { border: 1px solid #ccc; padding: 8px 12px; text-align: left; }
- th { background: #f0f0f0; }
- input, select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 3px; width: 100%; margin-bottom: 10px; }
- .btn { padding: 6px 14px; border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 13px; }
- .btn-blue { background: #2980b9; color: white; }
- .btn-green { background: #27ae60; color: white; }
- .btn-red { background: #c0392b; color: white; }
- .btn-gray { background: #95a5a6; color: white; }
- .msg-ok { color: green; margin-bottom: 10px; }
- .msg-err { color: red; margin-bottom: 10px; }
- .form-box { border: 1px solid #ddd; padding: 20px; border-radius: 5px; max-width: 450px; margin-bottom: 20px; }
- .toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
- </style>
- </head>
- <body>
- @if (Context.Session.GetString("role") != null)
- {
- <nav>
- <a href="/data?table=Персонал">Персонал</a>
- <a href="/data?table=Блюда">Блюда</a>
- <a href="/data?table=Склад">Склад</a>
- <a href="/data?table=Заказы">Заказы</a>
- <span style="color:#aaa;margin-left:10px;">Роль: @Context.Session.GetString("role")</span>
- <a href="/logout" class="logout">Выйти</a>
- </nav>
- }
- <div class="wrap">
- @RenderBody()
- </div>
- </body>
- </html>
|