<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
  *
  * Partial: Add to Collection sheet + Create Collection modal
  * Rendered once per page by Core_View_Helper_SavecollectionSheet
*/
?>

<!-- Add to Collection Sheet -->
<div id="savecollection_sheet_overlay" class="savecollection_modal_overlay savecollection_modal_overlay_high">
  <div class="savecollection_modal savecollection_modal_sheet">
    <div class="savecollection_modal_header">
      <h3><?php echo $this->translate('Add to Collection?'); ?></h3>
      <button type="button" class="savecollection_modal_close center_item" aria-label="<?php echo $this->translate('Close'); ?>"><i class="icon_cross"></i></button>
    </div>
    <div class="savecollection_modal_body">
      <div id="savecollection_sheet_chips" class="savecollection_checkbox_list">
        <div class="savecollection_sheet_msg"><?php echo $this->translate('Loading collections...'); ?></div>
      </div>
    </div>
    <div class="savecollection_modal_footer">
      <button type="button" class="btn btn-alt savecollection_create_btn" id="savecollection_sheet_new_btn">
        <i class="icon_add"></i>
        <span><?php echo $this->translate('New Collection'); ?></span>
      </button>
      <button type="button" class="btn btn-primary" id="savecollection_sheet_done_btn">
        <span><?php echo $this->translate('Done'); ?></span>
      </button>
    </div>
  </div>
</div>

<!-- Create Collection Modal -->
<div id="savecollection_create_modal" class="savecollection_modal_overlay savecollection_modal_overlay_higher">
  <div class="savecollection_modal savecollection_modal_sm">
    <div class="savecollection_modal_header">
      <h3 class="savecollection_modal_title"><?php echo $this->translate('Create Collection'); ?></h3>
    </div>
    <div class="savecollection_modal_body">
      <label for="savecollection_create_name" class="savecollection_modal_label"><?php echo $this->translate('Collection Name'); ?></label>
      <input type="text" id="savecollection_create_name" class="savecollection_modal_input" maxlength="50" placeholder="<?php echo $this->translate('Enter collection name'); ?>" />
      <div id="savecollection_create_error" class="savecollection_modal_error"></div>
    </div>
    <div class="savecollection_modal_actions">
      <button type="button" class="btn btn-alt" id="savecollection_create_cancel_btn"><span><?php echo $this->translate('Cancel'); ?></span></button>
      <button type="button" class="btn btn-primary" id="savecollection_create_submit_btn" disabled><span><?php echo $this->translate('Create'); ?></span></button>
    </div>
  </div>
</div>
