{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template core/add_block_body

    Template for the body of the add block modal.

    Context variables required for this template:
    * blocks - list of blocks containing name and title
    * url - base url for links back to same page.

    Example context (json):
    {
        "blocks" : [ { "name": "test", "title": "Test block" } ],
        "url" : "?a=b"
    }

}}

<div class="d-flex flex-column modal-body-wrapper">

    {{>local_edwiserpagebuilder/add_block_body_toparea}}

    <div class="tab-content" id="epbTabContent">
      <div class="tab-pane  advancedblocktab active show" id="blocktab" role="tabpanel" aria-labelledby="block-tab">
        <div class="d-flex sidebar-wrapper">
              {{>local_edwiserpagebuilder/add_block_body_leftsidebar}}
            <div class="list-group addblock-modal-body blocks-list w-100">
              <div class="tab-content">
                <div class="edwblock-content  default-blocks  default-blocks-wrapper static-blocks-wrapper grid-view">
                  {{> local_edwiserpagebuilder/edwblock_content }}
                </div>
                <div class="row page-cards m-auto"></div>
              </div>
            </div>
        </div>
      </div>

      <div class="tab-pane  moodleblocktab" id="moodleblocktab" role="tabpanel" aria-labelledby="moodleblock-tab">
        <div class="list-group addblock-modal-body blocks-list w-100">
          <div class="tab-content">
            <div class=" block-cards default-blocks  default-blocks-wrapper grid-view ">
            <div class="block-cards-wrapper">
                {{#moodleblock}}
                    {{> local_edwiserpagebuilder/block_card }}
                {{/moodleblock}}
            </div>
            </div>
            <div class="row page-cards m-auto"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
