layout.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- Bootstrap CSS -->
  8. <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'>
  9. <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
  11. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
  12. integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  13. <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/reset.css') }}"> -->
  14. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/main.css') }}">
  15. <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js"></script>
  16. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  17. <script src='https://code.jquery.com/jquery-3.2.1.slim.min.js'></script>
  18. <style>
  19. .outerDiv {
  20. box-sizing: border-box;
  21. }
  22. </style>
  23. {% if title %}
  24. <title>bhouse backstage - {{ title }}</title>
  25. {% else %}
  26. <title>bhouse backstage</title>
  27. {% endif %}
  28. </head>
  29. <body>
  30. <div class="container-fluid">
  31. <div class="row" id="body-row">
  32. <!-- Sidebar -->
  33. <nav id="sidebar-container" class="sidebar-expanded col-2 sidebar">
  34. <!-- d-* hiddens the Sidebar in smaller devices. Its itens can be kept on the Navbar 'Menu' -->
  35. <div class="sidebar-header">
  36. <h3 class="sidebar__company">小寶優居</h3>
  37. </div>
  38. <!-- Bootstrap List Group -->
  39. <ul class="list-group pt-2">
  40. <!-- /END Separator -->
  41. <!-- Menu with submenu -->
  42. <!-- <a href="{{ url_for('home.home') }}"
  43. class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
  44. <div class="d-flex w-100 justify-content-start align-items-center">
  45. <i class="fas fa-home mr-3"></i>
  46. <span class="menu-collapsed">首頁</span>
  47. <span class="submenu-icon ml-auto"></span>
  48. </div>
  49. </a> -->
  50. <a href="{{ url_for('collections.collection_list') }}" class="bg-dark list-group-item list-group-item-action">
  51. <div class="d-flex w-100 justify-content-start align-items-center">
  52. <i class="fas fa-ruler-combined mr-3"></i>
  53. <span class="menu-collapsed">規劃作品</span>
  54. </div>
  55. </a>
  56. <a href="{{ url_for('blogs.blog_list') }}" class="bg-dark list-group-item list-group-item-action">
  57. <div class="d-flex w-100 justify-content-start align-items-center">
  58. <i class="far fa-newspaper mr-3"></i>
  59. <span class="menu-collapsed">設計專欄</span>
  60. </div>
  61. </a>
  62. <a href="{{ url_for('blogs.edit_solid_wood_furniture') }}"
  63. class="bg-dark list-group-item list-group-item-action">
  64. <div class="d-flex w-100 justify-content-start align-items-center">
  65. <i class="far fa-newspaper mr-3"></i>
  66. <span class="menu-collapsed">單品家具</span>
  67. </div>
  68. </a>
  69. <a href="{{ url_for('blogs.edit_system_furniture') }}" class="bg-dark list-group-item list-group-item-action">
  70. <div class="d-flex w-100 justify-content-start align-items-center">
  71. <i class="far fa-newspaper mr-3"></i>
  72. <span class="menu-collapsed">模組系統櫃</span>
  73. </div>
  74. </a>
  75. <a href="{{ url_for('blogs.edit_news') }}" class="bg-dark list-group-item list-group-item-action">
  76. <div class="d-flex w-100 justify-content-start align-items-center">
  77. <i class="far fa-newspaper mr-3"></i>
  78. <span class="menu-collapsed">最新消息</span>
  79. </div>
  80. </a>
  81. <!-- <a href="{{ url_for('room_planner.main') }}"
  82. class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
  83. <div class=" d-flex w-100 justify-content-start align-items-center">
  84. <i class="fas fa-user-alt mr-3"></i>
  85. <span class="menu-collapsed">家具規劃師</span>
  86. <span class="submenu-icon ml-auto"></span>
  87. </div>
  88. </a> -->
  89. <!-- <a href="{{ url_for('store_locations.main') }}" class="bg-dark list-group-item list-group-item-action">
  90. <div class="d-flex w-100 justify-content-start align-items-center">
  91. <i class="fas fa-location-arrow mr-3"></i>
  92. <span class="menu-collapsed">門市據點</span>
  93. </div>
  94. </a> -->
  95. <a href="{{ url_for('blogs.edit_faq') }}" class="bg-dark list-group-item list-group-item-action">
  96. <div class="d-flex w-100 justify-content-start align-items-center">
  97. <i class="fas fa-question-circle mr-3"></i>
  98. <span class="menu-collapsed">常見問題</span>
  99. </div>
  100. </a>
  101. <!-- <a href="#" class="bg-dark list-group-item list-group-item-action">
  102. <div class="d-flex w-100 justify-content-start align-items-center">
  103. <i class="fas fa-tasks mr-3"></i>
  104. <span class="menu-collapsed">關於小寶</span>
  105. </div>
  106. </a> -->
  107. <a href="{{ url_for('blogs.edit_contact_us') }}" class="bg-dark list-group-item list-group-item-action">
  108. <div class="d-flex w-100 justify-content-start align-items-center">
  109. <i class="far fa-newspaper mr-3"></i>
  110. <span class="menu-collapsed">聯絡我們</span>
  111. </div>
  112. </a>
  113. <!-- Separator with title -->
  114. <a href="#" data-toggle="sidebar-colapse"
  115. class="bg-dark list-group-item list-group-item-action d-flex align-items-center">
  116. <div class="d-flex w-100 justify-content-start align-items-center">
  117. <span id="collapse-icon" class="fa fa-2x mr-3"></span>
  118. <span id="collapse-text" class="menu-collapsed">收合</span>
  119. </div>
  120. </a>
  121. </ul><!-- List Group END-->
  122. </nav><!-- sidebar-container END -->
  123. <!-- Modal -->
  124. <div>
  125. {% with messages = get_flashed_messages(with_categories=true) %}
  126. {% if messages %}
  127. {% for category, message in messages %}
  128. <div class="alert alert-{{ category }}" role="alert">
  129. {{ message }}
  130. <button type="button" class="close modal__close" data-dismiss="alert" aria-label="Close">
  131. <span class="modal__close__back">
  132. <span aria-hidden="true">&times;</span>
  133. </span>
  134. </button>
  135. </div>
  136. {% endfor %}
  137. {% endif %}
  138. {% endwith %}
  139. </div>
  140. <!-- Main -->
  141. <div class="main my-4 ml-auto col-10">
  142. {% block main %}{% endblock %}
  143. </div>
  144. <!-- toTop Button -->
  145. <div class='toTop'>
  146. <i class='fas fa-arrow-up'></i>
  147. </div>
  148. </div><!-- body-row END -->
  149. </div><!-- container -->
  150. </div>
  151. <!-- partial -->
  152. <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'></script>
  153. <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'></script>
  154. <script type="text/javascript" src="{{url_for('static', filename='js/sidebar.js')}}"></script>
  155. </body>
  156. </html>