<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

  <!-- Bootstrap CSS -->
  <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'>
  <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
    integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  <!--   <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/reset.css') }}"> -->
  <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/main.css') }}">

  <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js"></script>
  <script src='https://code.jquery.com/jquery-3.2.1.slim.min.js'></script>

  <style>
    .outerDiv {
      box-sizing: border-box;
    }
    .btn-primary {
      background: #808f4c !important;
      border: 1px solid #808f4c;
    }
    .btn-primary:hover {
      background: #4c660a !important;
      border: 1px solid #4c660a;
    }
    .btn-primary.disabled, .btn-primary:disabled {
      border-color: #808f4c;
    }
  </style>
  {% if title %}
  <title>bhouse backstage - {{ title }}</title>
  {% else %}
  <title>bhouse backstage</title>
  {% endif %}
</head>

<body>
  <div class="container-fluid">
    <div class="row" id="body-row">
      <!-- Sidebar -->
      <nav id="sidebar-container" class="sidebar-expanded col-2 sidebar">
        <!-- d-* hiddens the Sidebar in smaller devices. Its itens can be kept on the Navbar 'Menu' -->
        <div class="sidebar-header">
          <h3 class="sidebar__company">小寶優居</h3>
        </div>
        <!-- Bootstrap List Group -->
        <ul class="list-group pt-2">
          <!-- /END Separator -->
          <!-- Menu with submenu -->
          <!-- <a href="{{ url_for('home.home') }}"
            class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-home mr-3"></i>
              <span class="menu-collapsed">首頁</span>
              <span class="submenu-icon ml-auto"></span>
            </div>
          </a> -->
          <a href="{{ url_for('collections.collection_list') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-ruler-combined mr-3"></i>
              <span class="menu-collapsed">規劃作品</span>
            </div>
          </a>
          <a href="{{ url_for('blogs.blog_list') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="far fa-newspaper mr-3"></i>
              <span class="menu-collapsed">設計專欄</span>
            </div>
          </a>
          <a href="{{ url_for('blogs.edit_further') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="far fa-newspaper mr-3"></i>
              <span class="menu-collapsed">設計專欄－延伸閱讀清單</span>
            </div>
          </a>
          <a href="{{ url_for('blogs.edit_solid_wood_furniture') }}"
            class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-couch mr-3"></i>
              <span class="menu-collapsed">單品家具</span>
            </div>
          </a>
          <!--<a href="{{ url_for('blogs.edit_system_furniture') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="far fa-newspaper mr-3"></i>
              <span class="menu-collapsed">模組系統櫃</span>
            </div>
          </a>-->
          <a href="{{ url_for('blogs.edit_news') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-regular fa-newspaper mr-3"></i>
              <span class="menu-collapsed">最新消息</span>
            </div>
          </a>
          <!-- <a href="{{ url_for('room_planner.main') }}"
            class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
            <div class=" d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-user-alt mr-3"></i>
              <span class="menu-collapsed">家具規劃師</span>
              <span class="submenu-icon ml-auto"></span>
            </div>
          </a> -->
          <!-- <a href="{{ url_for('store_locations.main') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-location-arrow mr-3"></i>
              <span class="menu-collapsed">門市據點</span>
            </div>
          </a> -->
          <a href="{{ url_for('blogs.edit_faq') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-question-circle mr-3"></i>
              <span class="menu-collapsed">常見問題</span>
            </div>
          </a>
          <!-- <a href="#" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-tasks mr-3"></i>
              <span class="menu-collapsed">關於小寶</span>
            </div>
          </a> -->
          <a href="{{ url_for('blogs.edit_contact_us') }}" class="bg-dark list-group-item list-group-item-action">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-solid fa-envelope mr-3"></i>
              <span class="menu-collapsed">聯絡我們</span>
            </div>
          </a>
          <a href="#" class="bg-dark list-group-item list-group-item-action" data-toggle="modal"
            data-target="#passwordModal">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <i class="fas fa-solid fa-gear mr-3"></i>
              <span class="menu-collapsed">前台正式區更新</span>
            </div>
          </a>
          <!-- Separator with title -->
          <a href="#" data-toggle="sidebar-colapse"
            class="bg-dark list-group-item list-group-item-action d-flex align-items-center">
            <div class="d-flex w-100 justify-content-start align-items-center">
              <span id="collapse-icon" class="fas fa-solid fa-chevron-left mr-3"></span>
              <span id="collapse-text" class="menu-collapsed">收合</span>
            </div>
          </a>
        </ul><!-- List Group END-->
      </nav><!-- sidebar-container END -->
      <!-- passwordModal -->
      <div class="modal fade" id="passwordModal"  data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="passwordModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="passwordModalLabel">前台正式區更新</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <div class="input-group">
                <div class="input-group-prepend">
                  <span class="input-group-text" style="padding-right: 5px;">請輸入密碼：</span>
                </div>
                <input type="text" class="form-control" placeholder="Password" aria-label="password" id="updatePassword">
              </div>

            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
              <button type="button" class="btn btn-primary disabled" id="updateBtn">
                <a href="{{ url_for('blogs.update') }}" class="text-white disabled-link">
                  更新
                </a>
              </button>
            </div>
          </div>
        </div>
      </div>
      <!-- Modal -->
      <div>
        {% with messages = get_flashed_messages(with_categories=true) %}
        {% if messages %}
        {% for category, message in messages %}
        <div class="alert alert-{{ category }}" role="alert">
          {{ message }}
          <button type="button" class="close modal__close" data-dismiss="alert" aria-label="Close">
            <span class="modal__close__back">
              <span aria-hidden="true">&times;</span>
            </span>
          </button>
        </div>
        {% endfor %}
        {% endif %}
        {% endwith %}
      </div>
      <!-- Main -->
      <div class="main my-4 ml-auto col-10">
        {% block main %}{% endblock %}
      </div>
      <!-- toTop Button -->
      <div class='toTop'>
        <i class='fas fa-arrow-up'></i>
      </div>
    </div><!-- body-row END -->
  </div><!-- container -->
  </div>
  <!-- partial -->
  <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'></script>
  <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'></script>
  <script type="text/javascript" src="{{url_for('static', filename='js/sidebar.js')}}"></script>
</body>

</html>