layout.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. .btn-primary {
  23. background: #808f4c !important;
  24. border: 1px solid #808f4c;
  25. }
  26. .btn-primary:hover {
  27. background: #4c660a !important;
  28. border: 1px solid #4c660a;
  29. }
  30. </style>
  31. {% if title %}
  32. <title>bhouse backstage - {{ title }}</title>
  33. {% else %}
  34. <title>bhouse backstage</title>
  35. {% endif %}
  36. </head>
  37. <body>
  38. <div class="container-fluid">
  39. <div class="row" id="body-row">
  40. <!-- Sidebar -->
  41. <nav id="sidebar-container" class="sidebar-expanded col-2 sidebar">
  42. <!-- d-* hiddens the Sidebar in smaller devices. Its itens can be kept on the Navbar 'Menu' -->
  43. <div class="sidebar-header">
  44. <h3 class="sidebar__company">小寶優居</h3>
  45. </div>
  46. <!-- Bootstrap List Group -->
  47. <ul class="list-group pt-2">
  48. <!-- /END Separator -->
  49. <!-- Menu with submenu -->
  50. <!-- <a href="{{ url_for('home.home') }}"
  51. class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
  52. <div class="d-flex w-100 justify-content-start align-items-center">
  53. <i class="fas fa-home mr-3"></i>
  54. <span class="menu-collapsed">首頁</span>
  55. <span class="submenu-icon ml-auto"></span>
  56. </div>
  57. </a> -->
  58. <a href="{{ url_for('collections.collection_list') }}" class="bg-dark list-group-item list-group-item-action">
  59. <div class="d-flex w-100 justify-content-start align-items-center">
  60. <i class="fas fa-ruler-combined mr-3"></i>
  61. <span class="menu-collapsed">規劃作品</span>
  62. </div>
  63. </a>
  64. <a href="{{ url_for('blogs.blog_list') }}" class="bg-dark list-group-item list-group-item-action">
  65. <div class="d-flex w-100 justify-content-start align-items-center">
  66. <i class="far fa-newspaper mr-3"></i>
  67. <span class="menu-collapsed">設計專欄</span>
  68. </div>
  69. </a>
  70. <a href="{{ url_for('blogs.edit_further') }}" class="bg-dark list-group-item list-group-item-action">
  71. <div class="d-flex w-100 justify-content-start align-items-center">
  72. <i class="far fa-newspaper mr-3"></i>
  73. <span class="menu-collapsed">設計專欄-延伸閱讀清單</span>
  74. </div>
  75. </a>
  76. <a href="{{ url_for('blogs.edit_solid_wood_furniture') }}"
  77. class="bg-dark list-group-item list-group-item-action">
  78. <div class="d-flex w-100 justify-content-start align-items-center">
  79. <i class="fas fa-couch mr-3"></i>
  80. <span class="menu-collapsed">單品家具</span>
  81. </div>
  82. </a>
  83. <!--<a href="{{ url_for('blogs.edit_system_furniture') }}" class="bg-dark list-group-item list-group-item-action">
  84. <div class="d-flex w-100 justify-content-start align-items-center">
  85. <i class="far fa-newspaper mr-3"></i>
  86. <span class="menu-collapsed">模組系統櫃</span>
  87. </div>
  88. </a>-->
  89. <a href="{{ url_for('blogs.edit_news') }}" 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-regular fa-newspaper mr-3"></i>
  92. <span class="menu-collapsed">最新消息</span>
  93. </div>
  94. </a>
  95. <!-- <a href="{{ url_for('room_planner.main') }}"
  96. class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
  97. <div class=" d-flex w-100 justify-content-start align-items-center">
  98. <i class="fas fa-user-alt mr-3"></i>
  99. <span class="menu-collapsed">家具規劃師</span>
  100. <span class="submenu-icon ml-auto"></span>
  101. </div>
  102. </a> -->
  103. <!-- <a href="{{ url_for('store_locations.main') }}" class="bg-dark list-group-item list-group-item-action">
  104. <div class="d-flex w-100 justify-content-start align-items-center">
  105. <i class="fas fa-location-arrow mr-3"></i>
  106. <span class="menu-collapsed">門市據點</span>
  107. </div>
  108. </a> -->
  109. <a href="{{ url_for('blogs.edit_faq') }}" class="bg-dark list-group-item list-group-item-action">
  110. <div class="d-flex w-100 justify-content-start align-items-center">
  111. <i class="fas fa-question-circle mr-3"></i>
  112. <span class="menu-collapsed">常見問題</span>
  113. </div>
  114. </a>
  115. <!-- <a href="#" class="bg-dark list-group-item list-group-item-action">
  116. <div class="d-flex w-100 justify-content-start align-items-center">
  117. <i class="fas fa-tasks mr-3"></i>
  118. <span class="menu-collapsed">關於小寶</span>
  119. </div>
  120. </a> -->
  121. <a href="{{ url_for('blogs.edit_contact_us') }}" class="bg-dark list-group-item list-group-item-action">
  122. <div class="d-flex w-100 justify-content-start align-items-center">
  123. <i class="fas fa-solid fa-envelope mr-3"></i>
  124. <span class="menu-collapsed">聯絡我們</span>
  125. </div>
  126. </a>
  127. <a href="#" class="bg-dark list-group-item list-group-item-action" data-toggle="modal"
  128. data-target="#passwordModal">
  129. <div class="d-flex w-100 justify-content-start align-items-center">
  130. <i class="fas fa-solid fa-gear mr-3"></i>
  131. <span class="menu-collapsed">前台正式區更新</span>
  132. </div>
  133. </a>
  134. <!-- Separator with title -->
  135. <a href="#" data-toggle="sidebar-colapse"
  136. class="bg-dark list-group-item list-group-item-action d-flex align-items-center">
  137. <div class="d-flex w-100 justify-content-start align-items-center">
  138. <span id="collapse-icon" class="fas fa-solid fa-chevron-left mr-3"></span>
  139. <span id="collapse-text" class="menu-collapsed">收合</span>
  140. </div>
  141. </a>
  142. </ul><!-- List Group END-->
  143. </nav><!-- sidebar-container END -->
  144. <!-- passwordModal -->
  145. <div class="modal fade" id="passwordModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="passwordModalLabel" aria-hidden="true">
  146. <div class="modal-dialog modal-dialog-centered">
  147. <div class="modal-content">
  148. <div class="modal-header">
  149. <h5 class="modal-title" id="passwordModalLabel">前台正式區更新</h5>
  150. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  151. <span aria-hidden="true">&times;</span>
  152. </button>
  153. </div>
  154. <div class="modal-body">
  155. <div class="input-group">
  156. <div class="input-group-prepend">
  157. <span class="input-group-text" id="updatePassword" style="padding-right: 5px;">請輸入密碼:</span>
  158. </div>
  159. <input type="text" class="form-control" placeholder="Password" aria-label="password" aria-describedby="updatePassword">
  160. </div>
  161. </div>
  162. <div class="modal-footer">
  163. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  164. <button type="button" class="btn btn-primary">更新</button>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <!-- Modal -->
  170. <div>
  171. {% with messages = get_flashed_messages(with_categories=true) %}
  172. {% if messages %}
  173. {% for category, message in messages %}
  174. <div class="alert alert-{{ category }}" role="alert">
  175. {{ message }}
  176. <button type="button" class="close modal__close" data-dismiss="alert" aria-label="Close">
  177. <span class="modal__close__back">
  178. <span aria-hidden="true">&times;</span>
  179. </span>
  180. </button>
  181. </div>
  182. {% endfor %}
  183. {% endif %}
  184. {% endwith %}
  185. </div>
  186. <!-- Main -->
  187. <div class="main my-4 ml-auto col-10">
  188. {% block main %}{% endblock %}
  189. </div>
  190. <!-- toTop Button -->
  191. <div class='toTop'>
  192. <i class='fas fa-arrow-up'></i>
  193. </div>
  194. </div><!-- body-row END -->
  195. </div><!-- container -->
  196. </div>
  197. <!-- partial -->
  198. <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'></script>
  199. <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'></script>
  200. <script type="text/javascript" src="{{url_for('static', filename='js/sidebar.js')}}"></script>
  201. </body>
  202. </html>