<!-- Modal -->
<div class="modal fade"  id="list_blockModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog" >
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title fw-bold">Update List</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
    </div>
      
      <div class="modal-body">
        <form method="POST" id="edit-list-form" enctype="multipart/form-data">
        <?= csrf_field(); ?>
          <input type="hidden" name="post_id">
          <input type="hidden" name="id">
          <label class="form-label fw-bold" for="list">Add List <small class="text-muted fst-italic fw-lighter">(Add each point on separate line and choose listy type.)</small></label>
                        <textarea name="content" class="form-control rounded-0 mb-2" rows="3" placeholder="Add each point on separate line and choose listy type." id="list"></textarea>
            <div class="mb-2">
                <select name="list_type" class="form-select rounded-0">
                    <option value="unordered">ul</option>
                    <option value="ordered">ol</option>
                </select>
            </div>
        </form>                  
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
        <button type="button" onclick="update_listblock()" class="btn btn-outline-danger d-block w-50 stbtn" >Update List</button>
      </div>
    </div>
    
  </div>
</div>
<!-- End of Post Block Modal !-->