login.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>登录 - 希姆计算资产管理</title>
  8. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  9. <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
  10. <link href="{% static 'css/style.css' %}" rel="stylesheet">
  11. </head>
  12. <body class="login-body">
  13. <div class="login-container">
  14. <div class="login-card">
  15. <div class="login-header">
  16. <i class="bi bi-hdd-rack" style="font-size: 3rem;"></i>
  17. <h3 class="mt-3 mb-1">希姆计算资产管理</h3>
  18. <p class="text-muted mb-0">Hardware Asset Management</p>
  19. </div>
  20. <div class="login-body">
  21. {% if messages %}
  22. {% for message in messages %}
  23. <div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
  24. {{ message }}
  25. <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
  26. </div>
  27. {% endfor %}
  28. {% endif %}
  29. <form method="post">
  30. {% csrf_token %}
  31. <div class="mb-3">
  32. <label class="form-label text-muted">用户名</label>
  33. <div class="input-group">
  34. <span class="input-group-text"><i class="bi bi-person"></i></span>
  35. <input type="text" name="username" class="form-control" placeholder="请输入用户名" required autofocus>
  36. </div>
  37. </div>
  38. <div class="mb-4">
  39. <label class="form-label text-muted">密码</label>
  40. <div class="input-group">
  41. <span class="input-group-text"><i class="bi bi-lock"></i></span>
  42. <input type="password" name="password" class="form-control" placeholder="请输入密码" required>
  43. </div>
  44. </div>
  45. <button type="submit" class="btn btn-primary w-100 btn-login">
  46. <i class="bi bi-box-arrow-in-right me-2"></i>登 录
  47. </button>
  48. </form>
  49. </div>
  50. </div>
  51. </div>
  52. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  53. </body>
  54. </html>