<!-- Modal -->
<div class="modal fade"  id="video_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 Video</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-video-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="video">Video Link <br><small class="fw-lighter">NOTE: For your video to display in post. Go to Youtube and click on Share then "Embed". Pick link within that starts with <strong>src=""</strong> and save it in your video link</small></label>
          <input type="text" name="url" class="form-control rounded-0 mb-2" placeholder="Enter your video link E.g Youtube, Vimeo" id="video">

          <label class="form-label fw-bold" for="caption">Video Caption</label>
          <input type="text" name="content" placeholder="Enter video caption" class="form-control mb-2" id="caption">
        </form>                 
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
        <button type="button" onclick="update_videoblock()" class="btn btn-outline-danger d-block w-50 stbtn" >Add Link</button>
      </div>
    </div>
    
  </div>
</div>
<!-- End of Post Block Modal !-->