layout.html 11 KB

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